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 » HTTPInput Node- xmlnsc issue

Post new topic  Reply to topic
 HTTPInput Node- xmlnsc issue « View previous topic :: View next topic » 
Author Message
blueman
PostPosted: Sun Aug 22, 2010 6:19 am    Post subject: HTTPInput Node- xmlnsc issue Reply with quote

Novice

Joined: 23 May 2010
Posts: 15

Hi,

Am doing a poc using httpInputNode-->compute-->HttpReplynode. I am usinf XMLNSC domain.

I can see the webservice request coming through. but iam not ale to set the input value to local envirionment. I have copied the piece of code for reference


Code:
DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE ns253 NAMESPACE 'http://xxx.com/getuserid';

......
....

SET Environment.Variables.WMB.uid1 = InputRoot.XMLNSC.soapenv:Body.ns253:GetAlluserRq.UserId;
...
..
My input message is    

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:get="http://xxx.com/getuserid">
   <soapenv:Header/>
   <soapenv:Body>
      </get:GetuidRq>
         <UserId>test</UserId>
      </get:GetAlluserRq>
   </soapenv:Body>
</soapenv:Envelope>


Thanks


Last edited by blueman on Sun Aug 22, 2010 9:33 am; edited 1 time in total
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Aug 22, 2010 6:26 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you checked your input message? It is invalid xml.

There is no closing tag for <get:GetuidRq>
There is no opening tag for </get:GetAlluserRq>

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
blueman
PostPosted: Sun Aug 22, 2010 9:31 am    Post subject: Reply with quote

Novice

Joined: 23 May 2010
Posts: 15

Thats a mistke while i copied it over. the request is coming thru successfully.Only thing is that am not able to set it to local variable.

is this right?
SET Environment.Variables.WMB.uid1 = InputRoot.XMLNSC.soapenv:Body.ns253:GetAlluserRq.UserId;

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Aug 22, 2010 9:47 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

We can't tell without seeing a good solid presentation of your input message.

Your best bet to solve this problem is to run your flow and take a User Trace at debug level. This will show you a step-by-step view of how the XMLNSC parser produces the message tree and how your ESQL SET statement is evaluated.

You can then adjust the ESQL to match the message tree.
Back to top
View user's profile Send private message
blueman
PostPosted: Sun Aug 22, 2010 1:47 pm    Post subject: Reply with quote

Novice

Joined: 23 May 2010
Posts: 15

sorry abot that.. here is the valid input message.. I will run the trace and post shortly.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:get="http://xxx.com/getuserid">
<soapenv:Header/>
<soapenv:Body>
<get:GetuidRq>
<UserId>test</UserId>
</get:GetuidRq> >
</soapenv:Body>
</soapenv:Envelope>

thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Aug 22, 2010 6:53 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

blueman wrote:

is this right?
Code:
SET Environment.Variables.WMB.uid1 = InputRoot.XMLNSC.soapenv:Body.ns253:GetAlluserRq.UserId;


Thanks


From what you sent us it should more look like:
Code:
SET Environment.Variables.WMB.uid1 = InputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.get:GetuidRq.UserId;


Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
blueman
PostPosted: Tue Aug 24, 2010 3:58 am    Post subject: Reply with quote

Novice

Joined: 23 May 2010
Posts: 15

thanks everybody.

the issue is solved. the namespace was wrong. corrected and it worked.

thanks
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 » HTTPInput Node- xmlnsc issue
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.