clientgen generated PortType_Stub cannot be cast to javax.xml.ws.BindingProvider

人盡茶涼 提交于 2019-12-08 18:22:26
user1096318

I found that:

  • ((javax.xml.ws.BindingProvider) qport) can safely be called on WSDL interfaces generated with JAX-WS (by wsimport)
  • ((javax.xml.rpc.Stub) qport) can safely be called on JAX-RPC clients (created by clientgen)

In my case I created the WSDL interfaces with clientgen (JAX-RPC), so the properties could be set as below:

javax.xml.rpc.Stub stub = (javax.xml.rpc.Stub) qport;
stub._setProperty("KEY","Value");
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!