Given a WSDL file, create a simple Java client

前端 未结 6 539
孤独总比滥情好
孤独总比滥情好 2020-12-28 10:10

Can anyone please provide me with a sample code for this? I have a wsdl file, and I want to create a client that will call a service from that wsdl file
A working code

6条回答
  •  太阳男子
    2020-12-28 10:47

    The main options are to use:

    1. JAX-WS, using the wsimport tool.
    2. Apache AXIS2, using wsdl2java.

    Both links provide code examples. Some searching on the web will get you even farther. There are also options for creating dynamic SOAP clients but the generated ones are easiest.

提交回复
热议问题