Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Oct 03, 2006 Oct 03, 2006
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
785
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 03, 2006 Oct 03, 2006
I'm not sure it is just the fact that you're using UTF-8. I was able to run the following script just fine using testclient.

app.consoleout("Test ???????; ?????? ????<\\n>?? ??? ????????? ??????? test");

Could it be that you client is not creating the SOAP request correctly when using UTF-8? Does your script work using testclient?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 03, 2006 Oct 03, 2006
When I pasted the UTF-8 into the browser it stripped out the UTF-8. In my script what was enclosed in the "" was the exact same UTF-8 that you were placing. Let me try one more time. Here's the script I ran:

app.consoleout("Test ???????; ?????? ????<\\n>?? ??? ????????? ??????? test");
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 03, 2006 Oct 03, 2006
With a different browser:

app.consoleout(Test неслася; бедный чёлн<\\n>По ней стремился одиноко test");
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 03, 2006 Oct 03, 2006
LATEST
My origianl post didn't take.

I tried the following script using testclient and it worked just fine:

app.consoleout(Test неслася; бедный чёлн<\\n>По ней стремился одиноко test");

I don't know what kind of SOAP technology you are using in your client but perhaps it isn't packaging up the script correctly. If you think it is, it would be useful if you could reproduce this using testclient and then enclose the entire script so that I could try to reproduce the problem.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines