11-04-2014 04:03 PM - edited 03-14-2019 02:04 PM
Hi ,
I am following the java code example at (https://supportforums.cisco.com/document/97736/uccx-8x-really-simple-soap-client-no-custom-jar), but I have some problem, first part (create xml document) adds strange symbols to it, How can I solve that?
CCX version: 8.5.1.11004-25
when I make a ccx debug to XML I am able to see:
first symbol "U" and before quotation marks always are "\" symbol
U"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"><soapenv:Header/><soapenv:Body><mis:GetCallAggregates xmlns:mis=\"http://mis.report.pointers.cz/\"><startDate>2012-04-01T00:00:00</startDate><endDate>2012-04-02T23:59:59</endDate></mis:GetCallAggregates></soapenv:Body></soapenv:Envelope>"
I appreciate your help.
11-04-2014 11:35 PM
Hi,
I don't think that's a problem. Strings (and everything) are just arrays of bytes and the UCCX script editor chose to make their representation "enhanced" with quotation marks. The "U" prefix probably means it's Unicode.
G.
11-05-2014 03:50 AM
Hi,
and what about "\" symbol? I think web service server won't understand
it. I tried to make a simple test, this info was saved like xml file then i tried
to open it with iexplorer and this showed some error.
11-05-2014 03:55 AM
Hi,
again, this is just a representation of the String - UCCX uses this for a reason unknown to me. Naturally, if you try to open such garbled text as an XML, it would throw an error in IE.
Let me create a mock service and sniff the real communication, and I will post it to here - believe me, UCCX would show this "decorated" text but the SOAP server would get the real thing.
G.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide