我正在向在Windows VPS上运行的InDesign Server发出SOAP请求。我们已经在这台服务器上运行JSX脚本多年了,所以我们知道它工作正常。但是第三方开发公司已经向我们提供了一个JSXBIN文件来运行,我们在运行它时没有任何成功。
这是我们的要求:
POST / HTTP/1.1
Host: indesign-server.local:8081
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.2.6-1+lenny16
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 747
<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<ns1:RunScript>
<runScriptParameters>
<scriptLanguage>javascript</scriptLanguage>
<scriptFile>\\server-ip\filestore\indesign-scripts\dev-server\ResizeScript\UKtoUSsizes.jsxbin</scriptFile>
<scriptArgs>
<name>FOLDER</name>
<value>\\server-ip\filestore\dev\templates\18461</value>
</scriptArgs>
<scriptArgs>
<name>TEMPLATE</name>
<value>template</value>
</scriptArgs>
<scriptArgs>
<name>SCRIPT-PATH</name>
<value>\\server-ip\filestore\indesign-scripts\dev-server</value>
</scriptArgs>
</runScriptParameters>
</ns1:RunScript>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
以下是我得到的回复:
HTTP/1.1 200 OK
Server: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 537
Connection: close
<SOAP-ENV:Envelope>
<SOAP-ENV:Body>
<IDSP:RunScriptResponse>
<errorNumber>48</errorNumber>
<errorString>File or folder does not exist</errorString>
<scriptResult/>
</IDSP:RunScriptResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
我们认为路径是正确的,因此scriptLanguage
错误,或者二进制内部可能存在错误。有什么想法吗?