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 propertycustom-handlers
of SOAPClient action.
精彩评论