web services enhancment1 1.0
כשאני מבקש בשרת
SoapContext requestContext = HttpSoapContext.RequestContext;
אני מקבל NULL חזרה יש למישהו מושג למה ? הקוד של הלקוח :
//////// create service proxy and obtain context MyService proxy = new MyService(); //////// obtain a reference to context SoapContext context = proxy.RequestSoapContext; //////// create a UsernameToken UsernameToken token = new UsernameToken("John", "ESS", PasswordOption.SendHashed); //////// add token to <wsse:Security> header and sign the outbound SOAP message body context.Security.Tokens.Add(token); context.Security.Elements.Add(new Signature(token)); //////// invoke the service proxy.DoSomething();