Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using 3rd party wcf service

Status
Not open for further replies.

kss444

Programmer
Sep 19, 2006
306
US
Hello all,

I have just created a new web project from VS 2010 and I took the default page and added a button.

Upon clicking the button in the code behind I want to make a call to a 3rd party wcf service. This service is free you just need to register with their site which is also free.

Here is their service: I add this to my web application using the "Add Service Reference".

I don't know how to go about using it. In the button click I have code:
// ExpressUpdateSession.SessionClient sc = new ExpressUpdateSession.SessionClient(basicHTTPBindin g,endPointAddress );

ExpressUpdateSession.BeginSessionResponse objExpressSession = new ExpressUpdateSession.BeginSessionResponse();

ExpressUpdateSession.SessionClient scl = new ExpressUpdateSession.SessionClient();
scl.BeginSession("username","password1");

Before when I ran the code I got an error:
The Address property on ChannelFactory.Endpoint was null. The ChannelFactory's Endpoint must have a valid Address specified.
So I added the address=" to the end point that it created.

Now I am getting the error:
The CustomBinding on the ServiceEndpoint with contract 'ISession' lacks a TransportBindingElement. Every binding must have at least one binding element that derives from TransportBindingElement

Does anyone have any idea what I am doing wrong? I thought it was fairly easy to use web services. I've never had problems when I create my own.

Thanks,
KS.


Ordinary Programmer
 
Found the error of my ways, and it happens to be the 3rd parties service is broken. Go figure.

Ordinary Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top