4 Replies Latest reply on Oct 3, 2006 10:50 AM by (Michael_Burbidge)

    [IDS CS2 JS]Soap call with utf8 characters, causes timeout error.

      When I try to do a soap request to the InDesign Soap Service, with utf8 characters in the scripttext, I get the following reply:<br /><br /><i><br />< ?xml version="1.0" encoding="UTF-8" ?> <br /><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:IDSP="http://ns.adobe.com/InDesign/soap/"> <br /><SOAP-ENV:Body> <br /><SOAP-ENV:Fault> <br /><faultcode>SOAP-ENV:Server</faultcode> <br /><faultstring>Timeout</faultstring> <br /><detail>TCP accept failed in soap_accept()</detail> <br /></SOAP-ENV:Fault> <br /></SOAP-ENV:Body> <br /></SOAP-ENV:Envelope><br /></i><br /><br />The scripttext used:<br /><br /><I><br />#includepath  "*****/InDesign_JS_Libs_tst"<br />#include      "LibText.jsxinc"<br />#include      "LibDocument.jsxinc"<br /><br />var result;<br />var global_ind_log = true;<br />var myDoc;<br />if (FindOpenDoc("4035"))<br />var result = PlaceText("66599","YAM72_T_18","4","Test &#1085;&#1077;&#1089;&#1083;&#1072;&#1089;&#1103;; &#1073;&#1077;&#1076;&#1085;&#1099;&#1081; &#1095;&#1105;&#1083;&#1085;<\\n>&#1055;&#1086; &#1085;&#1077;&#1081; &#1089;&#1090;&#1088;&#1077;&#1084;&#1080;&#1083;&#1089;&#1103; &#1086;&#1076;&#1080;&#1085;&#1086;&#1082;&#1086; test");<br />Output2XML(result);<br /></I><br /><br />If i do the same request, using a text without the rusian utf8 characters, there are no problems and indesign server executes my script.<br /><br />My question is:<br />Is there a way to use utf8/unicode characters in the scripttext without getting the timeout error. In another soap service I use, I can encode everything using base64, is there a similar solution for InDesign server?<br /><br />TIA,<br /><br />Erik Bruinsma