开发者

Nested SOAP Header Element

I want to create nested SOAPHeaderElement in Metro web services... It sould be something like I am using JAVA .JAX-WS 2.2.5 (Metro)

  <Auth>
  <UserName> data1
  </UserName>
  <Password> data2
  </Password>
  </Auth>

Metro provides WSBindingProvider to create headers but I want to开发者_开发知识库 create headers within <Auth> tag?


you will need to implement a custom javax.xml.ws.handler.soap.SOAPHandler and add it as part of a HandlerChain to the webservice provider. some useful getting started info (more here).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜