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 » XMLNSC Storing into Environment has problem..

Post new topic  Reply to topic
 XMLNSC Storing into Environment has problem.. « View previous topic :: View next topic » 
Author Message
jagan
PostPosted: Thu Jun 28, 2007 1:48 pm    Post subject: XMLNSC Storing into Environment has problem.. Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 55

Hi,

My problem is explained as above..

1. Storing the InputRoot.XMLNSC into Environment.Value.
2. Try to assign this Environment.Value to the OutputRoot the XML output message contains.. the different name space..

<NS1:Envelope xmlns:NS1="http://schemas.xmlsoap.org/soap/envelope/">
<NS1:Body>
<NS2:OTA_AirFlifoRS xmlns:NS2="http://www.opentravel.org/OTA/2003/05">
<RetransmissionIndicator>false</RetransmissionIndicator>
<Version>1.002</Version>
<xmlns>http://www.opentravel.org/OTA/2003/05</xmlns>
<NS2:FlightInfoDetails>
<FlightNumber>124</FlightNumber>

Not copying the entire XML message.. but if we can see the above messagse the name space is adding like 'NS1' , NS2.. when i copy from the Environment variable.

My requiremnet is not to get the 'NS1' NS2' namespace in the XML.. I need the XML as below

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<OTA_AirFlifoRS xmlns="http://www.opentravel.org/OTA/2003/05" RetransmissionIndicator= false Version= 1.002
<FlightInfoDetails>
<FlightNumber>124</FlightNumber>

.. If I copy directly from
SET OutputRoot = InputRoot iam not getting the the NS1 and NS2..

My code is as below:

SET Environment.Value = InputRoot.XMLNSC;

then using SET OutputRoot.XMLNSC=Environmnet.XMLNSC;

In this forum some one has advising similar kind of issues to create the Environemnt as DOmain(XMLNSC);; But the below statement is not allwoing

CREATE Environment.Value AS DOMAIN('XMLNSC');
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Jun 28, 2007 1:51 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You will need to
Code:
Create LastChild of Environment.Value DOMAIN('XMLNSC');
Set Environment.Value.XMLNSC = InputRoot.XMLNSC;


But the NS1, NS2 etc's that you're complaining about shouldn't be causing any issues.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jagan
PostPosted: Fri Jun 29, 2007 6:02 am    Post subject: Reply with quote

Acolyte

Joined: 26 Jun 2001
Posts: 55

Thanks very jeff.. It is worked..

jefflowrey wrote:
You will need to
Code:
Create LastChild of Environment.Value DOMAIN('XMLNSC');
Set Environment.Value.XMLNSC = InputRoot.XMLNSC;


But the NS1, NS2 etc's that you're complaining about shouldn't be causing any issues.
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 » XMLNSC Storing into Environment has problem..
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.