SecurityProcessHandler objProcessHandler = new SecurityProcessHandler(); string objReturn = objProcessHandler.getUserDataForLogin(objInput);
<soapenv:Header> <wss:Security xmlns:wss="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wss:UsernameToken> <wss:Username>SRVNEST</wss:Username> </wss:UsernameToken> </wss:Security> <ent:EnterpriseContext xmlns:ent="http://contracts.it.nednet.co.za/Infrastructure/2008/09/EnterpriseContext"> <ent:ContextInfo> <ent:ExecutionContextId>568e7eee-8b24-4865-9071-bad8506e3e61</ent:ExecutionContextId> </ent:ContextInfo> <ent:RequestOriginator> <ent:MachineIPAddress>10.58.42.55</ent:MachineIPAddress> <ent:UserPrincipleName>SRVNEST</ent:UserPrincipleName> <ent:MachineDNSName>nedicad</ent:MachineDNSName> <ent:ChannelId>0</ent:ChannelId> </ent:RequestOriginator> <ent:InstrumentationInfo> <ent:ParentInstrumentationIdElem>f44c492d-e57f-4f39-b549-74f23b61dfe7</ent:ParentInstrumentationIdElem> </ent:InstrumentationInfo> </ent:EnterpriseContext> </soapenv:Header>
// Create the WS-Security token for the SOAP header UsernameToken userToken = new UsernameToken(uid, pswd, PasswordOption.SendPlainText); service.RequestSoapContext.Security.Tokens.Add(userToken);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)