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> <ns2:createdId xmlns:ns2="http://www.globalcrossing.com/version_1.1">id-001</ns2:create dId> </createdLocations> <createdActions> <ns3:productId xmlns:ns3="http://www.globalcrossing.com/version_1.1">Product</ns3:produ ctId> <ns4:orderNo xmlns:ns4="http://www.globalcrossing.com/version_1.1">1234567890</ns4:or derNo> <ns5:itemNo xmlns:ns5="http://www.globalcrossing.com/version_1.1">1</ns5:itemNo> <ns6:itemNo xmlns:ns6="http://www.globalcrossing.com/version_1.1">2</ns6:itemNo> </createdActions> </submitOrderReturn> </submitOrderResponse> </soapenv:Body> </soapenv:Envelope> ======================================================== (note the extra namespace qualifications) 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> <createdId>id-001</createdId> </createdLocations> <createdActions> <productId>Product</productId> <orderNo>1234567890</orderNo> <itemNo>1</itemNo> <itemNo>2</itemNo> </createdActions> </submitOrderReturn> </submitOrderResponse> </soapenv:Body> </soapenv:Envelope> ========================================================
