Can not consume WCF Service

Hi all,

I am trying to consume a WCF service provided by a third party. I have added a service reference to my class library and all seems to go well but after I create an instance of the proxy it does not show any methods.

The funny thing is if I create this as a web reference in my web application it seems to work ok.

Any help on this would be much appreciated.

Many thanks

Cragly  
CraglyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
CraglyConnect With a Mentor Author Commented:
I made sure that I was creating the proxy object correctly:
WebServiceContractClient proxy = new WebServiceContractClient();

Also make sure you have a <system.serviceModel> section in your web.config/app.config even if you are not calling the service directly. I was calling my BLL and that in turn called a ServiceClientLayer which returned the requested data. I still had to put the serviceModel section into the web.config. Very strange.
0
 
ororioleCommented:
Are you sure it is a WCF service, using the Service Model? Maybe it IS an .asmx service?
0
 
CraglyAuthor Commented:
Yup they says it is WCF as they have developed it in VS2005 with the extensions!!

However still having problems as they now think it could be how VS2008 is creating the proxy. Have you heard anything about compatability problems between VS2005 and VS2008 and WCF Services?
0
All Courses

From novice to tech pro — start learning today.