Smells like a bug...

On 10/30/07, axelspin <[EMAIL PROTECTED]> wrote:
>
>
> and you are right!.. I did it `cose I  took some inspiration from here
>
> http://thefigtrees.net/DAWG/sparql-wsdl-1.1-note.html#wsdl11
>
> Since I have to develop a service to access to a RDF model
>
> Now.. I moved that import again to xs:import because the REST access to the
> service doesn`t work anymore properly.
> my XMLBeans are not poplulated because the namespace is not present anymore
> in the generated XML
>
> This is wat I get with wsdl:import after a REST Call
>
> INFO  org.neries.orfeus.rdf.webservice.AbstractRDFService -
> <rdfInstances><uri>smi://eu.orfeusddd</uri></rdfInstances>
>
> org.apache.xmlbeans.XmlException: error: The document is not a
> [EMAIL PROTECTED]:neries:orfeus:ws: document element namespace mismatch
> expected "urn:neries:orfeus:ws" got ""
>
>
> And this is the right XML passed from axis2 through AXIOM with an xs:import
>
> INFO  org.neries.orfeus.rdf.webservice.AbstractRDFService -
> <axis2ns5:rdfInstances
> xmlns:axis2ns5="urn:neries:orfeus:ws"><axis2ns5:creator
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true"
> /><axis2ns5:starttime xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:nil="true" /><axis2ns5:endtime
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true"
> /><axis2ns5:uri>smi://eu.orfeus</axis2ns5:uri><axis2ns5:type
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true"
> /><axis2ns5:upperLat xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:nil="true" /><axis2ns5:upperLon
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true"
> /><axis2ns5:lowerLat xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:nil="true" /><axis2ns5:lowerLon
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true"
> /></axis2ns5:rdfInstances>
>
>
> is it a bug? what If I had to use the wsdl:import to import a wsdl then?
> would the RESTful Calls being affected anyhow?
>
>
>
> Anne Thomas Manes wrote:
> >
> > You should not use wsdl:import to import a schema.
> >
> > Anne
> >
> > On 10/30/07, axelspin <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >> Well, I applied some changes like using a wsdl:import rather than an
> >> xs:import
> >> <wsdl:import namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
> >>                location="rdf.xsd"/>
> >>
> >> and most important thing, I changed my ws testing tool.
> >> i was using the Eclispe WS Explorer, and it doesn`t recognize all the
> >> schema
> >> imported in the wsdl and shows some how a wrong output.
> >>
> >> now I am using this one:
> >> http://www.soapui.org/
> >>
> >> and to have a second proof:
> >> http://soapclient.com/soaptest.html
> >>
> >> everything is well parsed and the serialized response is consistent too
> >>
> >>
> >>
> >> axelspin wrote:
> >> >
> >> > 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 part of the wsdl I where I import the the RDF element
> >> >
> >> > <xs:schema attributeFormDefault="qualified"
> >> elementFormDefault="qualified"
> >> > targetNamespace="urn:neries:orfeus:ws"
> >> > xmlns:xs="http://www.w3.org/2001/XMLSchema";>
> >> >         <xs:import
> >> namespace="http://www.w3.org/1999/02/22-rdf-syntax-ns";
> >> > schemaLocation="resources?xsd=rdf-dummy.xsd"/>
> >> >
> >> >                 [request elements omitted...]
> >> >
> >> >     </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#a13486398
> >> Sent from the Axis - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/response-prefix-omitted-tf4712371.html#a13490639
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to