There's an example in TcpSyncStockService (you need to use context on
envelope):
// Example:
// SoapEnvelope e = new SoapEnvelope();
// e.SetBodyObject(message);
// KerberosToken k = new KerberosToken("host/" +
System.Net.Dns.GetHostName() );
// e.Context.Security.Tokens.Add(k);
// e.Context.Security.Elements.Add(new Signature(k));
// return (StockQuotes)base.SendRequestResponse("GetStockQuotes",
e).GetBodyObject(typeof(StockQuotes));
> Hello all,
> I'm building a TCP web service using SoapClient/SoapService as my base
[quoted text clipped - 5 lines]
>
> Thanks!
WSE_Developer - 06 Aug 2004 19:13 GMT
That's great and works as expected. I'm able to get the context from the
soap envelope and stuff in my keys. The only issue i'm having now is that
then the call comes back from the service, i want to verify a custom security
token (this is still in my derived SoapClient class). Does the context in
the SoapEnvelope work the same for ResponseSoapContext? I tried using
ResponseSoapContext.Current here, but didn't work. In short, I just want to
ensure that SoapEnvelope.context can be used for both the request and
response context.
Thanks again.
> There's an example in TcpSyncStockService (you need to use context on
> envelope):
[quoted text clipped - 26 lines]
> >
> > Thanks!
Lucien - 09 Aug 2004 21:57 GMT
Yes it works the same may. Access the context of the returned SoapEnvelope.
> That's great and works as expected. I'm able to get the context from the
> soap envelope and stuff in my keys. The only issue i'm having now is that
[quoted text clipped - 37 lines]
> > >
> > > Thanks!