unable to use WCF service in c# project - MetaData Error -
service location:
error:
document was understood , But it could not be processed - the WSDL document contains links that can not be resolved. - There was an error downloading 'http://mycompany.com/Test_Service/Service.SearchService.svc?xsd=xsd2' - Remote name could not be resolved: 'mycompany.com' has a reference in the metadata, which Can not resolve: 'http://1.1.1.1:5670/Test_Service/Service.SearchService.svc?wsdl' Http://1.1.1.15656/Test_Service/Service.SearchService.svc?wsdl No endpoint Was listening that could accept the message. This is often caused by a false address or SOAP operation. For more details, see if you are present, see the innerexception. The remote server sent an error: (404) If the service is defined in the current solution, try creating the solution and adding the service reference again
Only when I am not on VPN. If I'm on VPN things work well then mycompany.com is available internally only.
I can see the WSDL if I can not connect to VPN
Your VPN may Gives you an IP address in 1.1.1. * Subnet (internal to your company's network) Therefore, when you are connected to VPN, you can access the server and when you are not connected, you can not (because you are outside the company's network without VPN).
There is no solution to this problem unless your company is externally ready to expose that server. Just use your VPN.
Comment: Yes and you can see WSDL this way but you will need VPN inside.):
Comments
Post a Comment