Asynchronous web services calls with JAX-WS: Use wsimport support for asynchrony or roll my own?

前端 未结 2 939
你的背包
你的背包 2021-01-03 01:24

There is an excellent article by Young Yang that explains how to use wsimport to create web service client artifacts that have asynchronous web service calls. Asynchrony re

2条回答
  •  迷失自我
    2021-01-03 01:34

    I know that it does not reach the prompted question, but just complementing one information included on question:

    "Instead you use build tools like Ant or Maven to include this binding when wsimport is executed on the WSDL."

    It is possible generate the asynchronous client by a adding a custom xml file using the option -b to the wsimport:

    Example:

    wsimport -p helloAsyncClient -keep http://localhost:8080/helloservice?wsdl -b customAsync.xml
    

    The customAsync.xml content:

    
            true
    
    

    It is just one more way to generate asynchronous client beyond by using ant or maven :)

提交回复
热议问题