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
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