- From: Mithun Sheshagiri <mits1@csee.umbc.edu>
- Date: Thu, 06 Nov 2003 16:37:46 +0000
- To: xmlschema-dev@w3.org
Hi all, I am trying to enclose RDF in SOAP body of my response messages. The schema I am using for the RDF is as follows: <xsd:schema targetNamespace="http://stuff/IProvider.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:effects="http://effects.com/"> <xsd:element name="RDF" targetNamespace="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <xsd:complexType> <xsd:choice> <xsd:element name="ItemList" targetNamespace="http://effects.com/" form="qualified"> <xsd:complexType> <xsd:sequence> <xsd:element name="member" minOccurs="0" maxOccurs="unbounded" targetNamespace="http://effects.com/" form="qualified"> <xsd:complexType> <xsd:attribute ref="rdf:resource" type="xsd:string" form="qualified"/> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute ref="rdf:ID" type="xsd:string" form="qualified"/> </xsd:complexType> </xsd:element> <xsd:element name="keyword" type="xsd:string" nillable="false" targetNamespace="http://effects.com/" form="qualified"/> </xsd:choice> </xsd:complexType> </xsd:element> </xsd:schema> <message name="ItemLookUp0Request"> <part name="req" element="rdf:RDF"/> </message> <message name="ItemLookUp0Response"> <part name="resp" element="rdf:RDF"/> </message> The service accepts a keyword and outputs ItemList. The SOAP response looks like this: <?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> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <ns2:ItemList ns1:ID="instanceOfItemList" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns2="http://effects.com/"> <ns2:member ns1:resource="http://thisone"/> <ns2:member ns1:resource="http://thistwo"/> </ns2:ItemList> <ns3:keyword xsi:nil="true" xmlns:ns3="http://effects.com/"/> </RDF> </soapenv:Body> </soapenv:Envelope> I want to extract the RDF/XML from this message and assert it into my KB. There is a problem though: the keyword element has a xsi namespace which is declared within the Envelope element. I want to move it to the RDF element. What changes should I make to the schema? regards, mithun http://www.cs.umbc.edu/~mits1
Received on Thursday, 6 November 2003 12:03:25 UTC