JAX-WS Loading WSDL from jar

前端 未结 13 972
予麋鹿
予麋鹿 2020-11-28 04:40

I\'m writing a fat client that makes use of a SOAP service for some features (bug reporting etc.)

I\'ve got JAX-WS working fine, but by default (in netbeans at least

13条回答
  •  情书的邮戳
    2020-11-28 05:25

    Although you can get it to work with some manipulations, I would recommend not doing it and keeping it the way you have right now.

    Web Service endpoint providers should provide a WSDL as part of their contract. The code you generate should be pulling from the WSDL from the server itself.

    At deployment on WebSphere you can change the endpoints to other endpoints from the deployment UI. Other application servers you may need to find out the vendor specific binding XML to do it it.

    It only happens on initialization so the impact to your overall application should be negligible.

提交回复
热议问题