Posted: Thu Oct 22, 2009 8:09 pm Post subject: a problem about CData in SOAP Body
Newbie
Joined: 29 Oct 2008 Posts: 6
I want to put a XML String to SOAP Body Input parameter in esql:
DECLARE temp CHARACTER;
SET temp = '<BasicCode>3176</BasicCode><Cryp></Cryp><Comp>296575</Comp><Date>2009/10/2200:01:05</Date>';
I try as: SET OutputRoot.XMLNSC.ns4:Body.ns2:Ws_wm_bas_check.ns2:(XMLNSC.CDataField)recordXml = temp;
there is a esql expression error
if I change as:
SET OutputRoot.XMLNSC.ns4:Body.ns2:Ws_wm_bas_check.(XMLNSC.CDataField)recordXml = temp;
there is no esql expression error now, but I think the namespace ns2 is necessary, could you help me to find out the solution, thx a lot.
SET OutputRoot.XMLNSC.ns4:Body.ns2:Ws_wm_bas_check.(XMLNSC.CDataField)ns2:recordXml = temp;
The (XMLNSC.CDataField) is not a cast, it simply indicated the type of the element within brackets...
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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