Posted: Thu Feb 23, 2012 4:40 am Post subject: Convert Refernce Variable to String
Acolyte
Joined: 11 Dec 2007 Posts: 61 Location: Bengaluru
Hi All,
I have requirement to reterive final loop of Exception list in a ExceptionTree and convert that to String. I have retrieved the lastExceptionRef from the tree when i am trying to convert to a string it's not happening.
Below is the Code :
Code:
CALL getLastExpRef (InputExceptionList.*[], lastExpRef );
SET envRef.ErrorMsg = lastExpRef;
DECLARE EXCEPTIONBLOB BLOB ASBITSTREAM(envRef.ErrorMsg OPTIONS FolderBitStream);
DECLARE EXCEPTIONCHAR CHARACTER CAST(EXCEPTIONBLOB AS CHARACTER CCSID InputRoot.Properties.CodedCharSetId);
lastExpRef is assigned somethign like this
Quote:
File:CHARACTER:F:\build\S610_P\src\WebServices\WSLibrary\ImbSOAPRequestNode.cpp
Line:INTEGER:1239
Function:CHARACTER:ImbSOAPRequestNode::requestData
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:3701
Text:CHARACTER:Error Making SOAP JNI Call: Axis2Requester_processResponseMessageSync
Insert
Type:INTEGER:5
Text:CHARACTER:Axis2Requester_processResponseMessageSync
Insert
Type:INTEGER:5
Text:CHARACTER:org.apache.axiom.soap.SOAPProcessingException: First Element must contain the local name, Envelope , but found html
Insert
Type:INTEGER:5
Text:CHARACTER:Frame : 0 org.apache.axiom.soap.SOAPProcessingException: First Element must contain the local name, Envelope , but found html
But nthg is assigned to EXCEPTIONCHAR.
Any suggestions on the same would be gr8ly appreciated. _________________ Regards
Vinay
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
There was a post from only a few days ago that included some night ESQL to do something like this. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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