Re: SoapException: DataSourceInfo property was missing or not correctly specified.

From: Maersa (ma_ersa_at_hotmail.com)
Date: 06/04/04

  • Next message: Akshai Mirchandani [MS]: "Re: SoapException: DataSourceInfo property was missing or not correctly specified."
    Date: Fri, 4 Jun 2004 15:48:31 +0800
    
    

    What I can't understand is why do we need to specify the "namespace" for
    each
    property ? couldn't we have just added it to the "PropertyList" element ?

    "Akshai Mirchandani [MS]" <akshaim@online.microsoft.com> wrote in message
    news:40bfcbae$1@news.microsoft.com...
    > Yes, this was part of extra validation work that got implemented in 1.1
    > after the beta. Previously we were ignoring namespaces in a few places,
    but
    > now we obey them.
    >
    > Thanks,
    > Akshai
    > --
    > This posting is provided "AS IS" with no warranties, and confers no rights
    > Please do not send email directly to this alias. This alias is for
    newsgroup
    > purposes only.
    >
    > "Maersa" <ma_ersa@hotmail.com> wrote in message
    > news:O5gljZcSEHA.2780@TK2MSFTNGP09.phx.gbl...
    > > is this something new in the RTM release of XMLA 1.1 ?
    > > this was never a problem in the beta version or XML/A 1.0
    > >
    > > thanks,
    > >
    > >
    > > "Akshai Mirchandani [MS]" <akshaim@online.microsoft.com> wrote in
    message
    > > news:40bf7443$1@news.microsoft.com...
    > > > <Properties>
    > > > <PropertyList>
    > > > <DataSourceInfo xmlns="">Local Analysis
    Server</DataSourceInfo>
    > > >
    > > > As you can see, the DataSourceInfo element is in the empty namespace
    > ("").
    > > > You need to change it to be in the
    > > "urn:schemas-microsoft-com:xml-analysis"
    > > > namespace.
    > > >
    > > > Thanks,
    > > > Akshai
    > > > --
    > > > This posting is provided "AS IS" with no warranties, and confers no
    > rights
    > > > Please do not send email directly to this alias. This alias is for
    > > newsgroup
    > > > purposes only.
    > > >
    > > > "Maersa" <ma_ersa@hotmail.com> wrote in message
    > > > news:eGhsrxSSEHA.2908@TK2MSFTNGP10.phx.gbl...
    > > > > this is how it looks....
    > > > >
    > > > > ----------------------------
    > > > > <?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><Discover
    > > > >
    > > >
    > >
    >
    xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>DBSCHEMA_CATALOG
    > > > > S</RequestType><Restrictions><RestrictionList
    > > > > /></Restrictions><Properties><PropertyList><DataSourceInfo
    > > xmlns="">Local
    > > > > Analysis Server</DataSourceInfo><Format
    > > > >
    > xmlns="">Tabular</Format></PropertyList></Properties></Discover><Session
    > > > > xmlns="urn:schemas-microsoft-com:xml-analysis"
    > > > > /></soap:Body></soap:Envelope>
    > > > > ------------------------------------------------------
    > > > >
    > > > > xmlns is empty for the <DataSourceInfo> elements....
    > > > >
    > > > > but shouldn't the following have assigned the namespaces for them ?
    > > > >
    > > > > XmlElement properties = XmlDoc.CreateElement( "PropertyList",
    > > > > "urn:schemas-microsoft-com:xml-analysis" )
    > > > > properties.InnerXml = "xmlProperties;
    > > > >
    > > > > thanks,
    > > > >
    > > > >
    > > > > "Akshai Mirchandani [MS]" <akshaim@online.microsoft.com> wrote in
    > > message
    > > > > news:40be6cac$1@news.microsoft.com...
    > > > > > Can you obtain the XML in your SOAP request? There are various
    tools
    > > > > > available to trace SOAP messages (e.g. the trace utility that
    comes
    > > with
    > > > > the
    > > > > > SOAP Toolkit 3.0). Looking at the XML is probably the easiest way
    of
    > > > > > understanding what the problem might be...
    > > > > >
    > > > > > Thanks,
    > > > > > Akshai
    > > > > > --
    > > > > > This posting is provided "AS IS" with no warranties, and confers
    no
    > > > rights
    > > > > > Please do not send email directly to this alias. This alias is for
    > > > > newsgroup
    > > > > > purposes only.
    > > > > >
    > > > > > "Maersa" <ma_ersa@hotmail.com> wrote in message
    > > > > > news:OIIwmxPSEHA.1388@TK2MSFTNGP09.phx.gbl...
    > > > > > > hi,
    > > > > > >
    > > > > > > when i create the actual XmlElement for the "properties", i'm
    > > actually
    > > > > > > passing in the namespace....
    > > > > > >
    > > > > > > XmlElement properties = XmlDoc.CreateElement( "PropertyList",
    > > > > > > "urn:schemas-microsoft-com:xml-analysis" )
    > > > > > > properties.InnerXml = "xmlProperties;
    > > > > > >
    > > > > > > thanks,
    > > > > > >
    > > > > > >
    > > > > > >
    > > > > > > "Akshai Mirchandani [MS]" <akshaim@online.microsoft.com> wrote
    in
    > > > > message
    > > > > > > news:40be18b4$1@news.microsoft.com...
    > > > > > > > I'm going to guess that your properties are not in the correct
    > > > > > > namespace --
    > > > > > > > please take a look at the Sample.Net that comes with the 1.1
    SDK
    > > for
    > > > > an
    > > > > > > > example of the namespace that PropertyList needs to be in.
    > > > > > > >
    > > > > > > > HTH,
    > > > > > > > Akshai
    > > > > > > > --
    > > > > > > > This posting is provided "AS IS" with no warranties, and
    confers
    > > no
    > > > > > rights
    > > > > > > > Please do not send email directly to this alias. This alias is
    > for
    > > > > > > newsgroup
    > > > > > > > purposes only.
    > > > > > > >
    > > > > > > > "Maersa" <ma_ersa@hotmail.com> wrote in message
    > > > > > > > news:Obg8wFISEHA.3628@TK2MSFTNGP12.phx.gbl...
    > > > > > > > > hi all,
    > > > > > > > >
    > > > > > > > > i'm using xmla 1.1 (rtm) and trying to get a list of
    catalogs,
    > > but
    > > > > am
    > > > > > > > > getting the following error.
    > > > > > > > >
    > > > > > > > > "SoapException: Unable to process the request, because the
    > > > > > > DataSourceInfo
    > > > > > > > > property was missing or not correctly specified."
    > > > > > > > >
    > > > > > > > >
    > > > > > > > > The parameters passed into the "Discovery" method are like
    the
    > > > > > > following.
    > > > > > > > >
    > > > > > > > > RequestType : DBSCHEMA_CATALOGS
    > > > > > > > > Restrictions : (none)
    > > > > > > > > Properties : <DataSourceInfo>Local Analysis
    > > > > > > > > Server</DataSourceInfo><Format>Tabular</Format>
    > > > > > > > >
    > > > > > > > > thanks in advance.
    > > > > > > > >
    > > > > > > > >
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >


  • Next message: Akshai Mirchandani [MS]: "Re: SoapException: DataSourceInfo property was missing or not correctly specified."

    Relevant Pages