0

我正在尝试通过 HTTP POST 将资产上传到 Adob​​e Scene7 中的 UploadFile Servlet,无论我尝试什么,我都无法让它工作。这是他们的文档:

https://marketing.adobe.com/resources/help/en_US/s7/ips_api/c_http_post.html

我通常会收到以下错误/响应:

“标题部分超过 10240 个字节(可能没有正确终止)” https://gist.github.com/erickertz/8b50c503fd0e75fdb962515051253097

需要注意的一件事是,我无法让他们的示例使用单独的“auth”和“uploadParams”部分。相反,我在 SOAPUI 中导入了他们的 WSDL,它具有以下似乎有效的形式:

https://gist.github.com/erickertz/a4eb13e35f7709c6e5d2b4721b08510a

这是我失败的请求之一的示例:

https://gist.github.com/erickertz/3feccd53b9cb63bdba40de86c86da289

我承认我对一般的 SOAP 不是很熟悉,但这让我发疯:(谢谢!

4

1 回答 1

1

Well, hope this saves someone else some time. I found a somewhat unrelated post here that had the same error with SOAP and a .NET application:

https://community.tableau.com/thread/213098

Issue was the service only recognized "/r/n" as newline characters. I converted all of my "/n" characters to "/r/n" and it works! Thanks Adobe!

于 2018-02-13T16:58:28.667 回答