Last post Nov 24, 2010 05:27 PM by sachingusain
Nov 24, 2010 12:10 AM|csharpcoder|LINK
I have a web service that I need to consume and pass some data to. However it is not a .NET web services, its an java web service (WSDL), that is looking for a SOAP calls and envelopes, I haven't consumed a SOAP web service since .NET came, what is the best
way to consume and connect to the web service? the url for the service is something like this:
I added a web reference to it from my web app via the VS IDE, but now, it's not authenticating, and I need to pull out the SOAP calls to it so I can pass the XML to the vendor, how can I grab the SOAP XML that is being passed to the web service?
I guess I have 2 questions in one post.
Nov 24, 2010 07:15 AM|santa_1975|LINK
Are you behind a firewall? Were you able to access the web service URL and see the WSDL in the browser without authenticating?
If you're behind a firewall, you will need to assign NetworkCredential to have your request go through the firewall.
Refer to this link for details.
Here is a sample code that will tell you how to log the soap request/response using SoapExtension.
Hope this helps.
Nov 24, 2010 01:37 PM|csharpcoder|LINK
I can access the WSDL through the VS IDE, I can also access the WSDL via the browser, I can also execute the WSDL calls from a PHP page, however I need it in .NET so I need to get the .NET page working with it
Nov 24, 2010 01:55 PM|santa_1975|LINK
If you're able to access the WSDL, then you can add a web reference in your VS project and create an instace of the proxy class to invoke methods in the web service.
Nov 24, 2010 05:27 PM|sachingusain|LINK
Does your vendor enforce authentication on web service calls? If yes, then contact your vendor and ask for a sample on how to do it and what the credentials are.
Here are some articles on how to do it:
Also, you can use
http://www.fiddler2.com/fiddler2/ to see what messages are being passed along with each of the call.