Hi,

I have an axis based service (both client & server side) where leaf
nodes in the serialized parameters use an additional namespace, this
leads to the namespace/prefix mapping getting serialized in each
leafnode, e.g.

<?xml version="1.0" encoding="UTF-8"?>
<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>
  <Notifications xmlns="http://foo/2004/08/outbound";>
   <Notification>
    <Id>999x00000001fAh</Id>
    <Record xsi:type="sf:Account" xmlns:sf="urn:foo">
     <sf:Id>001x0000002aFBtAAM</sf:Id>
     <sf:Name>SF doEntityTest()</sf:Name>
    </Record>
   </Notification>
   <Notification>
    <Id>999x00000001fAg</Id>
    <Record xsi:type="sf:Account" xmlns:sf="urn:foo">
     <sf:Id>001x0000002aFBSAA2</sf:Id>
     <sf:Name>SF doEntityTest()</sf:Name>
    </Record>
   </Notification>
  </Notifications>
 </soapenv:Body>
</soapenv:Envelope>

Is there anyway I can get axis to serialize the xmlns:sf="urn:foo"
attribute higher up the tree (in the Envelope would be great) ?

Thanks
Simon

Reply via email to