почему-то я получаю от SOAP:
[Code] => SessionIdMissing
[Description] => Session Id Missing
Это RAW XML, который мне нужно отправить:
<?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.ws.com/webservices/v2">
<SessionId>ef7b1728ce004a4dbd7404d16918dd53</SessionId>
<EndSession>true</EndSession>
</SessionIdHeader>
</soap:Header>
<soap:Body>
<Send xmlns="http://www.ws.com/webservices/v2">
<source xsi:type="ExistingSendingSource">
<ChannelType>Sms</ChannelType>
<Id>1</Id>
</source>
<target xsi:type="ExistingRecipientSendingTarget">
<RecipientId>12070135</RecipientId>
<ExternalGroupId xsi:nil="true" />
</target>
</Send>
</soap:Body>
Иэто мой код PHP, где я устанавливаю переменные:
$paramsSend = array(
'SessionId' => $SessionId,
'Body'=>'This is a test message',
'Name'=>'Test Message',
'Sender'=>'7777',
'Charset' => 'UTF-8',
'MobileNumber'=>'4646546546'
);
if (!$url) $url = 'https://www.someservice.com/ws/smsservice.asmx?WSDL';
$c = new SoapClient($url);
$res= $c->__call($module, array($params));
Любые советы?