Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 10, 2008 09:59 PM by email@example.com
Nov 04, 2008 09:32 PM|LINK
I added a web service into an ASP web application,
after I ran the application and called the web service,
the web page showed following message:
Possible SOAP version mismatch: Envelope namespace http://schemas.xmlsoap.org/disco/ was unexpected. Expecting
I do not understand what is the problem.
Thanks everyone who tries to help me.
Nov 04, 2008 11:02 PM|LINK
Nov 05, 2008 03:04 PM|LINK
I found there is different thing from regular consuming web service,
the url of adding web service which I wanna add is
https://xxxxxxxxxx/xxx/soap.php?wsdl , it is a php file
in the text book, regular url of adding web reference is
http://xxxx/xxxx/something.asmx , it is web service file
Would this be the problem?
however, when I added https://xxxxxxxxxx/xxx/soap.php?wsdl this php file, I also can see how many methods appear on
add web reference page
Nov 05, 2008 04:13 PM|LINK
Nov 05, 2008 06:19 PM|LINK
Thank you for your patient.
I re-add the web reference and also took off "?wsdl", but I still get the same massege after I called the web service.
Following is the information from Fiddler:
No Proxy-Authorization Header is present.
No Authorization Header is present.
POST /UAS/soap.php HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.1433)
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><preauth xmlns="http://soapinterop.org/xsd"><Username>ldapguide</Username><Password>20Ldapguide</Password><AuthSource>AD</AuthSource></preauth></soap:Header><soap:Body><getHostbridge
Nov 05, 2008 06:21 PM|LINK
I re-add the web reference, and took off "?wsdl", but I still got the same information after I called that web service.
There is information from Fiddler:
Nov 05, 2008 07:16 PM|LINK
Can you share also the response? mainly I want to know if the server throws this exception or the client when handling the server response.
Additionaly if you can share the WSDL we can see what soap versions are expected and what url is specified inside it.
Also - do you have any working client at all to this service? even a php one. We could compare what the working and non-working clients send.
Nov 06, 2008 09:21 PM|LINK
Yes, the error message is from my code:
and this code return the message:
Otherwise, the WSDL is :
I saw other web site says if the envelope namespace url is "http://schemas.xmlsoap.org/soap/envelope/", the wsdl should be SOAP version 1.1,
and this url is match the error message "Expecting
So I guess the wsdl is SOAP 1.1 , however, I don't know how can I fix it.
Moreover, in the caching section of Fiddler, it says:
Response headers do not contain caching-related directives.
Thank you so much.
Nov 06, 2008 10:09 PM|LINK
Please publish the response that comes back from the server (using fiddler).
If what you published above is the response then the server url returns a WSDL file instead of a SOAP envelope. One reason may be that you are using a wrong url for the run time.
If you will publish the full WSDL I can see what url appears inside it.
Also check if there is any working client at all for this service (even a php one) so we can see what is the difference between what it sends and what you send.
Nov 07, 2008 01:29 PM|LINK
I am very sorry about I don't know where is the response information from server by using Fiddler.
and I don't know if there is any working client for this service.
Here is the full WSDL: