Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a variable from code using clientgen client to a SOAP handler.

Status
Not open for further replies.

ecaw

Programmer
Oct 24, 2008
1
GB
I currently have a client which I have generated from a wsdl using clientgen. (I am using Weblogic Server 10.0)

What I am ultimately trying to do is modify the headers of the SOAP messages being sent by this client to include an element with a property set to that of a variable I have in my code which uses the client.

It seems the best way to modify a SOAP header is to use a SOAP handler, which I have created and wired in with a handlerchain using the handlerChainFile property on clientgen.

I'm now really stumped as none of the documentation explains how I can actually pass a variable at runtime to this SOAP handler?

Any suggestions to achieve this would be great, I am also very open to suggestions if there's a better way of modifying the soap header than using a handler.

Many thanks,
Ed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top