I can't think of a way to access the headers from an RPC service. You can easily from a messaging service, which gets a copy of the SOAP envelope.
Scott Nichol P.S.: You only waited a little over 2.5 hours for a response to your original question to re-post. I suggest you develop more patience or rely on some means other than these lists to answer your questions. The lists are not active enough to maintain a timely turnaround. ----- Original Message ----- From: "Omprakash Bachu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, October 24, 2002 5:49 PM Subject: RE: How to populate the elements into soap header block? > Can any one answer this...? > > -----Original Message----- > From: Omprakash Bachu [mailto:omprakash.bachu@;mphasis.com] > Sent: Thursday, October 24, 2002 3:01 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: How to populate the elements into soap header block? > > > I got the below thing done by making... > > ... ... > Vector params = new Vector(); > params.addElement(new Parameter("ImgRqGrp", Element.class, root, > Constants.NS_URI_LITERAL_XML)); > Header hdr = new Header(); > Vector hdrEntriesVec = new Vector(); > hdrEntriesVec.addElement(root); > hdr.setHeaderEntries(hdrEntriesVec); > Call call = new Call("urn:AddressFetcher", "putListings", params, hdr, > Constants.NS_URI_SOAP_ENC); > ... ... > > But still have the question, how to get the header block at service > implementation side? > > thanks > Om > > -----Original Message----- > From: Omprakash Bachu [mailto:omprakash.bachu@;mphasis.com] > Sent: Thursday, October 24, 2002 2:11 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: How to populate the elements into soap header block? > > > > Hi all, in order to achieve a template as below, having the > <SOAP-ENV:Header> element structure, what I need to do? > > ---------------------------------------------------------------------- ------ > ------------ > <?xml version='1.0' encoding='UTF-8'?> > > <SOAP-ENV:Envelope > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/1999/XMLSchema"> > <SOAP-ENV:Header> > </SOAP-ENV:Header> > > <SOAP-ENV:Body> > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > ---------------------------------------------------------------------- ------ > -------------- > > As per my understanding, that "call.setParams(params)" sets the elements in > <SOAP-ENV:Body> tag but can anyone send me the sample for setting the > headers. > > > thanks in advance > Om > > > -- > To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> > For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org> > > -- To unsubscribe, e-mail: <mailto:soap-user-unsubscribe@;xml.apache.org> For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>