axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: Axis adding namespace to the soapbody elements
Date Sat, 16 Sep 2006 01:17:25 GMT
Why does it fail? The two messages are semantically equivalent.

Anne

On 9/13/06, seyed.bostandoustnik@bell.ca <seyed.bostandoustnik@bell.ca> wrote:
> Hello all,
>
> I appreciate if someone can help me on this and my apologies if it's
> been asked and answered before.
>
> I was wondering why Axis is adding a namespace to the elements in the
> soap body.
>
> The soapbody element is created from a Document created by JAXB. I
> believe since elementFromDefault="qualified" is set in the schema, JAXB
> adds the default namespace (the same as target namespace) to the
> element. But then later, Call.invoke(SOAPBodyElement[]) adds another
> namespace.
>
> Example:
>
> Before calling Call.invoke(SOAPBodyElement[]):
> ==========
> <soapenv:Body>
>         <notify xmlns="http://www.osg.ca/Repair">
>                 <Timestamp>2006-07-22T03:13:34.000Z</Timestamp>
>                 ...
>         </notify>
> </soapenv:Body>
>
> What Call.invoke(SOAPBodyElement[]) is sending to the endpoint
> ==========
> <soapenv:Body>
>         <ns1:notify xmlns:ns1="http://www.osg.ca/Repair"
> xmlns="http://www.osg.ca/Repair">
>                 <ns1:Timestamp>2006-07-22T03:13:34.000Z</ns1:Timestamp>
>             ...
>         </ns1:notify>
> </soapenv:Body>
>
>
> The fact is it passes our schema validation but fails at the endpoint.
>
> Thanks,
> Seyed Bostandoustnik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

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


Mime
View raw message