tags:

views:

30

answers:

2

Hello i m new to C# environment and also new to IIS and WCF. I have created a WCF service and a client application. When client uses that WCF service by using localhost (Application development server)it works fine. then i hosted that WCF service on IIS server on same machine. Nw tel me ..... How to consume WCF service hosted on IIS server from a windows application form ???? PLS help me to resolve dis issue .... thnx in advance PLs help me .....

A: 

You did not provide much detail, for example - where you hosted the WCF service before and how . I'm assuming you started with a console app host or something like this before moving the service to IIS?

If so - it depends how much you've changed in your service if anything at all, but generally it should be pretty much the same.

When you hosted the service in a local application you have most likely accessed it using http://localhost:[some port number]/something/somghting.svc

When moving to IIS, if everything is configured, and nothing else changed, the only difference would be the port number, which - presumably - is now 80, and therefore can be emitted, so your new url would be http://localhost/something/somghting.svc

Yossi Dahan
A: 

After hosting on IIS server the address i got ... http://mypcname/hello/service.svc...
Then i hav created a normal client application pc and gave referance of that service (http://mypcname/hello/service.svc) .... whenever i send msgs to d server it shows error in service i hav used databse ... i hav to store data which i send to the server. It cannot access the databse on IIS server .... what steps should i take to resolve this problem .... also tel me that how to interact over the network ???

Piyush