Solved

Can not consume WCF Service

Posted on 2008-06-20
3
1,636 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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