JAX-WS (wsimport) で生成されたクライアント スタブを使用して JAX-RPC Web サービスに接続できますか? JAX-WS クライアントを使用して JAX-RPC Web サービスを使用すると、どのような影響がありますか? 長所と短所はありますか?
20416 次
1 に答える
5
- The tool
wsimport
works on aWSDL
file which is an XML document describing the web service. - The tool
wsimport
does not care to the style of the service (RPC/DOCUMENT) as described in the WSDL. - If the WSDL has RPC-style, it will generate the client stubs for consuming RPC-style web services and similarly for document-style.
JAX-WS
(which provideswsimport
) provides (or rather capable of generating ) both the style (RPC/Document) of web services and both work equally well with respective types of service end points.- Here is an example of using
wsimport
for generating JAX-RPC client.
Hope this helps.
于 2012-09-11T06:15:03.857 に答える