Hi,

I am developing ws with axis2 (1.2,1.3 behave the same) and AXIOM with raw
XML in out and I need to include in a SOAP envelope of a document/literal
style WS a response that is an RDF document.

in my operation method, if I print out the OMElement, just before leaving
the payload to axis2 I get the right document with the right prefix in front
of the RDF root tag.

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
xmlns:dc="http://purl.org/dc/elements/1.1/";
xmlns:wgs="http://www.w3.org/2003/01/geo/wgs84_pos#";
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
xmlns:xsd="http://www.w3.org/2001/XMLSchema#";>
  ...
<rdf:RDF>

Afterwards, when I get the SOAP message the prefix disappears! while all the
namespaces are still there.

below there is the  the xsd I use in my wsdl to declare the RDF element

<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="urn:neries:orfeus:ws"
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <import namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns";
schemaLocation="resources?xsd=rdf-dummy.xsd"/> 

                [request elements omitted...]

                    <xs:element ref="rdf:RDF"/>

                         
    </xs:schema>


and the Response Message declaration takes this shape:

<wsdl:message name="rdfClassesResponseMessage">
<wsdl:part name="part1" element="rdf:RDF">
    </wsdl:part>
</wsdl:message>

am I doing something wrong?
how can I tell to axis2 not to erase the prefixes of my response root tag?


thanks
-- 
View this message in context: 
http://www.nabble.com/response-prefix-omitted-tf4712371.html#a13469794
Sent from the Axis - User mailing list archive at Nabble.com.


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

Reply via email to