gpt4 book ai didi

php - Indesign Server soap 响应

转载 作者:行者123 更新时间:2023-12-02 00:44:43 25 4
gpt4 key购买 nike

我需要调试 soap 网络服务,但我不知道从哪里开始。这是返回错误的数据,我需要找到原因。它在 http://localhost:18385 上运行我可以控制我发送但不知道端点文件的参数。如果我写http://localhost:18385在浏览器上我得到

 <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:IDSP="http://ns.adobe.com/InDesign/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>HTTP GET method not implemented</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

提前致谢

最佳答案

最简单的调试方法是使用 Postman 或 SoapUI 等应用程序,这样您就可以设置要发布的内容并详细查看响应。

您收到错误是因为您在脚本中使用了 GET,InDesign Server 期望 POST 请求的 Content-Type 为 xml/text 并且 Body 设置为 Soap 调用,例如

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://ns.adobe.com/InDesign/soap/">
<soapenv:Body>
<soap:RunScript>
<runScriptParameters>
<scriptLanguage>javascript</scriptLanguage>
<scriptFile>C:\InDesign\scriptfile.jsx</scriptFile>
<scriptArgs>
<name>myParameter</name>
<value>305</value>
</scriptArgs>
</runScriptParameters>
</soap:RunScript>
</soapenv:Body>
</soapenv:Envelope>

关于php - Indesign Server soap 响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44550296/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com