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 save web service response in Environment

Post new topic  Reply to topic
 How to save web service response in Environment « View previous topic :: View next topic » 
Author Message
sudhanshus
PostPosted: Thu Jun 12, 2014 11:07 pm    Post subject: How to save web service response in Environment Reply with quote

Novice

Joined: 28 Oct 2013
Posts: 19

Hi,

I want to save the web service response in the environment variable for further processing in a java compute node.

Is there any way to do so?
Back to top
View user's profile Send private message
Esa
PostPosted: Fri Jun 13, 2014 1:05 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

You can do it with ESQL SET statement, for example.
Back to top
View user's profile Send private message
sudhanshus
PostPosted: Fri Jun 13, 2014 1:14 am    Post subject: Reply with quote

Novice

Joined: 28 Oct 2013
Posts: 19

Thanks.

I want to do it through java compute node. is there an easy and elegant way of doing it?
Back to top
View user's profile Send private message
Esa
PostPosted: Fri Jun 13, 2014 1:19 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Code:
MbElement.copyElementTree();
Back to top
View user's profile Send private message
sudhanshus
PostPosted: Fri Jun 13, 2014 5:11 am    Post subject: Reply with quote

Novice

Joined: 28 Oct 2013
Posts: 19

I checked the api of MbElement.createElementAsLastChild and it says that value must be of the following data types:-

MbDate
MbTime
MbTimestamp
Boolean
byte[]
String
Integer
Double
BitSet


I want to insert value of type MbElement in the environment. Seems there's no way I could directly add response to Environment.
Back to top
View user's profile Send private message
Esa
PostPosted: Fri Jun 13, 2014 5:30 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

If you use TYPE_NAME, then the value can or must be null. That's the way to create a new folder.

You should create an XMLNSC parser under Environment before you copyElementTree(). Otherwise the namespaces will be stripped.
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 » How to save web service response in Environment
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.