我正在使用PHP Soap客户端。但是出现错误“对象引用未设置为对象的实例”。我觉得我从DemograficData中得到了错误。
网络服务:https://api.relateddigital.com/max/member.asmx?op=SendOngoingEMail。
我创建了数组:
$veriler_SendOngoingEmail =
array(
"ServiceTicket" => $ServiceTicket,
"key" => $value_ilgi_alani,
"value" => $cari_email,
"DemograficData" => array(
"EmKeyValue" => array(
array("Key" => "mektup_header","Value" => $mektup_header),
array("Key" => "gond_isim","Value" => $gond_isim)
),
),
"ForceUpdate" => TRUE,
"OngoingCampaignId" => $web_service_id
);
Soap 1.2服务是:
POST /max/member.asmx HTTP/1.1
Host: api.relateddigital.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<SendOngoingEMail xmlns="http://ws.euromsg.com/member">
<ServiceTicket>string</ServiceTicket>
<Key>string</Key>
<Value>string</Value>
<DemograficData>
<EmKeyValue>
<Key>string</Key>
<Value>string</Value>
</EmKeyValue>
<EmKeyValue>
<Key>string</Key>
<Value>string</Value>
</EmKeyValue>
</DemograficData>
<ForceUpdate>boolean</ForceUpdate>
<OngoingCampaignId>string</OngoingCampaignId>
</SendOngoingEMail>
</soap12:Body>
</soap12:Envelope>