如果我在本地系统中部署,我的svc webservice将显示以下模式位置。
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://192.168.2.22/FileDownload/TransferService.svc?xsd=xsd0" namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://192.168.2.22/FileDownload/TransferService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
</xsd:schema>
如果我在实时服务器中部署相同的the服务,它将以计算机名代替ip。我该怎么纠正它呢?
实时服务器wsdl代码如下所示。
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://user-01/FileDownload/TransferService.svc?xsd=xsd0" namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://user-01/FileDownload/TransferService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
</xsd:schema>
发布于 2011-07-05 19:52:35
检查ServiceMetadataBehavior上的httpGetUrl
https://stackoverflow.com/questions/6582076
复制相似问题