1 May 2006 02:00
Re: Creating XML Using DOM
> Is there any possiblity any of your content fields (person name > fields) have markup characters that are triggering the escaping? --------------------------------------------- > David Adams > dpadams@... > Wallaga Lake 2546 NSW Hi David, I thought that would have had something to do with it , however it did not L even if just send the pure text "hello", the same problem exists. So here is my modified getCustomerList (Web Method), followed by what Soap Client receives in response: C_TEXT($1) SOAP DECLARATION(OutPutBlob_o;Is BLOB ;SOAP Output ;"CustromerList") NameInPut_s:=$1 C_STRING(16;$xml_root) C_STRING(16;$xml_node) $xml_root:=DOM Create XML Ref("Results") If (OK=1) DOM SET XML OPTIONS($xml_root;"UTF-8") $xml_node:=DOM Create XML element($xml_root;"/Results/Persons/Person") DOM SET XML ELEMENT VALUE($xml_node;"Hello") DOM EXPORT TO VAR($xml_root;OutPutBlob_o) DOM CLOSE XML($xml_root) End if <ns1:getCustomerListResponse xmlns:ns1="http://www.4d.com/namespace/default"> <CustromerList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string"><?xml version="1.0" encoding="UTF-8" standalone="no" ?> <Results> <Persons> <Person>Hello</Person> </Persons> </Results> </CustromerList> </ns1:getCustomerListResponse> ********************************************************************** 4th Dimension Internet Users Group (4D iNUG) FAQ: http://www.4d.com/support/faqnug.html Unsub: mailto: 4D_Tech-off@... **********************************************************************
RSS Feed