I need to return the schema of some of my serialized objects as part of the soap message.  An example of this is below.  I am using a custom serializer to handle the <root> tag.  So, is there an easy way for me to put the schema inside the message.  Is there an object I can create, set up, and return to do this?  Or will I have to create my own “schema” object and custom serializer for that.

 

Anil

 

 

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"

                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<soap:Body>

<DiscoverResponse xmlns="urn:schemas-microsoft-com:xml-analysis">

   <return>

       <root xmlns="urn:schemas-microsoft-com:xml-analysis:rowset">

          <xsd:schema xmlns:sql="urn:schemas-microsoft-com:xml-sql"

                      elementFormDefault="qualified"

                      targetNamespace="urn:schemas-microsoft-com:xml-analysis:rowset">

              <xsd:element name="root">

                  <xsd:complexType>

                       <xsd:sequence minOccurs="0" maxOccurs="unbounded">

                           <xsd:element name="row" type="row" />

                       </xsd:sequence>

                  </xsd:complexType>

              </xsd:element>

              ...
          </xsd:schema>

          <row>

              <DataSourceName>Test Server</DataSourceName>

              <DataSourceDescription>Test Provider for OLAP </DataSourceDescription>

          </row>

       </root>

   </return>

</DiscoverResponse>

</soap:Body>

</soap:Envelope>

 

 

 

 

 

Reply via email to