如何使用NuSoap设置NODE名称空间?

时间:2015-07-08 11:41:10

标签: php soap nusoap

NUSOAP中是否有办法设置节点的命名空间?

使用普通的PHP肥皂,可以使用SoapVar完成。

NuSoap中的等价物是什么?

我有:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:own="www.ownyourliferewards.co.za" xmlns:own1="http://schemas.datacontract.org/2004/07/OwnYourLife.WebServices.WebServicesBase" xmlns:own2="http://schemas.datacontract.org/2004/07/OwnYourLife.WebServices.Generic.DataObjects">
    <SOAP-ENV:Body>
        <AuthenticateMember xmlns="www.ownyourliferewards.co.za">
            <request>
                <SecurityToken>9415CD31-0C7E-40AB-A45F-D3538B98B96B</own1:SecurityToken>
                <MembershipNumber>200803407801</own2:MembershipNumber>
            </request>
        </AuthenticateMember>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

我希望:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:own="www.ownyourliferewards.co.za" xmlns:own1="http://schemas.datacontract.org/2004/07/OwnYourLife.WebServices.WebServicesBase" xmlns:own2="http://schemas.datacontract.org/2004/07/OwnYourLife.WebServices.Generic.DataObjects">
    <SOAP-ENV:Body>
        <AuthenticateMember xmlns="www.ownyourliferewards.co.za">
            <request>
                <own1:SecurityToken>9415CD31-0C7E-40AB-A45F-D3538B98B96B</own1:SecurityToken>
                <own2:MembershipNumber>200803407801</own2:MembershipNumber>
            </request>
        </AuthenticateMember>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

(注意节点上的own1:和own2:名称空间)

由于

雅克

0 个答案:

没有答案