Re: SOAP header error

From: Akshai Mirchandani [MS] (akshaim_at_online.microsoft.com)
Date: 06/21/04

  • Next message: Akshai Mirchandani [MS]: "Re: AdomdSampleApp GetSchemaDataSet problem"
    Date: Mon, 21 Jun 2004 11:31:43 -0700
    
    

    I think that the problem is that you are passing non-NULL BeginSession and
    EndSession objects to the function and they haven't been initialized
    properly. If I recall correctly, you should never pass those objects as
    parameters.

    There is a comment in the code of SoapClient.vb for how to use sessions.
    Please take a look at it for more information -- it has sample code
    commented out for how to begin, end and reference a session.

    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:eTv8jt3VEHA.1952@TK2MSFTNGP12.phx.gbl...
    > hi akshai,
    >
    > that's exactly what i'm doing....
    >
    > -------------------------------------------------
    >    Session session = null;
    >    BeginSession begin = new BeginSession();
    >    EndSession end = new EndSession();
    >
    >    return (this.Discover( new Discover( RequestType, Restrictions,
    > Properties) ,ref session, begin , end )).@return;
    > -------------------------------------------------
    >
    > the only difference is that the above code lies in a method that i've
    added
    > to the MsXmlanalysis proxy .
    >
    > thanks,
    >
    >
    > "Akshai Mirchandani [MS]" <akshaim@online.microsoft.com> wrote in message
    > news:40d39a7e$1@news.microsoft.com...
    > > I assume you are using the WSDL to build a .NET application -- have you
    > seen
    > > the code in the Sample.NET application in SoapClient.vb? You will see
    that
    > > it declares a variable of type MsXmlAnalysis.Session and passes it to
    the
    > > Discover/Execute functions.
    > >
    > > 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:%23skemsZVEHA.1652@TK2MSFTNGP09.phx.gbl...
    > > > hi all,
    > > >
    > > > i keep getting the following error when calling the Discovery
    method....
    > > >
    > > > "Required field/property MsAnalysis.BeginSessionValue of SOAP header
    > > > BeginSession was not set by the client prior to making the call.
    > > >
    > > > does anybody know what may be causing this problem ?
    > > >
    > > > thanks,
    > > >
    > > >
    > >
    > >
    >
    >
    

  • Next message: Akshai Mirchandani [MS]: "Re: AdomdSampleApp GetSchemaDataSet problem"