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 » Extracting values from SOAP Header

Post new topic  Reply to topic
 Extracting values from SOAP Header « View previous topic :: View next topic » 
Author Message
hzh007
PostPosted: Fri Apr 10, 2009 1:39 am    Post subject: Extracting values from SOAP Header Reply with quote

Newbie

Joined: 10 Apr 2009
Posts: 1

hi :)
I am running the following configuration on Windows(XP) :
Message Broker Toolkit: 6.1
Message Broker: MQSI 6.1
I have an soap Input Node, configured to use the XMLNSC Parser that accepts the following message:


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://www.cntrend.com"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-
1.0.xsd" wsu:Id="unt_907818524">user01</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-
1.0#PasswordText">testpw</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<tns:request>
<num1>5</num1>
<num2>5</num2>
</tns:request>
</soapenv:Body>
</soapenv:Envelope>

In my Compute Node, I want to extract the values from the incoming header, i.e. 'Username' and 'Password'
I get 'Nothing' returned from the following Procedure:


DECLARE ns NAMESPACE 'http://www.cntrend.com';
DECLARE wsse NAMESPACE 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';

CREATE COMPUTE MODULE provider_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
--CALL CopyMessageHeaders();
--CALL CopyEntireMessage();
SET OutputRoot.XMLNSC.ns:response.Username=InputRoot.XMLNSC.soapenv:Envelope.soapenv:Header.wsse:Security.wsse:UsernameToken.wsse:Username;
RETURN TRUE;
END;

So how do I get to the values of my tags?
Can anyone please help me with this ? :help:
Thanks in advance
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Apr 10, 2009 2:42 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Look in Properties.

Read about WSSE Security and SOAP nodes in the InfoCenter.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Extracting values from SOAP Header
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.