Eric
7/31/2003 3:04:00 AM
Jerry,
You need to register the soap extension. You can do this by:
1. Right clicking on your project
2. Select WSE 2.0 Settings
3. Check the "Enable Microsoft Web Services Enhancement Extensions"
checkbox
HTH,
--
Kevin Cunningham
Software Architects, Inc.
"Jerry" <igeta@yahoo.com> wrote in message
news:803e4947.0307301813.785723af@posting.google.com...
> Hi All,
>
> I am trying to pass an item from my client to a web service using WSE
> 2.0. The web service somehow cannot get the SoapContext from the
> message.
>
> On the client, I have the following:
> localhost.Service1 service = new localhost.Service1 ();
> SoapContext sc = service.RequestSoapContext;
> sc["some_item"] = 1;
> service.HelloWorld ();
>
> // localhost is my proxy.
>
> On the web service:
> SoapContext sc = RequestSoapContext.Current;
> // do something with sc["some_item"]
> return "Hello World";
>
> The SoapContext is always null. I couldn't find the right
> documentation (tutorial) that would tell me what to do. Could someone
> help? Thanks in advance for your help.
>
> Thanks,
> Jerry