Posted: Sat Sep 09, 2006 7:38 pm Post subject: Unable to remove < and > from Output XML
Master
Joined: 24 Jun 2004 Posts: 270
Hi All,
I am working on WMBV6 and WMQ6. I have a Web Service invocation flow that invokes a webservice. Here is the message flow path:
MQInput --> Compute(preparingSOAP from XML --> HTTPRequest --> Compute(remove HTTP Headers, Converting it to customized XML and prepare MQMD) --> MQOputpt
Web Service is responding when a request made with an xml in the following format:
Code:
<WebServiceResponse>
<isSuccess>true</isSuccess>
<responseMsg>String which represents an XML</responseMsg>
<responseLength>integer that represents the length of response</responseLength>
</WebServiceResponse>
Here are the steps in generating the Output:
1. I am recieving the SOAP response as XMLNS and preparing MQMD as follows:
Code:
CREATE NEXTSIBLING OF OutputRoot.Properties DOMAIN 'MQMD';
SET OutputRoot.MQMD.StrucId = MQMD_STRUC_ID;
SET OutputRoot.MQMD.Version = MQMD_CURRENT_VERSION;
SET OutputRoot.MQMD.Encoding = InputRoot.Properties.Encoding;
SET OutputRoot.MQMD.CodedCharSetId = InputRoot.Properties.CodedCharSetId;
2. Making the HTTP Headers in the response NULL
Code:
SET OutputRoot.HTTPRequestHeader = NULL;
SET OutputRoot.HTTPResponseHeader = NULL;
3. Since I am getting the response XML as a String in a Tag called 'responseMsg', I am converting it to BLOB first and then converting it to XML using a PARSE command. Here is the Code
Code:
SET Environment.Variables.Application.BodyBlob = ASBITSTREAM(InputBody.soap:Envelope.soap:Body.rspNS:WebServiceResponse.rspNS:responseMsg OPTIONS FolderBitStream CCSID 1208);
CREATE LASTCHILD OF OutputRoot DOMAIN 'XML' PARSE(Environment.Variables.Application.BodyBlob);
Even though I am converting the incoming String into BLOB and converting it to XML using PARSE command, I am unable to remove the '<' and '>' from the output.
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