本文介绍了如何更改我的wsdl的地址位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的wsdl在地址位置输入了错误的域,如何解决?
My wsdl put a wrong domain in address location, How to fix it?
- <wsdl:service name="XWebService"> - <wsdl:port name="XServiceSoap" binding="tns:XWebServiceSoap"> <soap:address location="machine.wrongdomain.br/webservices/MapleStoryWebService.asmx" /> </wsdl:port> - <wsdl:port name="XWebServiceSoap12" binding="tns:XWebServiceSoap12"> <soap12:address location="machine.wrongdomain.br/webservices/XWebService.asmx" /> </wsdl:port> - <wsdl:port name="XWebServiceHttpGet" binding="tns:XWebServiceHttpGet"> <http:address location="machine.wrongdomain.br/webservices/MapleStoryWebService.asmx" /> </wsdl:port> - <wsdl:port name="XWebServiceHttpPost" binding="tns:XWebServiceHttpPost"> <http:address location="machine.wrongdomain.br/webservices/XWebService.asmx" /> </wsdl:port> </wsdl:service>真实域就像 machine.goodDomain.br
推荐答案地址从用于访问WSDL的URL中获取.如果它与您要实际使用的服务器不同,则可以通过创建扩展SoapExtensionReflector的类来对其进行更改.这是有关如何更改URL的示例文章:
The address is taken from the URL used to access the WSDL. If it's different than the server you want to actually serve from, then you could change it by creating a class that extends SoapExtensionReflector. Here's a sample article on how to change the URL:
blogs.msdn/kaevans/archive/2005/11/16/493496.aspx
更多推荐
如何更改我的wsdl的地址位置
发布评论