WSDL网络服务
我需要使用 java 与使用 WSDL 技术的 WebService 进行通信。 我尝试了一些库但没有成功,因此,我决定手动完成。
我的计划是获取一个使用通信(例如使用 fiddler 进行过滤)的 .xml
并手动复制它构建字符串。所以 .xml
就可以了。我还需要照顾其他事情吗?
我还需要做更多的事情吗? HTTP请求,响应?
我不想为 xml 创建所有结构,然后发现我无法继续通信。
谢谢
I need comunicating using java with a WebService that uses the WSDL technology.
I tried some libraries but with no success, thus, I decided to do it manually.
My plan is getting a .xml
which uses the comunication (filtering with fiddler for example) and copy it manually building a string. So the .xml
will be ok. Do I need to take care of anything else?
Do I have to do any more? Http request, response?
I wouldn't like to create all the structure for the xml and after that, find that I can't continue the comunication.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Java 附带了用于 XML Web 服务的完整 API,这就是 JAX-WS。 (通过谷歌进行简单的搜索即可获得大量文档)
它允许开发人员从 WSDL 文件开始以很少的努力构建一个工作客户端(似乎是你的情况)
我真的不鼓励你自己构建客户端。您应该关心 SOAP 消息构建、消息发送、响应解析等。
Java comes with a complete API for XML Web Services, this is JAX-WS. (lot of documentation available with a simple serach with google)
it allows developers to build a working client with very little effort starting from a WSDL file (seems your case)
I really discourage you to build the client by yourself. You should care about SOAP message building, message sending, response parsing and so on.