开发者

Adding username/password in SOAPClient : JBOSS-ESB

I have a WSDL URL which has security constriants. I need to provide username and password at 开发者_JAVA百科header. After providing these credentials i can send the request . how can i add username/password using SOAPClient . I did not find any property defined for username password in SOAPClient.

Thanks, Madhu CM


Jboss-esb comes with two SOAPClients, one based in soapUI and the other based in Wise (alas, it seems these guys are not very smart baptizing their classes). So, there are two solutions:

  • soapUI: you have to inject headers with a transformation of the XML document. You can use the property smooksTransform of SOAPClient action.
  • Wise: you can add a SOAPHandler implementation using property custom-handlers of SOAPClient action.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜