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 access namespace data on the input message

Post new topic  Reply to topic
 how to access namespace data on the input message « View previous topic :: View next topic » 
Author Message
kwelch
PostPosted: Fri Feb 11, 2005 9:07 am    Post subject: how to access namespace data on the input message Reply with quote

Master

Joined: 16 May 2001
Posts: 255

HI,

I am receiving a message with namespaces and I can't seem to get the data from the input to the output. The output is not using namespaces. Here is a sample of the data I am receiving.

- <soap:Envelope xmlns:soap="http://www.w3.org/2001/06/soap-envelope">
- <soap:Header>
- <htfd:Command xmlns:htfd="http://www.thehartford.com/SOAP/xml">
<htfd:ServiceName>Client</htfd:ServiceName>
<htfd:CommandName>CreateOrUpdate</htfd:CommandName>
</htfd:Command>
</soap:Header>
- <soap:Body>
- <acord:ACORD xmlns:acord="http://www.ACORD.org/standards/PC_Surety/ACORD1.6.0/xml/" xmlns:htfd="http://www.thehartford.com/ACORD/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <acord:SignonRq xmlns:acord="http://www.ACORD.org/standards/PC_Surety/ACORD1.6.0/xml/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <acord:SignonPswd>
- <acord:CustId>
<acord:SPName />
<acord:CustPermId />
<acord:CustLoginId>12345678</acord:CustLoginId>
</acord:CustId>
- <acord:CustPswd>
<acord:EncryptionTypeCd />
<acord:Pswd />
</acord:CustPswd>
</acord:SignonPswd>
<acord:ClientDt>01/01/2005</acord:ClientDt>
<acord:CustLangPref>English</acord:CustLangPref>
- <acord:ClientApp>
<acord:Org>Test</acord:Org>
<acord:Name>Test</acord:Name>
<acord:Version>1.0</acord:Version>
</acord:ClientApp>
</acord:SignonRq>
</acord:ACORD>
</soap:Body>
</soap:Envelope>

I declared the acord namespace as follows:
DECLARE acord NAMESPACE 'http://www.ACORD.org/standards/PC_Surety/ACORD1.6.0/xml/';
DECLARE soap NAMESPACE 'http://www.w3.org/2001/06/soap-envelope';

My Set statement to move the CustLoginId is as follows:

SET OutputRoot.XML.ACORD.SignonRq.SignonPswd.CustId.CustLoginId = InputBody.soap:Body.acord:ACORD.SignonRq.SignonPswd.CustId.CustLoginId;

I get nothing on the output. Can anyone tell me what I am doing wrong? Also, can someone point me to some good documentation on this stuff? Everything I find seems to be creating namespaces on the output message and very little discusses how to get it from the input message.
Thanks!

Karen
Back to top
View user's profile Send private message Send e-mail
wolstek
PostPosted: Fri Feb 11, 2005 9:41 am    Post subject: Reply with quote

Acolyte

Joined: 25 Jun 2001
Posts: 52
Location: Bristol, UK

It depends what domain you are in. If MRM then you code looks reasonable. If XML or XMLNS you will need to reference the soap:Envelope tag
e.g.
Code:

SET OutputRoot.XML.ACORD.SignonRq.SignonPswd.CustId.CustLoginId = InputBody.[b]soap.Envelope.[/b]soap:Body.acord:ACORD.SignonRq.SignonPswd.CustId.CustLoginId;
Back to top
View user's profile Send private message
kwelch
PostPosted: Fri Feb 11, 2005 10:08 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

wolstek,

I am not using MRM domain. I don't understand your answer below. Do you mean code:

SET OutputRoot.XML.ACORD.SignonRq.SignonPswd.CustId.CustLoginId = InputBody.soap:Envelope.soap:Body.acord:ACORD.SignonRq.SignonPswd.CustId.CustLoginId;

I tried this with no luck. Thanks.

Karen
Back to top
View user's profile Send private message Send e-mail
kwelch
PostPosted: Fri Feb 11, 2005 1:09 pm    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

This worked!

SET OutputRoot.XML.ACORD.SignonRq.SignonPswd.CustId.CustLoginId = InputBody.soap:Envelope.soap:Body.acord:ACORD.acord:SignonRq.acord:SignonPswd.acord:CustId.acord:CustLoginId;
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 access namespace data on the input message
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.