Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 42136 invoked from network); 13 Dec 2008 04:21:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2008 04:21:35 -0000 Received: (qmail 85176 invoked by uid 500); 13 Dec 2008 04:21:39 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 85162 invoked by uid 500); 13 Dec 2008 04:21:39 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 85153 invoked by uid 99); 13 Dec 2008 04:21:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2008 20:21:38 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prasuna.lanka@gmail.com designates 74.125.46.158 as permitted sender) Received: from [74.125.46.158] (HELO yw-out-1718.google.com) (74.125.46.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 04:21:17 +0000 Received: by yw-out-1718.google.com with SMTP id 6so1631017ywa.88 for ; Fri, 12 Dec 2008 20:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=5H7PfTcOOHAjaVZ0ASdSnwZprdIQEl9XX4LGl+vLWF0=; b=rvy/rZ1+YPU33Q0p08pbZa0UDB8ZcmRuA6T7RrkWm4wzPHk2FrIVnzsr3WSgr6ygPz TYom/fMT+Irsa6L7CeS85ruF5DHT2/1d9ll05pTsRc9fw90pTQYYLPH3/qCtQjUyJjUK HzEuJRyyhq07CKnfWszUl5ZJRRNSe3tc+lr1w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=TO48Ux2fKwQNpJJA+bsh6IdW/6e9Uz7dD0ySqbuq/p/gbUOCpv/XO5OIW5hKeHT971 k5bUn5qvIPSON95KkxkAOqjPMPrgyxeRUZCbdxRzhAtP7Xj0UksDF5ushR1Lqx4utCEX 1X3g09wq1MKYJMc7kXrvhoc4Xfuxyx2ER2rq4= Received: by 10.151.14.5 with SMTP id r5mr7666858ybi.163.1229142055804; Fri, 12 Dec 2008 20:20:55 -0800 (PST) Received: by 10.151.45.15 with HTTP; Fri, 12 Dec 2008 20:20:55 -0800 (PST) Message-ID: <140ed8a60812122020x3d6f21c6ic070978309796d86@mail.gmail.com> Date: Fri, 12 Dec 2008 23:20:55 -0500 From: "Prasuna Lanka" To: axis-user@ws.apache.org Subject: Re: [Axis2] Custom Soap Header In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29194_8705861.1229142055812" References: <140ed8a60812091406t35dfbc7fu2cc3bb895d2445c5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_29194_8705861.1229142055812 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Keith: My attempt to set the SOAP headers in the response similar to the way you set the Http header hasnt succeeded. thanks for the link.. Thanks for the link provided. (http://wso2.org/library/2068) . That gave a good insight of the detail of Beans generated. Here is my xml string: Another observation: I have CustHeader as well as CustHeader1 classes in the generated src. In my client code, i am passing CustHeader1 instance as a second parameter, which contains Cust On Fri, Dec 12, 2008 at 10:12 AM, keith chapman wrote: > This blog post [1] shows how you could add a SOAP header to the response > manually. > > Thanks, > Keith. > > [1] > http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html > > On Wed, Dec 10, 2008 at 3:36 AM, Prasuna Lanka wrote: > >> Hello, >> >> Using Axis2-1.3. , I generated server side stuff from a 3rd party wsdl >> which contains definitions for custom SOAP Header. That is comprised of more >> than 3 User defined types. But in the generated source, i couldnt find any >> way to receive or send that custom SOAP header object except the >> request ojbject coming in which is in SOAP Body. I read some where to use >> wsdl2java -exsh true, to get the support for SOAP headers, but when i tried >> on command prompt, it shows only help options. Other than OM methods, is >> there any way that i can read/ the header object from the incoming request? >> >> Thanks in advance. >> Prasoona. >> >> >> > > > > -- > Keith Chapman > Senior Software Engineer > WSO2 Inc. > Oxygenating the Web Service Platform. > http://wso2.org/ > > blog: http://www.keith-chapman.org > ------=_Part_29194_8705861.1229142055812 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Keith: My attempt to set the SOAP headers in the response similar to the way you set the Http header hasnt succeeded. thanks for the link..
 
Thanks for the link provided. (http://wso2.org/library/2068) . That gave a good insight of the detail of Beans generated.
Here is my xml string:
 
<ns3:CustHeader xmlns:ns3="http://webservices.cust.com/cg/4.0/Core/" xmlns:soape
nv="http://schemas.xmlsoap.org/soap/envelope/" soapenv:mustUnderstand="0"><ns3:O
rigin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:EndPoi
nt" entityID="entityid" organizationID="abc" systemType="systype" /><ns3:Desti
nation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:EndPo
int" entityID="entityid" organizationID="abc" systemType="systype" /><ns3:Inte
rmediaries><ns3:EndPoint xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" x
si:type="ns3:EndPoint" entityID="entityid" organizationID="abc" systemType="sy
stype" /></ns3:Intermediaries></ns3:CustHeader>
 
Another observation: I have CustHeader as well as CustHeader1 classes in the generated src. In my client code, i am passing CustHeader1 instance as a second parameter, which contains Cust


 
On Fri, Dec 12, 2008 at 10:12 AM, keith chapman <keithgchapman@gmail.com> wrote:
This blog post [1] shows how you could add a SOAP header to the response manually.

Thanks,
Keith.

[1] http://www.keith-chapman.org/2008/10/axis2-setting-custom-http-headers-on.html

On Wed, Dec 10, 2008 at 3:36 AM, Prasuna Lanka <prasuna.lanka@gmail.com> wrote:
Hello,
 
Using Axis2-1.3. , I generated server side stuff from a 3rd party wsdl which contains definitions for custom SOAP Header. That is comprised of more than 3 User defined types. But in the generated source, i couldnt find any way to receive or send that custom SOAP header object except the request ojbject coming in which is in SOAP Body. I read some where to use wsdl2java -exsh true, to get the support for SOAP headers,  but when i tried on command prompt, it shows only help options. Other than OM methods, is there any way that i can read/ the header object from the incoming request?
 
Thanks in advance.
Prasoona.
 
 



--
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

------=_Part_29194_8705861.1229142055812--