Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 3004 invoked from network); 2 Jul 2008 04:33:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jul 2008 04:33:23 -0000 Received: (qmail 36796 invoked by uid 500); 2 Jul 2008 04:33:24 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 36787 invoked by uid 500); 2 Jul 2008 04:33:24 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 36776 invoked by uid 99); 2 Jul 2008 04:33:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 21:33:24 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of supun06@gmail.com designates 209.85.198.249 as permitted sender) Received: from [209.85.198.249] (HELO rv-out-0708.google.com) (209.85.198.249) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jul 2008 04:32:31 +0000 Received: by rv-out-0708.google.com with SMTP id c5so192312rvf.28 for ; Tue, 01 Jul 2008 21:32:35 -0700 (PDT) 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=LypyHbeZyTFR1bhK054LDCGPX38EjwTimv8yYaKOk9w=; b=CeQpFpOjuUlU9lHolNkRVdbwvCqrxW0vBSJuXDOGgOjiBLfQPcXAu+Hhe+QADiGNu0 p+HX+a8sq0cW2hYBPIdx5nt0eCJmyXx+Qu/qGTAuBczLUhV2QCdFzO0i8oaurFKqcaba u7cUJfnJD0cMwFu1wSRXJULkVcxAi3qsAgXDg= 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=UAQ7beeyXFc2KDBaaV4ElS/Whw/ouYX2pzuY8U2Gv4q08lyaLnzgAnE3fd0HfW/8tx lAc/qRuWIwtIwPjh9n3ZkgnxE0cfZLIL6IM+gar8lzWlxwAeX0B5PNHUHKPiWJXqaQTj jrru3gtElOCpk95Dm43gNlRfW3wPxjCDHhfFw= Received: by 10.141.15.19 with SMTP id s19mr4132033rvi.124.1214973154738; Tue, 01 Jul 2008 21:32:34 -0700 (PDT) Received: by 10.140.163.17 with HTTP; Tue, 1 Jul 2008 21:32:34 -0700 (PDT) Message-ID: Date: Wed, 2 Jul 2008 10:02:34 +0530 From: "Supun Kamburugamuva" To: "Apache AXIS C User List" Subject: Re: rampart and message with no parameter In-Reply-To: <486AD905.6030404@wso2.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3742_27508265.1214973154727" References: <486A5DF9.3050606@telsey.it> <486AD905.6030404@wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3742_27508265.1214973154727 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, If I'm right, most probably I'm. The problem is that in your policy you are saying to encrypt the message body i.e . But you don't have a message body. So it is perfectly normal to get this error. If this is the case please remove that part from the policy. Supun.. On Wed, Jul 2, 2008 at 6:55 AM, Samisa Abeysinghe wrote: > Frederic Heem wrote: > >> Dear, >> Rampart has been successfully used for messages with at least one >> parameter. To be precise, sec_echo has been used with scenario3. However, a >> problem arises when a message without parameter has to sent, indeed, in this >> case, the body is empty and rampart refuses to send the message because it >> complains that no node has to be encrypted. Does anyone know how to tackle >> this problem ? One ugly hack would be to add a fake parameter, but one has >> to modify the wsdl. >> > > I think this is not a Rampart problem, rather an Axis2/C feature. If the > payload is empty, Axis2/C thinks that there is something wrong. > The rationale for this design was that, if there is no payload to send, why > send an empty message. > > What are the semantics of you sending this message? What does that message > do? I am trying to understand the meaning of such an empty message. > > Samisa... > > Frederic >> >> >> ______________________________________________________________________________ >> >> >> --- NOTICE --- >> >> This email and any attachments are confidential and are intended for >> the >> addressee only. If you have received this message by mistake, please >> contact >> us immediately and then delete the message from your system. You must >> not >> copy, distribute, disclose or act upon the contents of this email. >> Personal >> and corporate data submitted will be used in a correct, transparent and >> lawful >> manner. The data collected will be processed in paper or computerized form >> for >> the performance of contractual and lawful obligations as well as for >> the >> effective management of business relationship. The data processor is >> Telsey >> S.p.A. The data subject may exercise all the rights set forth in art. >> 7 of >> Law by Decree 30.06.2003 n. 196 as reported in the following >> url >> http://www.telsey.com/privacy.asp. >> >> ______________________________________________________________________________ >> >> 798t8RfNa6Dl8Ilf >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org >> For additional commands, e-mail: axis-c-user-help@ws.apache.org >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG. Version: 8.0.101 / Virus Database: 270.4.3/1528 - Release >> Date: 7/1/2008 7:26 AM >> >> > > > -- > Samisa Abeysinghe Director, Engineering; WSO2 Inc. > > http://www.wso2.com/ - "The Open Source SOA Company" > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > ------=_Part_3742_27508265.1214973154727 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

If I'm right, most probably I'm. The problem is that in your policy you are saying to encrypt the message body i.e

<sp:EncryptedParts>
    <sp:Body/>
</sp:EncryptedParts>.

But you don't have a message body. So it is perfectly normal to get this error. If this is the case please remove that part from the policy.

Supun.. 

On Wed, Jul 2, 2008 at 6:55 AM, Samisa Abeysinghe <samisa@wso2.com> wrote:
Frederic Heem wrote:
Dear,
Rampart has been successfully used for messages with at least one parameter. To be precise, sec_echo has been used with scenario3. However, a problem arises when a message without parameter has to sent, indeed, in this case, the body is empty and rampart refuses to send the message because it complains that no node has to be encrypted. Does anyone know how to tackle this problem ? One ugly hack would be to add a fake parameter, but one has to modify the wsdl.

I think this is not a Rampart problem, rather an Axis2/C feature. If the payload is empty, Axis2/C thinks that there is something wrong.
The rationale for this design was that, if there is no payload to send, why send an empty message.

What are the semantics of you sending this message? What does that message do? I am trying to understand the meaning of such an empty message.

Samisa...

Frederic


______________________________________________________________________________

--- NOTICE ---

This  email  and  any  attachments  are  confidential and are intended for the
addressee  only.  If you have received this message by mistake, please contact
us  immediately and  then  delete the message from your system.   You must not
copy, distribute, disclose  or  act upon the contents of this email.  Personal
and corporate data submitted will be used in a correct, transparent and lawful
manner. The data collected will be processed in paper or computerized form for
the  performance  of  contractual  and  lawful  obligations as well as for the
effective  management of business relationship.   The data processor is Telsey
S.p.A.   The  data  subject may exercise all the rights set forth in art. 7 of
Law  by  Decree  30.06.2003  n.  196   as   reported   in  the  following  url
http://www.telsey.com/privacy.asp.

______________________________________________________________________________
798t8RfNa6Dl8Ilf

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG. Version: 8.0.101 / Virus Database: 270.4.3/1528 - Release Date: 7/1/2008 7:26 AM
 


--
Samisa Abeysinghe Director, Engineering; WSO2 Inc.

http://www.wso2.com/ - "The Open Source SOA Company"



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


------=_Part_3742_27508265.1214973154727--