Author |
Message
|
selvaetkt |
Posted: Tue Oct 08, 2013 8:59 pm Post subject: Soap response to cobol copybook format . |
|
|
Novice
Joined: 25 Jun 2013 Posts: 16 Location: chennai
|
Hi ,
I am making a web service call using soap request node . once i get the response , i need to convert it to cobol copy book format and write in a queue. I tried to achieve using rcd node . but it uses soap name space .when i try to write in mqoutput it is throwing error . Can anyone help me how to achieve soap response to binary1 format conversion . |
|
Back to top |
|
 |
dogorsy |
Posted: Tue Oct 08, 2013 11:01 pm Post subject: Re: Soap response to cobol copybook format . |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
selvaetkt wrote: |
Hi ,
I am making a web service call using soap request node . once i get the response , i need to convert it to cobol copy book format and write in a queue. I tried to achieve using rcd node . but it uses soap name space .when i try to write in mqoutput it is throwing error . Can anyone help me how to achieve soap response to binary1 format conversion . |
Have you heard of Compute node and ESQL ? There is nothing difficult in what you are describing, unless you consider reading the documentation to be difficult. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Oct 09, 2013 1:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You might also consider the use of a mapping node...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
dogorsy |
Posted: Wed Oct 09, 2013 1:18 am Post subject: |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
Or Java Compute Node. Certainly not an RCD. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Oct 09, 2013 8:13 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
This will not work. But something like this will work:
Code: |
DECLARE bodyElement REFERENCE To InputRoot.SOAP.soapns:Body.(XMLNSC.Element)*[1];
SET OutputRoot.MRM = bodyElement;
SET OutputRoot.Properties.MessageType=FIELDNAME(bodyElement);
SET OutputRoot.Properties.MessageSet = '<your message set name>'
SET OutputRoot.Properties.MessageFormat = 'binary1';
|
In case it is not obvious, I am assuming that the message name in the message set matches the name of the first child of SOAP body. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
|