php:带有重复键的肥皂呼叫

发布于 2025-01-27 22:41:21 字数 1965 浏览 1 评论 0 原文

我的任务是执行具有相同名称的多个元素的肥皂调用。 肥皂信封结构必须是这样的:

<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://arubasignservice.arubapec.it/">
    <soap-env:body>
        <ns1:pdfsignaturev2>
            <signrequestv2>
                <binaryinput>ZmlsZUJJTg==</binaryinput>
                <certid>AS0</certid>
                <identity>
                    <otppwd>123456</otppwd>
                    <typeotpauth>xxxx</typeotpauth>
                    <user>xxxx</user>
                    <userpwd>xxxx</userpwd>
                </identity>
                <requiredmark>false</requiredmark>
                <transport>BYNARYNET</transport>
            </signrequestv2>
            <apparence>
                <imagebin>c2lnbklNRw==</imagebin>
                <imageonly>true</imageonly>
                <leftx>200</leftx>
                <lefty>200</lefty>
                <page>2</page>
                <rightx>200</rightx>
                <righty>200</righty>
                <bscalefont>true</bscalefont>
                <bshowdatetime>false</bshowdatetime>
                <resizemode>1</resizemode>
                <preservepdfa>true</preservepdfa>
            </apparence>
            <pdfprofile>PADESBES</pdfprofile>
        </ns1:pdfsignaturev2>
    </soap-env:body>
</soap-env:envelope>

我试图发送的元素是重复的&lt; applence&gt; ,但是即使尝试了多个答案中建议的不同方法( here 在这里)我总是没有成功的结果。

希望有人能帮助我。 谢谢。

I have the task to perform a SOAP call with multiple elements having the same name.
The SOAP envelope structure has to be like this:

<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://arubasignservice.arubapec.it/">
    <soap-env:body>
        <ns1:pdfsignaturev2>
            <signrequestv2>
                <binaryinput>ZmlsZUJJTg==</binaryinput>
                <certid>AS0</certid>
                <identity>
                    <otppwd>123456</otppwd>
                    <typeotpauth>xxxx</typeotpauth>
                    <user>xxxx</user>
                    <userpwd>xxxx</userpwd>
                </identity>
                <requiredmark>false</requiredmark>
                <transport>BYNARYNET</transport>
            </signrequestv2>
            <apparence>
                <imagebin>c2lnbklNRw==</imagebin>
                <imageonly>true</imageonly>
                <leftx>200</leftx>
                <lefty>200</lefty>
                <page>2</page>
                <rightx>200</rightx>
                <righty>200</righty>
                <bscalefont>true</bscalefont>
                <bshowdatetime>false</bshowdatetime>
                <resizemode>1</resizemode>
                <preservepdfa>true</preservepdfa>
            </apparence>
            <pdfprofile>PADESBES</pdfprofile>
        </ns1:pdfsignaturev2>
    </soap-env:body>
</soap-env:envelope>

The element which I'm trying to send as duplicate is <apparence>, however even trying different methods as suggested in multiple answers (here and here) I'm having always unsuccessful outcomes.

Hopeful someone can help me.
Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文