Solved

Can not consume WCF Service

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Help 27 67
vb.net winforms sizing/resolution? 4 53
SSIS Start 2 37
What is newest platform to convert a massive Windows Forms program to? 7 49
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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