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 » creating new namespace in output msg

Post new topic  Reply to topic
 creating new namespace in output msg « View previous topic :: View next topic » 
Author Message
Diwakar
PostPosted: Thu May 12, 2005 5:12 pm    Post subject: creating new namespace in output msg Reply with quote

Apprentice

Joined: 06 Apr 2005
Posts: 33

Hi,
WBIMB V5 CSD 4 on Windows XP.
I am trying to create a new namespace prefix "nms" in my output message but WBIMB is creating it as "NS1".

I have XMLNS as the Domain on my MQInput node. I just have 1 compute node.

Here is my input msg :
---------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope encodingStyle="http://schemas.xmlsoap.org/soap/encoding" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header>
hdrhdrhdrasdadsaidhdrhdrhdr
</soapenv:Header>
<soapenv:Body>
body of the msg
</soapenv:Body>
</soapenv:Envelope>
----------------------------------------------------------------------

Here is my esql code:
-----------------------------------------------------
Declare soapenv namespace 'http://www.w3.org/2003/05/soap-envelope';
Declare nms namespace 'http://www.ns02.com';

CALL CopyEntireMessage();
SET OutputRoot.XMLNS.soapenv:Envelope.nms:parent1.nms:child1 = 'testing namespaces';
------------------------------------------------------
and here is the output msg I am getting:
------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope encodingStyle="http://schemas.xmlsoap.org/soap/encoding" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header> hdrhdrhdrasdadsaidhdrhdrhdr </soapenv:Header>
<soapenv:Body> body of the msg </soapenv:Body>
<NS1:parent1 xmlns:NS1="http://www.ns02.com">
<NS1:child1>testing namespaces</NS1:child1>
</NS1:parent1>
</soapenv:Envelope>
----------------------------------------------------
I don't want the NS1 prefix....I need it to be "nms".

I tried using this also:

SET OutputRoot.XMLNS."soapenv:Envelope".(XML.NamespaceDecl)"xmlns:nms" = 'http://www.ns02.com';

..... but it didn't work.

Pls help ! Thanks.
Back to top
View user's profile Send private message
Diwakar
PostPosted: Fri May 13, 2005 7:54 am    Post subject: Need help on namespaces...can someone resolve my problem ? Reply with quote

Apprentice

Joined: 06 Apr 2005
Posts: 33

Can somebody pls take a look at my problem with namespaces described above ?

thanks in advance.
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri May 13, 2005 8:30 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Try using the Search button. Put "ns1" as the argument and read what you get returned.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Diwakar
PostPosted: Fri May 13, 2005 10:31 am    Post subject: Reply with quote

Apprentice

Joined: 06 Apr 2005
Posts: 33

Search button ? It isn't clear to me...can you elaborate a bit ? thanks for the response.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri May 13, 2005 11:10 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Diwakar wrote:
Search button ? It isn't clear to me...can you elaborate a bit ? thanks for the response.


At the top of the page, on the right, between "FAQ" and "Memberlist".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Diwakar
PostPosted: Fri May 13, 2005 11:38 am    Post subject: Reply with quote

Apprentice

Joined: 06 Apr 2005
Posts: 33

Hi, It didn't return anything when I searched for 'ns1'. Can you explain what exactly you want me to do.

Thanks.
_________________
Diwakar.
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri May 13, 2005 12:10 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Click on the Search button at the top of the page. Type "ns1" (without the quotes) in the Search for Keywords box. Click the oblong Search button at the bottom. Bingo, 15 matches.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Diwakar
PostPosted: Fri May 13, 2005 1:53 pm    Post subject: Reply with quote

Apprentice

Joined: 06 Apr 2005
Posts: 33

I did the same...but found no results. Even if it did like in your case, how would it solve my problem ? Can you explain ?

I think it would only search for all the occurences of ns1 in my workspace. I wonder how it would solve my problem.


Thanks.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri May 13, 2005 6:33 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Not in your workspace.

ON THIS PAGE!!!

It will search THIS SITE.

Which will tell you all the other places that other people have asked this same type of question, and been answered.
jefflowrey wrote:
At the top of the page, on the right, between "FAQ" and "Memberlist"


Welcome to the Internet.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri May 13, 2005 11:19 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Duhhhhh.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Diwakar
PostPosted: Mon May 16, 2005 8:15 am    Post subject: Reply with quote

Apprentice

Joined: 06 Apr 2005
Posts: 33

Thanks for your responses.....I already saw the postings before I posted my query. Do I need to use MRM to solve my problem ? Or is it possible without MRM ? If so, can someone tell me how. My i/p msg, esql, and o/p msg are given above.

Thanks for your time.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon May 16, 2005 8:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=16334&highlight=ns1
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Diwakar
PostPosted: Mon May 16, 2005 1:40 pm    Post subject: Reply with quote

Apprentice

Joined: 06 Apr 2005
Posts: 33

Jeff,

I saw the posting already and again after you posted the link here. But it doesn't address the problem I am facing.

Does somebody have a solution to my probem ?

Many thanks again.

-
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon May 16, 2005 3:54 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Diwakar wrote:
Jeff,
I saw the posting already and again after you posted the link here. But it doesn't address the problem I am facing.


It certainly does address your problem.

You are using CopyEntireMessage, and I think that's not what you need to do to solve your problem.
_________________
I am *not* the model of the modern major general.
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 » creating new namespace in output msg
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.