If I run svcutil “http://217.x.x.x:8888/Services/Service.svc?wsdl” I get the following error:
HTTP GET Error
URI: http://217.x.x.x:8888/Services/Service.svc?wsdl
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be processed.
- There was as error downloading ‘http://InternalApplicationServer:8888/Services/Service.svc?xsd=xsd0’
- The remote name could not be resolved: ‘InternalApplicationServer’
I configured the following:
1. IIS Reverse proxy server:
- Create a new website “Services” (bindings: IP address=All Unassigned, Port=8888, Host name=empty)
- Physical path is set to empty directory
- Create a Server Farm and added Server InternalApplicationServer with httpPort 8888
- Use URL Rewrite to inspect incoming request = true
Do I miss something in my configuration?
Is there a server setting I need to change or should I update my binding?
Any help would be very much appreciated.
See the error message, it looks as if it cannot find the import xsd file xsd0, you could try adding the IP address of the machine to the DNS manager, right click on default website -> Host Name:IP address of the machine, for more about this, check this article.
makla3456
0 Points
6 Posts
WCF IIS 7.5 reverse proxy The remote name could not be resolved
May 11, 2012 09:16 AM|LINK
Hi there,
I am not able to consume a wcf service from our Intranet WCF Server which is behind a IIS 7.5 reverse proxy.
From a public IP address my http application will call WCF services deployed at our corporate network via a IIS reverse proxy in our DMZ.
Internet WCF client ---> (HTTP) ---> DMZ reverse proxy ---> (HTTP) ---> Intranet WCF server
If I browse from the internet to the the service like http://217.x.x.x:8888/Services/Service.svc or http://217.x.x.x:8888/Services/Service.svc?wsdl I see the domain name of the intranet WCF application server (=InternalApplicationServer), so the reverse proxy is working.
If I run svcutil “http://217.x.x.x:8888/Services/Service.svc?wsdl” I get the following error:
HTTP GET Error
URI: http://217.x.x.x:8888/Services/Service.svc?wsdl
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be processed.
- There was as error downloading ‘http://InternalApplicationServer:8888/Services/Service.svc?xsd=xsd0’
- The remote name could not be resolved: ‘InternalApplicationServer’
I configured the following:
1. IIS Reverse proxy server:
- Create a new website “Services” (bindings: IP address=All Unassigned, Port=8888, Host name=empty)
- Physical path is set to empty directory
- Create a Server Farm and added Server InternalApplicationServer with httpPort 8888
- Use URL Rewrite to inspect incoming request = true
2. InternalApplicationServer
- Create a new website “Services” (bindings: IP address=All Unassigned, Port=8888, Host name=empty)
- Web.config of Service.svc:
<system.serviceModel>
<services>
<service behaviorConfiguration="Services.ServicesBehavior"
name="Services.Services">
<endpoint address="" binding="wsHttpBinding" contract="Services.IServices">
<identity>|
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Services.ServicesBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Do I miss something in my configuration?
Is there a server setting I need to change or should I update my binding?
Any help would be very much appreciated.
Regards,
Marcel
Peter pi - M...
Star
12871 Points
1786 Posts
Re: WCF IIS 7.5 reverse proxy The remote name could not be resolved
May 14, 2012 05:40 AM|LINK
See the error message, it looks as if it cannot find the import xsd file xsd0, you could try adding the IP address of the machine to the DNS manager, right click on default website -> Host Name:IP address of the machine, for more about this, check this article.
http://dotnetdev-lakshmi.blogspot.com/2011/01/cannot-obtain-metadata-from.html
http://blogs.msdn.com/b/wenlong/archive/2007/08/02/how-to-change-hostname-in-wsdl-of-an-iis-hosted-service.aspx
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework