Re: SOAP header error

Tech-Archive recommends: Fix windows errors by optimizing your registry

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

  • Next message: Joe Genshlea: "Setting UNAME and/or MEMBER_UNIQUE_NAME to the Member Key Column"
    Date: Tue, 22 Jun 2004 07:32:55 +0800
    
    

    hi akshai,

    is there anyway of turning off using sessions ? since i'm really not
    interested in using it.

    Session session = null;
    return (this.Discover( new Discover( RequestType, Restrictions, Properties)
    ,ref session, null , null )).@return;

    did the above but i still get the same error, which means i need to
    intialize the session objects. the SessionValue
    variable... am i right about this ?

    thanks,

    "Akshai Mirchandani [MS]" <akshaim@online.microsoft.com> wrote in message
    news:40d72986$1@news.microsoft.com...
    > 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: Joe Genshlea: "Setting UNAME and/or MEMBER_UNIQUE_NAME to the Member Key Column"

    Relevant Pages

    • Re: How to effectively use BeginRange / EndRange .. for records paging?
      ... You probably shouldn't even need a session cache for this... ... Please do not send email directly to this alias. ... > To pre-fetch the dimension members ... > set, like the above query, to benefit from the pre-fetched ...
      (microsoft.public.data.xmlanalysis)
    • RE: "called name not present", net use redirection?
      ... Why do you want to ALIAS the NetBIOS name? ... > present" from the server. ... > Negative session response, Called name not present ... > the connection and session setup attempt from the Win98 box. ...
      (microsoft.public.win2000.general)
    • Re: file is in use and used(tablename)
      ... Are you sure that the table is not open in another session or with another ... Or is the table involved in a Transaction which is not terminated? ...
      (microsoft.public.fox.programmer.exchange)
    • DHCP Online Chat Session: January 20, 2005 (10:00 - 11:00 A.M. Pacific Time)
      ... Configuring and Deploying DHCP with Windows Server 2003, ... You can have direct Q&A session with Microsoft DHCP Technology Experts. ... Please do not send e-mail directly to this alias. ...
      (microsoft.public.windows.server.networking)
    • Re: SOAP header error
      ... This posting is provided "AS IS" with no warranties, ... Please do not send email directly to this alias. ... > hi akshai, ... > Session session = null; ...
      (microsoft.public.data.xmlanalysis)