Re: SOAP header error

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


Date: Sat, 26 Jun 2004 17:43:52 +0800

I'm using C#.

"Akshai Mirchandani [MS]" <akshaim@online.microsoft.com> wrote in message
news:40d87f7d$1@news.microsoft.com...
> Yes, the default code in the Sample.NET is without sessions. What language
> are you using for this code?
>
> 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:%23EVDWg%23VEHA.4092@TK2MSFTNGP11.phx.gbl...
> > 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,
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: confused about normal.dot
    ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... I'm pretty new to Word Automation from VB. ... > two sessions of word, and in each open one document, then close one ...
    (microsoft.public.word.docmanagement)
  • RE: Security Issue ?
    ... name plus $ and others are User name in User column when you click Sessions ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... | Thread-Topic: Security Issue? ...
    (microsoft.public.windows.server.sbs)
  • [TCPIP V5.4] Session Disconnects (and DISCONNECT)
    ... I seem to have problems with the use of alias addresses (which ... When I delete the alias addressthe sessions ... Is there a chance that UCX at some time will do this right? ... keepalive for DECnet over IP) ...
    (comp.os.vms)
  • RE: Anyone know the SBS Terminal Services session defaults?
    ... Thank you for posting to the SBS Newsgroup. ... you can configure the settings in Terminal Services ... On the right pane, right click RDP-Tcp, go to Properties, Sessions tab. ...
    (microsoft.public.windows.server.sbs)
  • RE: How to detect Outlook (RPC over HTTP / OWA) sessions ?
    ... Thank you for posting in the SBS newsgroup. ... the current Outlook sessions, ... In Exchange System Manager, expand Administrative Groups, expand ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)