org.apache.axis.types.URI$MalformedURIException

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpist
Forum Newbie
Posts: 7
Joined: Wed Feb 22, 2006 4:03 am
Location: istanbul_TR

org.apache.axis.types.URI$MalformedURIException

Post 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?
Post Reply