ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to set wsse secuity header in SOAPRequest node

Post new topic  Reply to topic
 How to set wsse secuity header in SOAPRequest node « View previous topic :: View next topic » 
Author Message
shilpa.sabade
PostPosted: Wed Jul 04, 2012 2:37 am    Post subject: How to set wsse secuity header in SOAPRequest node Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 04, 2012 6:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shilpa.sabade
PostPosted: Wed Jul 04, 2012 11:04 pm    Post subject: Reply with quote

Voyager

Joined: 23 Feb 2011
Posts: 76

Yes , all name spaces are declared in ESQL.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Jul 05, 2012 5:19 am    Post subject: Re: How to set wsse secuity header in SOAPRequest node Reply with quote

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
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Thu Jul 05, 2012 10:18 am    Post subject: Re: How to set wsse secuity header in SOAPRequest node Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to set wsse secuity header in SOAPRequest node
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.