Able to get good response through SoapUI using the same credentials.
The following is the ESQL code I tried apart from the code from above link:
Code:
DECLARE bsvc NAMESPACE 'urn:com.sffd/abcd';-- Iam using the correct namespace here while testing
DECLARE wsse NAMESPACE 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
Set OutputRoot.SOAP.soapenv:Envelope.soapenv:Header.wsse:Security.wsse:UsernameToken.wsse:Username = 'xxxxx'; -- Iam using the correct username here
Set OutputRoot.SOAP.soapenv:Envelope.soapenv:Header.wsse:Security.wsse:UsernameToken.wsse:Password = 'xxxxx'; --Iam using the correct password here while testing.
SET OutputRoot.SOAP.Body.abcd:Get_abcd_Request = '';
The username has '@' and the password has '!' characters. Not sure if that would cause any issues while passing the same using the security header.
The following is the successful request msg using SoapUI :
Set OutputRoot.SOAP.Header.wsse:Security.wsse:UsernameToken.wsse:Username = 'xxxxx';
Set OutputRoot.SOAP.Header.wsse:Security.wsse:UsernameToken.wsse:Password = 'xxxxx';
SET OutputRoot.SOAP.Body.abcd:Get_dfdf_Request.(XMLNSC.NamespaceDecl)xmlns:"ns" = 'urn:com.dfdf/abcd';
SET OutputRoot.SOAP.Body.bsvc:Get_dfdf_Request = '';
I plan on using UDP to provide username and password.
Please do let me know if there is efficient way of doing this, instead of coding the credentials in esql.
PolicySet or Security Profiles ?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum