Unable to Access Webservice from remote Machine

Posted by Fuad under ASP.NET on 11/25/2012 | Points: 10 | Views : 1438 | Status : [Member] | Replies : 2
Hi all,

I have created one web service for saving XML file,and created an asp.net application to pass xml file to web service as parameter.
At first i have compiled two application in my local machine and given 'Web Reference' to the web service like 'http://localhost:3112/Web_Service/Service.asmx'.its working fine and able to access web services also.
But now am running web service on remote machine(IP is 10.10.1.169) and trying to give 'Web Reference' my local machine like 'http://10.10.1.169/Web_Service/Service.asmx'.But it is not getting connected and showing message like 'Object not found!'.

Please Help me,

Thanks in advance,

Fuad




Responses

Posted by: Lavanyadeepak on: 11/26/2012 [Member] Starter | Points: 25

Up
0
Down
localhost:port is Visual Studio Web Server.

When you access via IP, it is served by IIS. Have you deployed the application to IIS?

Fuad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Krv on: 11/26/2012 [Member] Starter | Points: 25

Up
0
Down
Have you tried accessing the web service thr browser? Are you able to access it.
As long as you are able to access it thr browser, you should able to access it thr application.
You add the web ref refereing local url. and in the web reference property, set it as dynamic, so you will get an entry in app config/web confg. later, you can change the web config pointing to your remote url

Thanks,
R.Vasanth
MCTS(SQL Server & BI)
http://bigdatatech.blogspot.com

Fuad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response