Author |
Message
|
MSAT |
Posted: Tue Jul 25, 2006 9:43 pm Post subject: How to create <SearchType itemnum="1">MSISDN |
|
|
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 |
|
 |
elvis_gn |
Posted: Tue Jul 25, 2006 10:05 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi MSAT,
Please post the code.
Regards. |
|
Back to top |
|
 |
MSAT |
Posted: Tue Jul 25, 2006 11:30 pm Post subject: |
|
|
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 |
|
 |
elvis_gn |
Posted: Tue Jul 25, 2006 11:46 pm Post subject: |
|
|
 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 |
|
 |
MSAT |
Posted: Wed Jul 26, 2006 1:58 am Post subject: |
|
|
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 |
|
 |
Shadow |
Posted: Tue Aug 08, 2006 9:45 am Post subject: Re: How to create <SearchType itemnum="1">MS |
|
|
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 |
|
 |
MSAT |
Posted: Tue Aug 08, 2006 9:40 pm Post subject: |
|
|
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 |
|
 |
Shadow |
Posted: Thu Aug 10, 2006 1:29 pm Post subject: Re: How to create <SearchType itemnum="1">MS |
|
|
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 |
|
 |
|