简体   繁体   English

WSDL WebService

[英]WSDL WebService

I need comunicating using java with a WebService that uses the WSDL technology. 我需要使用java与使用WSDL技术的WebService进行通信。 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. 我的计划是获得一个使用通信的.xml (例如用fiddler过滤)并手动复制它来构建一个字符串。 So the . 所以 。 xml will be ok. xml Do I need to take care of anything else? 我还需要照顾其他什么吗?

Do I have to do any more? 我还需要做什么吗? Http request, response? 请求Http,响应?

I wouldn't like to create all the structure for the xml and after that, find that I can't continue the comunication. 我不想为xml创建所有结构,然后发现我无法继续通信。

Thanks 谢谢

Java comes with a complete API for XML Web Services, this is JAX-WS. Java附带了一个完整的XML Web Services API,这是JAX-WS。 (lot of documentation available with a simple serach with google) (很多文档可以通过google进行简单的搜索)

it allows developers to build a working client with very little effort starting from a WSDL file (seems your case) 它允许开发人员从WSDL文件开始,只需很少的工作就可以构建一个工作的客户端(看起来像你的情况)

I really discourage you to build the client by yourself. 我真的不鼓励你自己建立客户端。 You should care about SOAP message building, message sending, response parsing and so on. 您应该关心SOAP消息构建,消息发送,响应解析等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM