Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can we call Web Service in WCF so that i will call WCF in windows application to access methods in Web Service
Posted

Yes you can. But the idea sounds strange.
You should call the Web Service (assuming you mean the .Net 2.0 asmx ones) directly from the Windows Application.
 
Share this answer
 
Comments
Simon Bang Terkildsen 12-Sep-11 3:41am    
OP wrote
ok but actually i want to call the WCF which calls the Web service so that indirectly i access the methods in Web Service
You could have a WCF service that behaves as a route, but you will get into all sorts of mess if the security systems are different.

http://blogs.msdn.com/b/endpoint/archive/2010/01/25/using-routes-to-compose-wcf-webhttp-services.aspx[^]

http://seroter.wordpress.com/2011/01/09/wcf-routing-service-deep-dive-part-icomparing-to-biztalk-server/[^]

How to create scalable services with WCF 4.0 Router and Discovery services[^]

or you have a code based service mapping to the other service. You will find that the more service hops you do, the longer it will take to complete the original call (unless all your services are cloud based, in the same cloud as it were, then it will be quite a bit quicker)

I don't think it's strange to have a service that calls another service. Even if the client is a windows app, or even another service. To be honest, I thought that was the whole point of webservices.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900