gpt4 book ai didi

php - 将某些命名空间添加到 PHP 中的 SOAP 信封

转载 作者:行者123 更新时间:2023-12-04 16:56:47 26 4
gpt4 key购买 nike

我真的需要将某个命名空间添加到 WSDL 中未指定的 SOAP 信封中,出于某种原因我已经尝试在 SoapCliente 构造函数中使用“uri”参数,但它不起作用

如何将此命名空间添加到 SoapEnvelope ?

提前致谢

最佳答案

你不能change the namespace的 SOAP 信封。

Notice the xmlns:soap namespace in the example above. It should always have the value of: "http://www.w3.org/2001/12/soap-envelope". The namespace defines the Envelope as a SOAP Envelope. If a different namespace is used, the application generates an error and discards the message.

关于php - 将某些命名空间添加到 PHP 中的 SOAP 信封,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/883345/

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