Re: SOAP header error
From: Maersa (ma_ersa_at_hotmail.com)
Date: 06/21/04
- Previous message: Akshai Mirchandani [MS]: "Re: AdomdSampleApp GetSchemaDataSet problem"
- In reply to: Akshai Mirchandani [MS]: "Re: SOAP header error"
- Next in thread: Akshai Mirchandani [MS]: "Re: SOAP header error"
- Reply: Akshai Mirchandani [MS]: "Re: SOAP header error"
- Messages sorted by: [ date ] [ thread ]
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,
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Previous message: Akshai Mirchandani [MS]: "Re: AdomdSampleApp GetSchemaDataSet problem"
- In reply to: Akshai Mirchandani [MS]: "Re: SOAP header error"
- Next in thread: Akshai Mirchandani [MS]: "Re: SOAP header error"
- Reply: Akshai Mirchandani [MS]: "Re: SOAP header error"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|