I wrote a custom webservice called Service.asmx in which I deployed its WSDL/DISCO aspx files and the webservice asmx into sharepoint's ISAPI folder and the webservice's strongly named dll into the GAC. These work as they should.
If I create a webservice consumer that invokes a test method on my custom webservice, my webservice is able to obtain the SPContext of the sharepoint site pointed to by the URL.
If I open internet explorer on my webservice and manually invoke the same test method from the WSDL menu, my webservice reports the SPContext of the same sharepoint site is null.
In both cases the URL (for the reference to my webservice in the consumer, and what I keyed into internet explorer) is the same:
Why does the webservice sometimes lose its SPContext? How do I get the SPContext when I call the webservice from internet explorer? Shouldn't the two invocations of the webservice not behave the same? What am I missing here?
View Complete Post