Return-Path: Delivered-To: apmail-axis-c-user-archive@www.apache.org Received: (qmail 1477 invoked from network); 12 Mar 2011 14:44:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Mar 2011 14:44:40 -0000 Received: (qmail 25231 invoked by uid 500); 12 Mar 2011 14:44:40 -0000 Delivered-To: apmail-axis-c-user-archive@axis.apache.org Received: (qmail 25194 invoked by uid 500); 12 Mar 2011 14:44:39 -0000 Mailing-List: contact c-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C User List" Delivered-To: mailing list c-user@axis.apache.org Received: (qmail 25186 invoked by uid 99); 12 Mar 2011 14:44:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Mar 2011 14:44:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jayawark@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-ww0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Mar 2011 14:44:33 +0000 Received: by wwj40 with SMTP id 40so3181822wwj.32 for ; Sat, 12 Mar 2011 06:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=mJmvypfgDmAD1TrIaSqpKkiCixUOO7AJYpJDHKWjLVI=; b=SZOkegunOQNYJ0UBfwRNwOmFvn/+TaVaNWRJfyGTwIx+cwUIco8WsIgsl9LhD55u1X jsS+Ex8g/+e5yd2PHNPsNn4bWiB9WEwwNQaPstVeNgYxPj6FZaTaxP1LrCu5Da48Ek4o 7hgenOlSXjPJtOpfMeL7WF+e4OnH1fVaCgTOc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=taaTmOvH29QiiFkKbKW1Fa5ruHRrdm3sljs2OOOrnBLk2WW0aLIH4OTx3G7YqzK5UF NZNmIJo4w6ZEZctT23kh8anGp81BTCI4zoJ2csZHCq9G3Ic8YTB9qrZOaQehkRsoiYo7 0cyww+i76mC035N5Th9+iegb1KzvzjwEGra1I= Received: by 10.216.35.83 with SMTP id t61mr615263wea.1.1299941051695; Sat, 12 Mar 2011 06:44:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.88.196 with HTTP; Sat, 12 Mar 2011 06:43:51 -0800 (PST) In-Reply-To: References: From: Nandika Jayawardana Date: Sat, 12 Mar 2011 20:13:51 +0530 Message-ID: Subject: Re: Preserve SOAP header received in SOAP request To: Tejas Sumant Cc: Apache AXIS C User List Content-Type: multipart/alternative; boundary=0016365ee2c89d83ec049e4a1c4b --0016365ee2c89d83ec049e4a1c4b Content-Type: text/plain; charset=ISO-8859-1 If you are doing this thing in the service, it would not work, since in the message receiver, the soap envelope you set will get replaced. Hence either you have to write a message receiver or a module. Regards Nandika On Thu, Mar 10, 2011 at 12:09 PM, Tejas Sumant wrote: > I saw an API axis2_msg_ctx_set_response_soap_envelope() which I expect to > set response envelope. > I created new envelope and the created header with new envelope as parent. > Then created header block in header with some name. > And I set this envelope as response envelope using the above mentioned API > in _invoke callback. However the newly created header block doesnt show up > in the response. > > Is this method incorrect? > > Having described this procedure, I would explore how to implement the > module. > > Thanks, > Tejas > > > > On Thu, Mar 10, 2011 at 11:54 AM, Nandika Jayawardana wrote: > >> Since you want to access soap headers, you will need to implement either a >> message receiver, a handler as a module. You can implement a module and >> engage it to your service. >> >> The module will pickup the incoming header and insert it to the outgoing >> soap message. >> >> Regards >> Nandika >> >> >> On Tue, Mar 8, 2011 at 5:34 AM, Tejas Sumant wrote: >> >>> Hello, >>> >>> I have written service using Axis2c, and I get SOAP header as part of >>> SOAP request. I need to resend the same SOAP header unmodified to client in >>> response. >>> I formed a response in _invoke callback and sent to client. This response >>> contains only SOAP body. How can I preserve the header received and send it >>> back to client? >>> >>> Thanks. >>> >>> -- >>> Tejas Sumant >>> >> >> > > > -- > Tejas Sumant > --0016365ee2c89d83ec049e4a1c4b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If you are doing this thing in the service, it =A0would not work, since in = the message receiver, the soap envelope you set will get replaced. Hence ei= ther you have to write a message receiver or a module.

Regards
Nandika

On Thu, Mar 10,= 2011 at 12:09 PM, Tejas Sumant <tejas.sumant@gmail.com> wrote:
I saw an API axis2_msg_ctx_set_response_soap_envelope() which I expect to s= et response envelope.
I created new envelope and the created header with= new envelope as parent.
Then created header block in header with some n= ame.
And I set this envelope as response envelope using the above mentioned API = in _invoke callback. However the newly created header block doesnt show up = in the response.

Is this method incorrect?

Having described t= his procedure, I would explore how to implement the module.

Thanks,
Tejas



On Thu, Mar 10, 2011 at 11:54 AM, Nandika Jayawardana <= jayawark@gmail.com> wrote:
Since you want to access soap headers, you will need to implement either a = message receiver, a handler as a module. You can implement a module and eng= age it to your service.

The module will pickup the incom= ing header and insert it to the outgoing soap message.

Regards
Nandika

=
On Tue, Mar 8, 2011 at 5:34 AM, Tejas Sumant= <tejas.sumant@gmail.com> wrote:
Hello,

I have wr= itten service using Axis2c, and I get SOAP header as part of SOAP request. = I need to resend the same SOAP header unmodified to client in response.
I formed a response in _invoke callback and sent to client. This response c= ontains only SOAP body. How can I preserve the header received and send it = back to client?

Thanks.

--
Tejas Suman= t




--
Tejas Sumant

--0016365ee2c89d83ec049e4a1c4b--