我有一个示例 XML 文件,它连接到 SOAP 服务器并将“usero1”的“Tier”属性设置为“pkg01”。
在 SOAP UI 上运行此 XML 文件时,它可以工作。
我想通过 PHP 为这项工作创建一个 SOAP 函数。但我不知道如何开始,我必须调用多少个函数?任何人请帮助。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.subscriberservices.sandvine.com">
<soapenv:Header xmlns:svsec="http://services.sandvine.com">
<svsec:username>username</svsec:username>
<svsec:password>password</svsec:password>
</soapenv:Header>
<soapenv:Body>
<ws:SetSubscriberAttributesRequest>
<Debug>false</Debug>
<BulkOperationFailureBehaviour>AllOrNothing</BulkOperationFailureBehaviour>
<SetSubscriberAttributeParameterSets>
<SetSubscriberAttributeParameterSet>
<SubscriberKey>
<SubscriberRealmKey>
<Name>DEFAULT</Name>
</SubscriberRealmKey>
<Name>user01</Name>
</SubscriberKey>
<SubscriberAttributeDefinitionKey>
<Name>Tier</Name>
</SubscriberAttributeDefinitionKey>
<Value>pkg01</Value>
</SetSubscriberAttributeParameterSet>
</SetSubscriberAttributeParameterSets>
<ResponseGroups>
<ResponseGroup>Subscriber.Shallow</ResponseGroup>
</ResponseGroups>
</ws:SetSubscriberAttributesRequest>
</soapenv:Body>
</soapenv:Envelope>