Page 1 of 1

org.apache.axis.types.URI$MalformedURIException

Posted: Thu Oct 05, 2006 2:48 am
by phpist
Hi everyone,
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);
wsdl is my url to wsdl file and parameters are specific variables and values stored in an array.
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?