简体   繁体   English

wscompile和wsimport有什么区别?

[英]What is the difference between wscompile and wsimport?

What is the difference between wscompile and wsimport. wscompile和wsimport有什么区别。 Can you please let me know when to wscompile. 您能告诉我何时进行编译。 I normally use wsimport to get all ws artifacts from wsdl. 我通常使用wsimport从wsdl获取所有ws工件。 I am confused when to use wscompile? 我什么时候使用wscompile感到困惑?

As per my information, JAX-WS has simplified the development of Web Service clients when compared to JAX-RPC. 据我所知,与JAX-RPC相比,JAX-WS简化了Web服务客户端的开发。 Both technologies have a tool for importing a WSDL to generate client side artifacts. 两种技术都有一个用于导入WSDL以生成客户端构件的工具。 JAX-RPC's tool is wscompile, JAX-WS' tool is wsimport. JAX-RPC的工具是wscompile,JAX-WS的工具是wsimport。

The advantage of JAX-WS clients over JAX-RPC clients is portability. 与JAX-RPC客户端相比,JAX-WS客户端的优点是可移植性。 JAX-WS generates portable artifacts at much higher percentage, while JAX-RPC generated artifacts are not all portable. JAX-WS生成可移植工件的比例要高得多,而JAX-RPC生成的工件并非都是可移植的。

The tool wsimport works on a WSDL file which is an XML document describing the web service. wsimport工具可用于WSDL文件,该文件是描述Web服务的XML文档。 The tool wsimport does not care to the style of the service (RPC/DOCUMENT) as described in the WSDL. wsimport工具与WSDL中描述的服务样式(RPC / DOCUMENT)无关。 If the WSDL has RPC-style, it will generate the client stubs for consuming RPC-style web services and similarly for document-style. 如果WSDL具有RPC样式,它将生成用于使用RPC样式的Web服务以及类似地用于文档样式的客户端存根。

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

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