我有這樣的XML:PHP肥皂問題
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<SessionIdHeader xmlns="http://www.inwise.com/webservices/v2">
<SessionId>f554159f785d4793ab097470c7c76b2c</SessionId>
<EndSession>false</EndSession>
</SessionIdHeader>
</soap:Header>
<soap:Body>
<Send xmlns="http://www.inwise.com/webservices/v2">
<source xsi:type="MobileMessageSendingSource">
<Message>
<AccountId xsi:nil="true" />
<Body>נסיון</Body>
<Bounces xsi:nil="true" />
<Charset>unicode</Charset>
<CreateDate xsi:nil="true" />
<EndDate xsi:nil="true" />
<LastSent xsi:nil="true" />
<Name>test for bt</Name>
<NonSent xsi:nil="true" />
<Opens xsi:nil="true" />
<RecipientType xsi:nil="true" />
<Sender>8858</Sender>
<Sent xsi:nil="true" />
<Status xsi:nil="true" />
<TableConnectionId xsi:nil="true" />
<Unsubscribes xsi:nil="true" />
<UpdateDate xsi:nil="true" />
<Validity>1440</Validity>
</Message>
</source>
<target xsi:type="NewRecipientSendingTarget">
<Recipient>
<Id>0</Id>
<MobileNumber>972506471313</MobileNumber>
</Recipient>
</target>
</Send>
</soap:Body>
</soap:Envelope>
,這就是我要送:
$paramsSend = array('Message' =>
array('Body'=>'This is a test message',
'Name'=>'FromBlind',
'Sender'=>'7777',
'Charset' => 'unicode',
'Validity'=>'1440'
),
array('Recipient' =>
array(
'MobileNumber'=>'7849386874'
)
)
);
$x['SessionId'] = $SessionId;
$x['EndSession'] = 'true';
$header = new SoapHeader('http://www.inwise.com/webservices/v2',
'SessionIdHeader',
$x);
$c->__setSoapHeaders($header);
$res= $c->__soapCall($module, array($params));
,但他們告訴我,XML我送它不相同的他們的XML, 我不知道該怎麼辦了,好像一切正常....
任何意見的?
'$ paramsSend = array('和'$ c - > __ soapCall($ module,array($ params));'爲什麼不同的數組名稱? – Electronick 2012-03-26 14:23:58