based on your first example your second example is invalid -

in your first example <submitOrderResponse> is in the
"http://www.globalcrossing.com/ifo/version_1.1"; namespace

in the second it's in "http://www.globalcrossing.com/version_1.1";.

i'm betting that <submitOrderReturn> and <createdLocations> are also in
"http://www.globalcrossing.com/ifo/version_1.1";.  check your schema and target
namespaces and make sure they are what you think they are - Axis has always
been good about keeping namespace declarations to a minimum (as long as you
get the elementFormDefault="qualified" attribute in there).

hth.
..............ron.

> Hello all,
>
> I was wondering why Axis seems to add a namespace declaration to pretty
> much every element when it marshals an object.
>
> It makes the messages larger then they really need to be... I'm not
> "complaining" so much as wondering...
>
> Thanks to all ( example below )
> -Clint
>
> I keep getting return objects like:
> =======================================================<soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   <soapenv:Body>
>     <submitOrderResponse
> xmlns="http://www.globalcrossing.com/ifo/version_1.1";>
>       <submitOrderReturn>
>         <createdLocations>
>           <ns1:inputId
> xmlns:ns1="http://www.globalcrossing.com/version_1.1";>43e8e292-0f2f-4fb0
> -a587-c6cc4bc73036</ns1:inputId>
...

> when this is also perfectly valid (and ~50% the size)
> =======================================================<soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   <soapenv:Body>
>     <submitOrderResponse
> xmlns="http://www.globalcrossing.com/version_1.1";>
>       <submitOrderReturn>
>         <createdLocations>
>           <inputId>43e8e292-0f2f-4fb0-a587-c6cc4bc73036</inputId>
...

Reply via email to