Hi, i'm trying to configure a wcf service with https, but when I
generate the wsdl , it contains the schemaLocation pointing to the
service with the local name instead of the DNS (https://
receive.latampa yments.com/LPG_Service.svc ?wsdl?.
The odd thing is when I generate the wsdl with the http url, it
contains the schemaLocation with DNS (http://receive.latampayments.com/
LPG_Service.svc ?wsdl).
The problem is that I can`t make reference to my service with https
url, becuase the svcutil try to get information in the wrong
schemaLocation, so I obtain the following error:
HTTP GET Error
URI: https://receive.latampayments.com/LPG_Service.svc?wsdl
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading 'https://{localmachiname }/
rvice.svc?xsd=x sd0'.
- The remote name could not be resolved: {localmachiname }
This is the service web.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<system.service Model>
<services>
<service name="LPG_Servi ce.LPG_Service"
behaviorConfigu ration="MiBehav ior" >
<endpoint address="" binding="basicH ttpBinding"
contract="LPG_S ervice.ILPG_Ser vice" />
</service>
</services>
<behaviors>
<serviceBehavio rs>
<behavior name="MiBehavio r">
<serviceMetadat a httpGetEnabled= "true"
httpsGetEnabled ="true" />
</behavior>
</serviceBehavior s>
</behaviors>
</system.serviceM odel>
</configuration>
Any idea what I might be doing wrong?
Thanks,
Brian