我有一個連接到SOAP服務器的示例XML文件,並將「usero1」的「Tier」屬性設置爲「pkg01」。PHP可以根據示例XML文件編寫SOAP函數嗎?
在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>
是的,它可以..... – Baba 2013-03-21 10:48:49
可否請你讓我知道在細節?我對SOAP很陌生,我不知道要調用多少函數?以及如何傳遞參數。 – user2194507 2013-03-21 11:06:07