Solved

Comunicate With API

Posted on 2014-03-10
3
217 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
ID: 39917319
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
ID: 39917325
the documentation dosn't say anything about WSDL.
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 39917332
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

947 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

20 Experts available now in Live!

Get 1:1 Help Now