开发者

.NET webservice issue?

开发者 https://www.devze.com 2023-03-17 03:50 出处:网络
My svc webservice show following schema location if i deploy in my local system. <xsd:schema targetNamespace=\"http://tempuri.org/Imports\">

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

精彩评论

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