如何更改我的wsdl的地址位置

编程入门 行业动态 更新时间:2024-10-20 20:44:29
本文介绍了如何更改我的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的地址位置

本文发布于:2023-11-10 02:33:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574092.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何更改   位置   地址   wsdl

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!