axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Sandholm <sandh...@mcs.anl.gov>
Subject Re: Fwd: Re: ebXML / Axis
Date Wed, 23 Apr 2003 14:10:38 GMT
We had the same problem with digital signatures so I added a call to 
SOAPBody called disableFormatting(). That did it for us.
/Thomas
At 05:15 AM 4/23/2003 -0700, Davanum Srinivas wrote:
>Thoughts anyone?
>
>-- dims
>
>--- "Ng Chi Yuen [Cyng]" <cyng@csis.hku.hk> wrote:
> > Date: Wed, 23 Apr 2003 11:00:47 +0800 (CST)
> > From: "Ng Chi Yuen [Cyng]" <cyng@csis.hku.hk>
> > To: Davanum Srinivas <dims@yahoo.com>
> > Subject: Re: ebXML / Axis
> >
> > Hi Davanum,
> >
> >         This is CY from CECID. Sorry to bother you.
> >
> >         I am now migrating to Axis 1.1RC2 in our ebXML MSH 
> implementation and
> > I have two questions.
> >
> > (1) You may try the following code:
> >
> >     SOAPMessage message = MessageFactory.newInstance().createMessage();
> >     SOAPHeader soapHeader = 
> message.getSOAPPart().getEnvelope().getHeader();
> >     if (soapHeader != null) {
> >         System.out.println("SOAPHeader is not null.");
> >     }
> >     if (soapHeader.getElementName().getLocalName().equals("")) {
> >         System.out.println("SOAPHeader name = \"\"");
> >     }
> >     message.writeTo(System.out);
> >
> >
> >     When a SOAPMessage is constructed from scratch, you may notice that the
> >     SOAPHeader is constructed but its local name = "". Also, no
> >     <soapenv:Header/> is printed when the message is serialized.
> >
> >     I have traced the source code and I know the reason why this is so.
> >     I just wonder if this is a bug that can be reported.
> >
> > (2) When a message is serialized, the format depends on
> >     org.apache.axis.encoding.SerializationContext which extends
> >     javax.xml.rpc.encoding.SerializationContext. However, I find no way to
> >     disable the setPretty() in
> >     org.apache.axis.encoding.SerializationContextImpl after a message is
> >     constructed.
> >
> >     The reason why I want to disable pretty printing is that it may void
> >     the digital signature. In the signing process, I transform the SOAP 
> tree
> >     to become a DOM tree for Apache XML security library. Such a SOAP tree
> >     or DOM tree does not have extra text nodes ("\n" or space). But when
> >     the message is serialized, extra text nodes are inserted which void
> >     the digital signature.
> >
> >
> >         Thanks a lot for your help!
> >
> > Regards,
> > CY
> >
> > 
> ----------------------------------------------------------------------------
> > Ng Chi Yuen, CY.       cyng@csis.hku.hk       http://www.cecid.hku.hk/
> > Technology Officer,
> > Centre for E-Commerce Infrastructure Development,
> > The University of Hong Kong
> > 
> ----------------------------------------------------------------------------
> >
>
>
>=====
>Davanum Srinivas - http://webservices.apache.org/~dims/
>
>__________________________________________________
>Do you Yahoo!?
>The New Yahoo! Search - Faster. Easier. Bingo
>http://search.yahoo.com

Thomas Sandholm <sandholm@mcs.anl.gov>
The Globus Project(tm) <http://www.globus.org>
Ph: 630-252-1682, Fax: 630-252-1997
Argonne National Laboratory


Mime
View raw message