AXIS1:如何个性化“绑定名称”
我们使用 axis1 工具生成了以下 Web 服务:
<wsdl:binding name="WSExamplePortSoapBinding" type="impl:WSExamplePortType">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="TestMethod">
<wsdlsoap:operation soapAction="http://localhost/Example/wsdl/Example?wsdl#TestMethod" />
<wsdl:input name="TestMethodRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/Example/wsdl/Example?wsdl" use="encoded" />
</wsdl:input>
<wsdl:output name="TestMethodResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/Example/wsdl/Example" use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WSExample">
<wsdl:port binding="impl:WSExamplePortSoapBinding" name="WSExamplePort">
<wsdlsoap:address location="http://localhost:8082/Example/wsdl/Example" />
</wsdl:port>
</wsdl:service>
客户希望我们更改该行:
<wsdl:binding name="WSExamplePortSoapBinding" type="impl:WSExamplePortType">
for:
<binding name="WSExampleBinding" type="impl:WSExamplePortType">
问:我们如何更改该单词? (WSExamplePortSoapBinding 到 WSExampleBinding)。
我们搜索了axis的源代码,但我们找不到生成该名称的地方。
感谢您的帮助,
We had the following generated webservices with axis1 tools:
<wsdl:binding name="WSExamplePortSoapBinding" type="impl:WSExamplePortType">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="TestMethod">
<wsdlsoap:operation soapAction="http://localhost/Example/wsdl/Example?wsdl#TestMethod" />
<wsdl:input name="TestMethodRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/Example/wsdl/Example?wsdl" use="encoded" />
</wsdl:input>
<wsdl:output name="TestMethodResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost/Example/wsdl/Example" use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WSExample">
<wsdl:port binding="impl:WSExamplePortSoapBinding" name="WSExamplePort">
<wsdlsoap:address location="http://localhost:8082/Example/wsdl/Example" />
</wsdl:port>
</wsdl:service>
and the client want to us change the line:
<wsdl:binding name="WSExamplePortSoapBinding" type="impl:WSExamplePortType">
for:
<binding name="WSExampleBinding" type="impl:WSExamplePortType">
Q: How we can change that word? (WSExamplePortSoapBinding to WSExampleBinding).
We had searched on the axis source code, but we can't find were is generated that name.
Thanks for the help,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我这样解决了这个问题:
在 server-config.wsdd 文件中:
我必须替换为:
然后我必须像这样修改 axis-1.4 源代码:
我必须替换为:
然后我必须用 ant 制作 JAR 并将新 JAR 复制到库的源代码中。
I solved this issue like this:
In the server-config.wsdd file:
I have to replace to:
Then I have to modify the axis-1.4 source code like this:
I have to replace to:
Then I have to make the JAR with ant and copy the new JAR to the source of the library.