axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12645] - SOAP Headers not supported
Date Sun, 15 Sep 2002 19:45:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12645>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12645

SOAP Headers not supported





------- Additional Comments From chris.haddad@cobia.net  2002-09-15 19:45 -------
One can also add headers and not have the instance object serialized into the 
body if you add them to the call object as SOAPHeaderElements.  for example:

String HEADER_NS = "http://soapinterop.org/echoheader/";
String HEADER_CRED = "logonMsg";
String HEADER_USRNAME = "aUsr";
String HEADER_PWDNAME = "secretPWD";


org.apache.axis.message.SOAPHeaderElement se =
new org.apache.axis.message.SOAPHeaderElement(HEADER_NS,
HEADER_CRED,
null);
                                                                     
se.addChild(new org.apache.axis.message.SOAPHeaderElement(HEADER_NS,
HEADER_USRNAME,
"aladin"));

se.addChild(new org.apache.axis.message.SOAPHeaderElement(HEADER_NS,
HEADER_PWDNAME,
"sesame"));
                                
                                
_call.addHeader(se);


Will go over the wire inside the header even when multiref=true:

<ns1:logonMsg xmlns:ns1="http://soapinterop.org/echoheader/">
   <ns1:aUsr xsi:type="xsd:string">aladin</ns1:aUsr>
   <ns1:secretPWD xsi:type="xsd:string">sesame</ns1:secretPWD>
  </ns1:logonMsg>

Mime
View raw message