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 » Access elements inside default namespace

Post new topic  Reply to topic
 Access elements inside default namespace « View previous topic :: View next topic » 
Author Message
Qadeer_824
PostPosted: Tue Jul 29, 2008 9:56 am    Post subject: Access elements inside default namespace Reply with quote

Acolyte

Joined: 04 Oct 2007
Posts: 59

Hi,
I have a WebService which receives a WS Request and extracts some fields out of it to generate a different output.

Though i can receive the WS Request successfully, the esql fails to access elements. The only reason i see is because of the namespace.

Input XML:
Code:

<CreateRequestSOAPIn xmlns="http://test/MQWebService/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Problem_Number>000000000000653</Customer_Problem_Number>
 <Model>Model WS 0012</Model>
 <Extended_Serial_Number>xzzxcxzc</Extended_Serial_Number>
 <Problem_Description>failed</Problem_Description>
</CreateRequestSOAPIn>


My Code:
Code:

DECLARE ns NAMESPACE 'http://test/MQWebService/'
SET tmp_Model = InputRoot.XMLNSC.ns:CreateRequestSOAPIn.Model;
....

But i always get a null in tmp_Model. It looks like the esql is not right to access elements present in default namespace('http://test/MQWebService/') .

Can someone please point me on how to access the element Model?

Note that all elements are in the default namespace.

Thanx,
Qadeer
Back to top
View user's profile Send private message Yahoo Messenger
kimbert
PostPosted: Tue Jul 29, 2008 10:44 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
i always get a null in tmp_Model. It looks like the esql is not right to access elements present in default namespace('http://test/MQWebService/') .
There is a standard answer to this question. Insert a Trace node in your message flow ( or attach the debugger if you prefer ) and compare against the message tree the namespace and name of each element in that ESQL path.
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 » Access elements inside default namespace
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.