Click here to Skip to main content
15,885,880 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am working on how to call a web service dynamically using SOAP (language c#). For this purpose, my program gets the WSDL and parses it to create the SOAP request.

How can I assure that a web service supports the SOAP protocol by looking at WSDL?

Thanks,
Asif
Posted
Updated 5-Apr-11 0:18am
v2

The bindings section in the WSDL file should tell that.
 
Share this answer
 
Comments
Michel [mjbohn] 5-Apr-11 8:02am    
yepp
you should at least s.th. like <soap:binding transport="http://some/URI/blabla" xmlns:soap="#unknown"></soap:binding>
Michel [mjbohn] 5-Apr-11 8:05am    
BTW
you should have a look at ServiceReferences. There's no need to parse WSDL
dan!sh 5-Apr-11 8:32am    
Yes. But OP is doing parsing all by himself. Not sure why though.
Michel [mjbohn] 5-Apr-11 8:53am    
I wrote this for OP, hoping he reads the comment.
Didn't want to give a solution with just one sentence :)
Thanks for replying.

mjbohn yes that is the only clue that you have mentioned(<soap:binding transport="http://some/URI/blabla" xmlns:soap="#unknown"></soap:binding>). Which will verify support of SOAP protocol by a web service.



----
Asif
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900