webService wsdl链接的urlIP与soap:address location里的IP 不一致怎么办?

qq_17274547 2019-04-30 07:45:26

我调用别人开发的接口,他的接口地址为:http://172.88.56.23:18080/ws/test?wsdl。但是访问的wsdl文件中soap:address location的地址为:http://10.2.5.6:18080/ws/test,java开发中如何修改soap:address location的ip改为与url地址相同的IP?急急急

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://service.ws.modules.ws.hstd.com/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" name="TestService" targetNamespace="http://service.ws.modules.ws.hstd.com/">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://service.ws.modules.ws.hstd.com/" elementFormDefault="unqualified" targetNamespace="http://service.ws.modules.ws.hstd.com/" version="1.0">
<xs:element name="getCreditTest" type="tns:getCreditTest"/>
<xs:element name="getCreditTestResponse" type="tns:getCreditTestResponse"/>
<xs:complexType name="getCreditTest">
<xs:sequence>
<xs:element minOccurs="0" name="token" type="xs:string"/>
<xs:element name="arg1" type="xs:long"/>
<xs:element minOccurs="0" name="loginName" type="xs:string"/>
<xs:element minOccurs="0" name="password" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getCreditTestResponse">
<xs:sequence>
<xs:element minOccurs="0" name="result" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="getCreditTestResponse">
<wsdl:part element="tns:getCreditTestResponse" name="parameters"> </wsdl:part>
</wsdl:message>
<wsdl:message name="getCreditTest">
<wsdl:part element="tns:getCreditTest" name="parameters"> </wsdl:part>
</wsdl:message>
<wsdl:portType name="TestService">
<wsdl:operation name="getCreditTest">
<wsdl:input message="tns:getCreditTest" name="getCreditTest"> </wsdl:input>
<wsdl:output message="tns:getCreditTestResponse" name="getCreditTestResponse"> </wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TestServiceSoapBinding" type="tns:TestService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getCreditTest">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getCreditTest">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getCreditTestResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TestService">
<wsdl:port binding="tns:TestServiceSoapBinding" name="TestServiceImplPort">
<soap:address location="http://10.2.5.6:18080/ws/test"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

...全文
3229 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
我是菜小鸟 2021-06-26
  • 打赏
  • 举报
回复

大哥,你这解决了吗。遇到相同问题了

qq_17274547 2019-05-07
  • 打赏
  • 举报
回复
引用 3 楼 LCL_data 的回复:
你参考下https://blog.csdn.net/laokaizzz/article/details/50929911
有java版的示例么 我对.net不熟悉
qq_17274547 2019-05-07
  • 打赏
  • 举报
回复
有java版的示例么 我对.net不熟悉
点滴寸土 2019-05-06
  • 打赏
  • 举报
回复
先用soapui这类工具调用试试,请求报文查看能否正常请求和返回。
十八道胡同 2019-05-06
  • 打赏
  • 举报
回复
直接字符串替换?
qq_17274547 2019-05-06
  • 打赏
  • 举报
回复
没有大神么? 求救啊!

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧