Hi Russ, you could try to play with Call#addHeader() before you #invoke() the Call.
Mit freundlichen Grüßen / Best Regards QuinScape GmbH i.V. Christian Poecher _________________________________________ QuinScape GmbH, Dortmund http://www.quinscape.de Geschäftsführer: Thomas Biskup Sitz Dortmund Dr. Norbert Jesse HRB 14740 Dr. Gero Presser Amtsgericht Dortmund Vertragspartner der Bayer Business Services GmbH Projekt Order Tracking Portal Projekt Business Service Management por...@bhc Im Auftrag der Bayer Business Services GmbH Gebäude 2975, Raum 02.B2.02 Schanzenstrasse 41 51063 Köln, Deutschland Tel.: +49 214 30 30988 E-Mail: [email protected] Web: http://www.BayerBBS.com Geschäftsführung: Vorsitzender Daniel Hartert | Arbeitsdirektor Norbert Fieseler Vorsitzender des Aufsichtsrats: Klaus Kühn Sitz der Gesellschaft: Leverkusen | Amtsgericht Köln, HRB 49895 Russ Schampers <[email protected]> 01.04.2010 15:29 Bitte antworten an [email protected] An [email protected] Kopie Thema Modify SOAP header on wsdl generated client I have a client generated from a wsdl. The generation gives me the following classes: XXX XXXProxy XXXService XXXServiceLocator XXXSoapBindingStub For this particular web service the vendor has informed me that I need to include special properties in the SOAP header. The correct SOAP header looks like this: <soapenv:Header> <ns1:gw_auth_user_prop soapenv:actor=" http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns1="http://www.guidewire.com/soap ">user</ns1:gw_auth_user_prop> <ns2:gw_auth_password_prop soapenv:actor=" http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:ns2="http://www.guidewire.com/soap ">password</ns2:gw_auth_password_prop> </soapenv:Header> I have tried to instantiate XXXSoapBindingStub and create a custom header and then call XXXSoapBindingStub.setHeader(), however I am getting unexpected behavior and I don't think I'm doing things "the right way". What is the correct way to use a generated client, but simply modify the header message being sent to conform to the above format?
