WCF wsdl wsdl: import location, soap: does the address have a machine name?

Hi

We developed a web service using the WCF service and are hosted on a Windows 2003 server machine with IIS 5.1. WCF is hosted on basicHttpBinding .

when trying to access the wsdl service "*. Svc? Wsdl" , generating an incorrect wsdl that wsdl cannot be used by java and php clients.
when i check wsdl in

<wsdl:import namespace="xxxxx" location="http://machine name/xxx/xxx.svc?wsdl=wsdl0"/> 
<soap:address location="http://machine name/xcxx/xxx.svc" /> 

How can I remove a machine and replace it with my website URL?
How can I create a complete WSDL document, for example, which ASMX web service will generate?

+5
source share
2 answers

:

    <useRequestHeadersForMetadataAddress>
        <defaultPorts>
            <add port="80" scheme="http" />
            <add port="443" scheme="https" />
        </defaultPorts>
    </useRequestHeadersForMetadataAddress>
+3

All Articles