I am solving problem with implemenation PHP SoapClient. I am looking for real expert with PHP SoapClient, which are able also read and check wsdl files. I need implement connection to mobile operator, they provide me only example xml, and wsdl url. I am able provide downloaded wsdl files, but wsdl service are not public - not possible developing online on your computer. I am able all ideas check in my computer for you. If you will be able read wsdl files for check everything and find problem in my array, I will provide these wsdl files.
I have rewrite almost all example xml to array for SoapClient, but one parameter (<ns2:Respond>Always</ns2:Respond>) are not filled by SoapClient.
Example from operator:
<S:Envelope xmlns:S="[login to view URL]">
<S:Body>
<ns4:Send xmlns:ns4="[login to view URL]" xmlns="[login to view URL]" xmlns:ns2="[login to view URL]" xmlns:ns3="[login to view URL]">
<ns4:Pack>
<Envelope>
<Header>
<MessageID>TEST-001</MessageID>
<ns2:Respond>Always</ns2:Respond>
</Header>
<Payload xmlns:xsi="[login to view URL]" xsi:type="ns3:SmsMessage">
<ns3:DeliveryReports>true</ns3:DeliveryReports>
<ns3:Originator xsi:type="ns3:SmsApplicationNumberAddress">
<ns3:ApplicationNumber>9999669</ns3:ApplicationNumber>
</ns3:Originator>
<ns3:Recipient xsi:type="ns3:SmsPhoneNumberAddress">
<ns3:PhoneNumber>+420774884136</ns3:PhoneNumber>
</ns3:Recipient>
<ns3:Content xsi:type="ns3:TextSmsContent">
<ns3:Text>Test text</ns3:Text>
</ns3:Content>
</Payload>
</Envelope>
</ns4:Pack>
</ns4:Send>
</S:Body>
</S:Envelope>
My PHP code:
$originator=array('ns2:ApplicationNumber' => 9999669);
$recepient=array('ns2:PhoneNumber' => '+420720300383');
$content=array('ns2:Text' => 'test xx 1');
$paylaodContent = array(
'ns2:DeliveryReports' => true,
'ns2:Originator' => new SoapVar(soapify($originator), SOAP_ENC_OBJECT, 'ns2:SmsApplicationNumberAddress'),
'ns2:Recipient' => new SoapVar(soapify($recepient), SOAP_ENC_OBJECT, 'ns2:SmsPhoneNumberAddress'),
'ns2:Content' => new SoapVar(soapify($content), SOAP_ENC_OBJECT, 'ns2:TextSmsContent')
);
$theResponse = $soapClient->Send(
array('Pack' =>
array('Envelope' =>
array(
array(
'Header' =>
array(
'MessageID' => 'test-017',
'Respond' => new SoapVar('Always',XSD_STRING,'Respond','[login to view URL]')),
'Payload' => new SoapVar(soapify($paylaodContent), XSD_STRING, 'SmsMessage', '[login to view URL]', 'Payload', '[login to view URL]')
)
)
)
)
);
XML generated by my php script is without <ns2:Respond>Always</ns2:Respond>(only Pack content - otherside description was too long)
<ns3:Pack>
<ns1:Envelope>
<ns1:Header>
<ns1:MessageID>test-017</ns1:MessageID>
</ns1:Header>
<ns1:Payload xsi:type="ns2:SmsMessage">
<ns2:DeliveryReports>true</ns2:DeliveryReports>
<ns2:Originator xsi:type="ns2:SmsApplicationNumberAddress">
<ns2:ApplicationNumber>9999669</ns2:ApplicationNumber>
</ns2:Originator>
<ns2:Recipient xsi:type="ns2:SmsPhoneNumberAddress">
<ns2:PhoneNumber>+420720300383</ns2:PhoneNumber>
</ns2:Recipient>
<ns2:Content xsi:type="ns2:TextSmsContent">
<ns2:Text>test xx 1</ns2:Text>
</ns2:Content>
</ns1:Payload>
</ns1:Envelope>
</ns3:Pack>
If you check my profile you can see i have implemented similar kind of soap service for a client before usinf nusoap libray. I cam implement it as well. let me know if you are interested