Frage

I have created one webservice which I have hosted in my IIS, now I want to access or call that webservice from LAN connected PC.

So please help me out.

Things I have tried are :

Ping to check connectivity

Using IpAddress I tried to access it from other PC - Errors I have got like -

  1. Connection timeout
  2. Unable to connect host

e.g : http://192.168.100.157/NewWebservice/WebService1.asmx

War es hilfreich?

Lösung

Try adding following code in config file:

<client>
<endpoint address="http://192.168.100.157/NewWebservice/WebService1.asmx" binding="basicHttpBinding"
          contract="ClassABC" bindingConfiguration ="httpBinding"
          name="BasicHttpBinding_IABC" />
</client>

Andere Tipps

Make sure you open port 80 in Windows Firewall (built in) or any other firewall solution installed on that IIS machine.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top