Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can not consume WCF Service

Posted on 2008-06-20
3
Medium Priority
?
1,658 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

670 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