You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Simon Fell <sf...@salesforce.com> on 2004/08/23 23:44:07 UTC

Namespace serialization

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

interface typemapping

Posted by Janarthanan Poornavel <jp...@orangescape.com>.
Hi people,
            I have this situation, where when I try to send a soapmessage
,with data objects added in the message body, it results in 

{http://xml.apache.org/axis/}stackTrace: java.io.IOException: No serializer
found for class a.b.c

Would there be any suggestion about how to say implementation information
For the interface references present in the WSDL.

Regards,
jana