开发者

.NET webservice issue?

My svc webservice show following schema location if i deploy in my local system.

<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开发者_Python百科=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
</xsd:schema>

If i deploy the same webservice in live server, it takes computer name in place of ip. How can i correct it?

live server wsdl code is as follows.

<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>


Check the httpGetUrl on the ServiceMetadataBehavior

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜