简体   繁体   中英

Web Service Client Deployment

I have a web service client (JAX-WS) and the stubs have been created using the wsimport tool.

Now once the client is packaged as an application, the location of the service (and only the location )changes.

Do I have to re run the whole ws-import tool once again to create new stubs for the new location. Is it possible to move the WSDL location to a Config so that the application do not have to be built again! I am working with net beans 6.5.

I suppose DII is an option, but is there a solution to make the code independent of the WSDL location.

您可以在应用程序中本地打包WSDL(这对于性能也是合理的,因为您是在运行时将请求保存到外部文件中),请参阅使用本地打包的WSDL开发客户端应用程序

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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