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 » Header parsing issues in SOAP Based Message Set

Post new topic  Reply to topic
 Header parsing issues in SOAP Based Message Set « View previous topic :: View next topic » 
Author Message
Z
PostPosted: Mon Jan 29, 2007 1:12 am    Post subject: Header parsing issues in SOAP Based Message Set Reply with quote

Newbie

Joined: 29 Jan 2007
Posts: 2

Hi,

I have created a Message Set based on a WSDL. The Message Type is off course Envelope at the MQ Input Node. At the beginning of the processing I want to retrieve everything in the SOAP Header into MQRFH2/usr but the MRM XML Parser only parses the Header message 1 level as I can only see MyHeader1 and MyHeader2 but nothing under these elements. E.g.

The message looks something like:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<NS1:MyHeader1 xmlns:NS1="http://www.mydomain1.com/Schema/SOAP">
<NS1:H1Element1>http://tempuri.org</NS1:H1Element1>
<NS1:H1Element2>token</NS1:H1Element2>
<NS1:H1Element3>http://tempuri.org</NS1:H1Element3>
<NS1:H1Element4>token</NS1:H1Element4>
</NS1:MyHeader1>
<NS1:MyHeader2 xmlns:NS1="http://www.mydoamin2.com/Schema/SOAP">
<NS1:H2Element1>token</NS1:H2Element1>
<NS1:H2Element2>token</NS1:H2Element2>
<NS1:H2Element3>token</NS1:H2Element3>
<NS1:H2Element4>
<El234>XXX</El234>
</NS1:H2Element4>
</NS1:MyHeader2>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
Bla bla
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The following works fine :
SET OutputRoot.MQRFH2.usr.Header.MyHeader1.H1Element1 = InputRoot.MRM.SOAP-ENV:Header.NS1:MyHeader1.NS1:H1Element1;

However if I try to do the following I end up with a NULL.
SET OutputRoot.MQRFH2.usr.Header.MyHeader1 = InputRoot.MRM.SOAP-ENV:Header.NS1:MyHeader1;

It seems the MRM XML Parser doesn’t parse the entire tree in the SOAP Header. However it does parse everything in the SOAP Body. Is there a way to force the parser to parse everything in the SOAP Header? Please don’t just tell me to use the XMLNS domain instead.

Help much appreciated
Z
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jan 29, 2007 2:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

MQRFH2 is not XML. MQRFH2 doesn't support more than one level, as I recall.

You can ASBITSTREAM the Soap Header and store it there.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Z
PostPosted: Mon Jan 29, 2007 2:42 am    Post subject: Reply with quote

Newbie

Joined: 29 Jan 2007
Posts: 2

I believe you'll find that MQRFH2.usr does support more than 1 level of dept. It is only in conjuction with JMS properties (JMS based applications) that 1 level of dept is supported.

I don't think the problem relates the MQRFH2 usr. If I was trying to parse the header into XML based body (which I have tried) the issue still remains the same. I am afraid the ASBITSREAM is not a viable option.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 29, 2007 2:52 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Z wrote:
I believe you'll find that MQRFH2.usr does support more than 1 level of dept. It is only in conjuction with JMS properties (JMS based applications) that 1 level of dept is supported.


Really? Where's that documented?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jan 29, 2007 3:11 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzak.doc/js07180.htm

Okay, I recall incorrectly.

But you still can't directly copy the XML in there, because it's got namespaces in it and RFH2 doesn't support : in folder,group/etc. names!

You can do a recursive copy using FIELDNAME to get only the tag name and not the namespace.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Jan 29, 2007 3:29 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

There's always something new to learn; I am enriched!

(And my sig stays relevant!!)
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Header parsing issues in SOAP Based Message Set
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.