|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to set wsse secuity header in SOAPRequest node |
« View previous topic :: View next topic » |
Author |
Message
|
shilpa.sabade |
Posted: Wed Jul 04, 2012 2:37 am Post subject: How to set wsse secuity header in SOAPRequest node |
|
|
Voyager
Joined: 23 Feb 2011 Posts: 76
|
Hi All,
Am new to SOAP nodes , need your help here .
Scenario :
Using Soap request node ,we are trying to consume a webservice .
Sample xml looks as below ( just posting portion of message )
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:abc.common.econtent.manage.webservice">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-2" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>xxxxxxxx</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">yyyyyyyyy</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<urn:systemContext>
<systemId>ADV</systemId>
<correlationId>092A20A5-6365-5E49-ACBE-286E769F86B3</correlationId>
</urn:systemContext>
</soapenv:Header>
i have a compute node, before SOAPRequest node , where i have esql code to set all these codes ,
SET HEADER_REF.wsse:Security.(SOAP.NamespaceDecl)xmlns:wsse = wsse;
SET HEADER_REF.wsse:Security.wsse:UsernameToken.(SOAP.Attribute)wsu:Id='UsernameToken-2';
SET HEADER_REF.wsse:Security.wsse:UsernameToken.(SOAP.NamespaceDecl)xmlns:wsu = wsu;
SET HEADER_REF.wsse:Security.wsse:UsernameToken.wsse:Username='ced-jboss-server-auth';
SET HEADER_REF.wsse:Security.wsse:UsernameToken.wsse:Password.(SOAP.Attribute)Type='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText';
SET HEADER_REF.wsse:Security.wsse:UsernameToken.wsse:Password='c3dJB0ss$';
SET HEADER_REF.urn:systemContext.systemId='ADV';
SET HEADER_REF.urn:systemContext.correlationId=UUIDASCHAR;
but this doesnot seem to work .
Is there a other way to deal with wsse fields? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jul 04, 2012 6:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
you are using wsse, wsu, urn (bad choice, use another prefix for urn) as namespaces. Did you also declare them as such in ESQL before using them?
Code: |
declare wsse NAMESPACE 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'; |
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
shilpa.sabade |
Posted: Wed Jul 04, 2012 11:04 pm Post subject: |
|
|
Voyager
Joined: 23 Feb 2011 Posts: 76
|
Yes , all name spaces are declared in ESQL. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Jul 05, 2012 5:19 am Post subject: Re: How to set wsse secuity header in SOAPRequest node |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
shilpa.sabade wrote: |
SET HEADER_REF.wsse:Security.(SOAP.NamespaceDecl)xmlns:wsse = wsse;
Is there a other way to deal with wsse fields? |
Yes. (Next time please use [c o d e ] tags ), like this....
Code: |
Set OutputRoot.SOAP.Header.wsse:Security.wsse:UsernameToken.wsse:Password |
_________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jul 05, 2012 10:18 am Post subject: Re: How to set wsse secuity header in SOAPRequest node |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
shilpa.sabade wrote: |
SET HEADER_REF.wsse:Security.(SOAP.NamespaceDecl)xmlns:wsse = wsse;
Is there a other way to deal with wsse fields? |
I'm not so sure this is right.
On the left you have a namespace declaration in the SOAP domain, on the right you'd expect a string type but you have a namespace type...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|