Could someone please tell me how I would defined a deserializer that would work for the following tag: <m:DiscoverResponse xmlns:m="urn:schemas-microsoft-com:xml-analysis">
Thank you... ----- Original Message ----- From: "Sloan Seaman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 1:59 PM Subject: Re: How to deserialize > I think I have a partial solution. The XML being returned has the return > element in the null namespace when it should be in the > urn:schemas-microsoft-com:xml-analysis namespace.... > > I am now wondering if there is a way I can change the way Axis works to > accommodate this issue. > > Anyone know how to do this? > > -- > Sloan > > ----- Original Message ----- > From: "Sloan Seaman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, February 07, 2003 12:55 PM > Subject: How to deserialize > > > > I think my last question was a bit too involved and I have figured out > some > > things so let me ask this. > > > > I'm new to Axis and SOAP and I am wondering how I would deserialize the > info > > at the end of this msg? > > > > The <return> tag says it is of type string so I though Axis would just > > return all the child elements in one string but this does not seem to be > the > > case. Axis attempts to parse the info and gives me a unexpected child > > element exception. > > > > I'm assuming (possibly incorrectly) that I have to write my own > deserializer > > for this but I do not know how. Could someone help me out or at least > tell > > me if I am headed down the right path... > > > > Thank you! > > > > Sloan > > [EMAIL PROTECTED] > > > > > > -- returned XML -- > > > > <?xml version="1.0"?> > > <SOAP-ENV:Envelope > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> > > <SOAP-ENV:Body> > > <m:DiscoverResponse xmlns:m="urn:schemas-microsoft-com:xml-analysis"> > > <return > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" > > xsi:type="xsd:string" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > <root xmlns="urn:schemas-microsoft-com:xml-analysis:rowset" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > <xsd:schema > > xmlns="urn:schemas-microsoft-com:xml-analysis:rowset" > > > targetNamespace="urn:schemas-microsoft-com:xml-analysis:rowset" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:sql="urn:schemas-microsoft-com:xml-sql" > > elementFormDefault="qualified"> > > <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:complexType name="row"> > > <xsd:choice maxOccurs="unbounded" minOccurs="0"> > > <xsd:element name="DataSourceName" > type="xsd:string" > > sql:field="DataSourceName"/> > > <xsd:element name="DataSourceDescription" > > type="xsd:string" > > sql:field="DataSourceDescription"/> > > <xsd:element name="URL" type="xsd:string" > > sql:field="URL"/> > > <xsd:element name="DataSourceInfo" > type="xsd:string" > > sql:field="DataSourceInfo"/> > > <xsd:element name="ProviderName" type="xsd:string" > > sql:field="ProviderName"/> > > <xsd:element name="ProviderType" > > sql:field="ProviderType"> > > <xsd:complexType> > > <xsd:sequence maxOccurs="unbounded" > > minOccurs="0"> > > <xsd:any processContents="lax" > > maxOccurs="unbounded"/> > > </xsd:sequence> > > </xsd:complexType> > > </xsd:element> > > <xsd:element name="AuthenticationMode" > > sql:type="xsd:string" > > sql:field="AuthenticationMode"/> > > </xsd:choice> > > </xsd:complexType> > > </xsd:schema> > > <row> > > <DataSourceName>Local Analysis Server</DataSourceName> > > <DataSourceDescription>Microsoft Analysis Server 2000 on > > local > > machine</DataSourceDescription> > > <URL>http://localhost/xmla/msxisapi.dll</URL> > > <DataSourceInfo>Provider=MSOLAP;Data > > Source=local</DataSourceInfo> > > <ProviderName>Microsoft XML for Analysis</ProviderName> > > <ProviderType> > > <TDP/> > > <MDP/> > > <DMP/> > > </ProviderType> > > <AuthenticationMode>Unauthenticated</AuthenticationMode> > > </row> > > </root> > > </return> > > </m:DiscoverResponse> > > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope> > > > > > > > > > > <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:complexType name="row"> > > > > <xsd:choice maxOccurs="unbounded" minOccurs="0"> > > > > <xsd:element name="DataSourceName" type="xsd:string" > > sql:field="DataSourceName"/> > > > > <xsd:element name="DataSourceDescription" type="xsd:string" > > sql:field="DataSourceDescription"/> > > > > <xsd:element name="URL" type="xsd:string" sql:field="URL"/> > > > > <xsd:element name="DataSourceInfo" type="xsd:string" > > sql:field="DataSourceInfo"/> > > > > <xsd:element name="ProviderName" type="xsd:string" > > sql:field="ProviderName"/> > > > > <xsd:element name="ProviderType" sql:field="ProviderType"> > > > > <xsd:complexType> > > > > <xsd:sequence maxOccurs="unbounded" minOccurs="0"> > > > > <xsd:any processContents="lax" > > maxOccurs="unbounded"/></xsd:sequence></xsd:complexType></xsd:element> > > > > <xsd:element name="AuthenticationMode" sql:type="xsd:string" > > > sql:field="AuthenticationMode"/></xsd:choice></xsd:complexType></xsd:schema> > > > > <row> > > > > <DataSourceName>Local Analysis Server</DataSourceName> > > > > <DataSourceDescription>Microsoft Analysis Server 2000 on local > > machine</DataSourceDescription> > > > > <URL>http://localhost/xmla/msxisapi.dll</URL> > > > > <DataSourceInfo>Provider=MSOLAP;Data Source=local</DataSourceInfo> > > > > <ProviderName>Microsoft XML for Analysis</ProviderName> > > > > <ProviderType><TDP/><MDP/><DMP/></ProviderType> > > > > > <AuthenticationMode>Unauthenticated</AuthenticationMode></row></root></retur > > n></m:DiscoverResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> > > > > > >
