Solved

Comunicate With API

Posted on 2014-03-10
3
216 Views
Last Modified: 2016-02-26
Hi,

I need to communicate with an API supplied to me.
the API Documentation says:
"These functions will be accessed using the SOAP 1.1 protocol. All functions return XML formatted results or a single value"

Function GetAvailability (SGId as Integer, SiId as Integer, EMId as Integer, EId as Integer, TCen as String, StartD as Date, EndD as Date) as XMLString

Open in new window


can someone help with a sample implementation of the above using C#?

thanks,

M
0
Comment
Question by:moshik008
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
Comment Utility
Does the service expose a WSDL? If so you can add it to your project as a web reference and VS will generate a proxy class for you which you can use to call the service.
0
 

Author Comment

by:moshik008
Comment Utility
the documentation dosn't say anything about WSDL.
0
 
LVL 52

Expert Comment

by:Carl Tawn
Comment Utility
Well, if it's a proper SOAP service then it should expose one - so try adding a Web Reference to your project and pointing it at the URL provided in your documentation.

If you have any problems, can you post the URL for the service so we can take a look?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now