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 » want help in PHP

Post new topic  Reply to topic
 want help in PHP « View previous topic :: View next topic » 
Author Message
siva1431202
PostPosted: Thu May 26, 2011 12:19 am    Post subject: want help in PHP Reply with quote

Novice

Joined: 04 May 2011
Posts: 20

$array1[i] = $input_assembly -> XMLNSC -> Employee -> Emp[]->empid->getvalue();

can anyone say the best way to get all the employee id's in an array.


Emp[] doesn't work and i am getting only one value of that message tree
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu May 26, 2011 2:09 am    Post subject: Re: want help in PHP Reply with quote

Grand High Poobah

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

siva1431202 wrote:
$array1[i] = $input_assembly -> XMLNSC -> Employee -> Emp[]->empid->getvalue();

can anyone say the best way to get all the employee id's in an array.


Emp[] doesn't work and i am getting only one value of that message tree

Obviously you are working with something different from ESQL or java compute node. Could it be php?

Look at the samples. Seems to me you are missing something between input_assembly and XMLNSC... but then again I might be mistaken because this is obviously not from a java compute node...

Just as obviously why would you want to use getvalue at the end? You are trying to assign a node value, where you should be conceptually assigning the node.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
siva1431202
PostPosted: Thu May 26, 2011 2:41 am    Post subject: Reply with quote

Novice

Joined: 04 May 2011
Posts: 20

I am assigning empid values to an array. but its not working and i am trying for the same.

i dont kow how to take all the empid's of the message tree to the array.
if i have records like
empid,firstname,lastname

i want take all the empid's of that list into an array.
array[i]=(7566,74577,843787,894898)
i am trying to get this from that message tree.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu May 26, 2011 3:07 am    Post subject: Reply with quote

Grand High Poobah

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

siva1431202 wrote:
I am assigning empid values to an array. but its not working and i am trying for the same.

i dont kow how to take all the empid's of the message tree to the array.
if i have records like
empid,firstname,lastname

i want take all the empid's of that list into an array.
array[i]=(7566,74577,843787,894898)
i am trying to get this from that message tree.


Have you tried walking the message tree from a reference?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
siva1431202
PostPosted: Thu May 26, 2011 10:20 pm    Post subject: Reply with quote

Novice

Joined: 04 May 2011
Posts: 20

yes i tried it also but no luck...
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 27, 2011 3:58 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

siva1431202 wrote:
yes i tried it also but no luck...


Could you be a little clearer?

Do you mean you wrote a loop that iterated over $input_assembly -> XMLNSC -> Employee -> Emp[] and then executed >empid->getvalue() for each one and put that into an array element?

And that didn't work? What did it do instead of working?
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 » want help in PHP
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.