How to use SOAP using a VB.net desktop application

Mike Conyers
Mike Conyers used Ask the Experts™
on
We need to write a vb.net application that sends the attached xml to an API. The idea is that the product stock level is set. The top part of the file is the request and the bottom is the response. This is the soap example given to us by the ecommerce platform. The app is not a web app but a desktop based piece of software and we just need to now how to send this using SOAP in vb.net. Any help along with examples would be greatly appreciated.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
ste5anSenior Developer

Commented:
If it is really a SOAP API, then you just need to add a service reference to your project and enter the service end-point (WSDL address).

Untitled.png
Mike ConyersDirector

Author

Commented:
Thank you for this. This worked and I could see the API functions which is great. How do I now call these and send the xml command as per the file sent over?
Senior Developer
Commented:
This depends almost on the concrete API.. you often need to configure authentication like OAuth in your app.config. Then you may need to initialize some User objects, before making the actual call.

Hard to tell without knowing the specific service.
Mike ConyersDirector

Author

Commented:
Really helpful and fast response. Thank you for taking the time to help. I really appreciate it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial