Why does it fail? The two messages are semantically equivalent.

Anne

On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to