Groups | Blog | Home
all groups > dotnet xml > november 2004 >

dotnet xml : Unable to call webservice using HTTP GET...


MTB
11/4/2004 4:43:02 PM
I created a webservice, but I can't call the webservice using HTTP GET. SOAP
Nigel Armstrong
11/7/2004 10:19:03 AM
Hi MTB

Try this URL:

http://support.microsoft.com/default.aspx?scid=kb;en-us;819267

And modify your web.config like this:

<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>

or your machine.config like this:

<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="HttpPostLocalhost"/>
<!-- Documentation enables the documentation/test pages -->
<add name="Documentation"/>
</protocols>

HTH

Nigel



[quoted text, click to view]
MTB
11/7/2004 2:23:02 PM
Thanks, that worked.

[quoted text, click to view]
Warren
4/8/2005 2:45:01 PM
Wow, I thought this might fix my problem also...
But when I try to register a new web-service using the add web-service
reference tool it still fails... I am being told it is because I am using a
get instead of a post...

I put the required changes listed above in my web.confgi file... no luck ..
any ideas?

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<system.web>

<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>


<!-- DYNAMIC DEBUG COMPILATION
..
..
..
..etc...

[quoted text, click to view]
Warren
4/8/2005 3:01:02 PM
Here is the error the add web-reference tool gives..

<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>[ISS.0088.9112] An Exception was thrown in the
server</faultstring>
<faultactor>http://schemas.xmlsoap.org/soap/actor/next/</faultactor>
- <detail xmlns:webM="http://www.webMethods.com/2001/10/soap/encoding">
- <webM:exception>
<webM:className>java.lang.NullPointerException</webM:className>
<webM:message xml:lang="" />
</webM:exception>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

AddThis Social Bookmark Button