J
Jerry
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
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