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-dev-unsubscribe@;xml.apache.org>
For additional commands, e-mail: <mailto:soap-dev-help@;xml.apache.org>