Solved

Can not consume WCF Service

Posted on 2008-06-20
3
1,633 Views
Last Modified: 2013-11-07
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  
0
Comment
Question by:Cragly
  • 2
3 Comments
 
LVL 16

Expert Comment

by:ororiole
ID: 21832971
Are you sure it is a WCF service, using the Service Model? Maybe it IS an .asmx service?
0
 

Author Comment

by:Cragly
ID: 21865550
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
 

Accepted Solution

by:
Cragly earned 0 total points
ID: 21872591
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

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

13 Experts available now in Live!

Get 1:1 Help Now