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 create <SearchType itemnum="1">MSISDN

Post new topic  Reply to topic
 How to create <SearchType itemnum="1">MSISDN « View previous topic :: View next topic » 
Author Message
MSAT
PostPosted: Tue Jul 25, 2006 9:43 pm    Post subject: How to create <SearchType itemnum="1">MSISDN Reply with quote

Acolyte

Joined: 17 Aug 2005
Posts: 62
Location: Bengalooru

Hi,
I am trying to create <SearchType itemnum="1">MSISDN</SearchType> as one of the tag in my request message.
How to do this in ESQL coding ? I tried to use XML.Attribute after creation of the tag. But it is not working.

Thank You
MSAT
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
elvis_gn
PostPosted: Tue Jul 25, 2006 10:05 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi MSAT,

Please post the code.

Regards.
Back to top
View user's profile Send private message Send e-mail
MSAT
PostPosted: Tue Jul 25, 2006 11:30 pm    Post subject: Reply with quote

Acolyte

Joined: 17 Aug 2005
Posts: 62
Location: Bengalooru

Hi Elvis,
By following the below code we can create a tag like
<SearchType itemnum="1">MSISDN</SearchType>

SET OutputRoot.XML.SearchType = 'MSISDN';
SET OutputRoot.XML.SearchType.(XML.Attribute):itemnum = '"1"';

I was trying below code which was not succeded

SET Environment.Variables.SearchType = 'MSISDN';
SET Environment.Variables.SearchType.(XML.Attribute):itemnum = '"1"';

SET OutputRoot.XML.Message = Environment.Variables;

I am not sure it works with Environment tree or not.

Now I have another issue

I am getting an HTTP response as a string data like

<Status>0000</Status> along with some other tags

I need to get the value of Status only from this entire string.
How to do this ?

Any way thanks
MSAT
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
elvis_gn
PostPosted: Tue Jul 25, 2006 11:46 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi MSAT,

Try
Code:
SET OutputRoot.XML.SearchType.(XML.Attribute)itemnum = '1';


Quote:
I am getting an HTTP response as a string data like

<Status>0000</Status> along with some other tags

I need to get the value of Status only from this entire string.
How to do this ?

You need to work with namespaces....please paste the entire information always and your test code, if any...simply asking how Status can be fetched will not help ur resolve your problem.

Search for namespaces here and you should find some samples.

Regards.
Back to top
View user's profile Send private message Send e-mail
MSAT
PostPosted: Wed Jul 26, 2006 1:58 am    Post subject: Reply with quote

Acolyte

Joined: 17 Aug 2005
Posts: 62
Location: Bengalooru

Well, Let me tell you the requirement.

There is a webservice (WBIMB V6.0 HTTP nodes used). I need to send a request to this service from WIMB V5.0 then get the response back reformat the messge into simple XML and send it to another Java application.

I am able to get the response from HTTP request node. And this response message having the below structure. I mean at the output terminal of HTTP Request node below tree i ma able to see.

Message
Properties
HTTPResponseHeader
XMLNS
Envelope
Body
CheckService
encodingStyle = http://schemas.xmlsoap.org/soap/encoding/
param0
<ID>123</ID><Status>OK</Status>

My requirement is to get value of Status tag and validate it. And proceed depending upon this value.

I am not able to get this value.

Thank You
MSAT
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Shadow
PostPosted: Tue Aug 08, 2006 9:45 am    Post subject: Re: How to create <SearchType itemnum="1">MS Reply with quote

Novice

Joined: 03 Aug 2006
Posts: 16
Location: Campinas/SP - Brazil

MSAT wrote:
Hi,
I am trying to create <SearchType itemnum="1">MSISDN</SearchType> as one of the tag in my request message.
How to do this in ESQL coding ? I tried to use XML.Attribute after creation of the tag. But it is not working.

Thank You
MSAT

Hi.
I am trying to do the same thing, but not in ESQL Code. I have to do this in a MessageSet definition.

I create a new ComplexType element and insert the attribute into it, but, i am not able to insert the "tag body" (in your example, MSISDN).
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
MSAT
PostPosted: Tue Aug 08, 2006 9:40 pm    Post subject: Reply with quote

Acolyte

Joined: 17 Aug 2005
Posts: 62
Location: Bengalooru

Hi,

Now the webservice is changed. Hence I am able to send XML request over HTTP rather than SOAP over HTTP. And the servie returns me the parsed values in XML foramt. Hence after modification of this i not worked more on this. And we are not using message sets. Which we can create from WSDL file.

Thanks
MSAT
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Shadow
PostPosted: Thu Aug 10, 2006 1:29 pm    Post subject: Re: How to create <SearchType itemnum="1">MS Reply with quote

Novice

Joined: 03 Aug 2006
Posts: 16
Location: Campinas/SP - Brazil

Shadow wrote:
Hi.
I am trying to do the same thing, but not in ESQL Code. I have to do this in a MessageSet definition.

I create a new ComplexType element and insert the attribute into it, but, i am not able to insert the "tag body" (in your example, MSISDN).

Solved!
The "Base type" of the Local Complex Type have to be changed to "string".
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
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 create <SearchType itemnum="1">MSISDN
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.