Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
SharePlus and (hardcoded) "soap" namespace prefix
posted

Hi,

We are trying to use SharePlus with our application which is simulating Sharepoint WebServices.

For some reason it didn't work although we simulated all the SP responses properly.

At the end we found out that the problem is in the namespace prefix. Our AXIS engine is generating "soapenv" for the namespace prefix, e.g.:

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soapenv:Body>
      <GetWebResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
         <GetWebResult>
            <Web Title="Home" Url="http://192.168.0.103" Description="" Language="1033" Theme="" FarmId="{8a7946bf-fda6-495d-9830-5263422d898c}" Id="{ff06d9af-7d4f-4f33-9abe-42d5b6948e7d}" ExcludeFromOfflineClient="False" CellStorageWebServiceEnabled="True" AlternateUrls="http://sasaboy-sony/" />
         </GetWebResult>
      </GetWebResponse>
   </soapenv:Body>
</soapenv:Envelope>

which is perfectly valid response.

However, when we do that, the 2nd request from SharePlus is not send to our application server but is a relative path and thus it fails. Here is a snippet of SharePlus log for the 2nd request:

REQUEST
Date: 2013-12-16T12:17:21Z
Url: /_vti_bin/Webs.asmx
Headers: {
"Accept-Encoding" = gzip;
"Content-Length" = 344;
"Content-Type" = "text/xml; charset=utf-8";
SOAPAction = "http://schemas.microsoft.com/sharepoint/soap/GetWebCollection";
"User-Agent" = "Mozilla/5.0 (iPad; U; CPU OS 5_0 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C134 Safari/6533.18.5";
}

As you can see, the Url value is relative path (BTW, SharePlus logs are really great!).

Is it possible to fix this in SharePlus so it doesn't matter if namespace prefix is called "soap", "soapenv", "myprefix", ... or anything else as long as it is properly defined in XML?

I assume there are many other applications simulating Sharepoint and it would be great if users could use SharePlus as a client on their mobile devices.

Thanks in advance,

Sasa.

Parents
No Data
Reply
  • 0
    Offline posted

    A useful article for many. I am also developing my business on the internet. Using a preview dialer  https://www.mightycall.com/features/preview-dialer/ can dramatically increase the efficiency of customer interactions. This tool is a game changer for companies that value personalized service. Before each call, agents receive valuable information about the customer, allowing for more effective conversations. In my business, the use of number preview has become a key element of customer interaction, helping to improve service and increase satisfaction.

Children
No Data