I v gotta problem with SOAP.
Code: Select all
$arguments = array(
'sessionID' => '',
'address' => '{MSISDN}',
'senderAddress' => '{MSISDN}',
'charging' => array(
"amount"=>"1",
"apn" => "0",
"chargedAlias"=>"{MSISDN}",
"userMsisdn"=>"{MSISDN}",
"volumeInKilobytes"=>"0"
),
'message' => 'TEST',
);
$client = new SoapClient($wsdl, $parameters);
$namespace = array('soapaction' => 'sendSms', 'uri' => $ns1);
print $client->__soapCall('sendSms', $arguments, $namespace);ns1 is holding same value of wsdl. (i think here is my problem.)
Everything s ok before put the print line to code. Because i can connect to server succesfully.
But i get exception when i put sendSms line to code.
[faultstring] => org.apache.axis.types.URI$MalformedURIException: No scheme found in URI.
[faultcode] => soapenv:Server.userException
I guess i can't set namespace correctly. Because when i check my request string i see that all fields are holding string values.
But some fields must be different data types. -exc. URI
First you have to know, i don't have any specific documentation to web service.
I know it's hard guys but.. Any idea?