NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
NuSOAP DOC/lit problem


Joined: 12 May 2006
Posts: 2
Reply with quote
Hi,

Below is my program for calling doc/lit web service method which takes 2 parameters (subtotal, and total, both are java double types). I can able to connect to the method but it is giving NumberFormatException error like below. Please help me in how to provide input parameters properly.

Array ( [faultcode] => soapenv:Server.userException [faultstring] => java.lang.NumberFormatException: For input string: "Array" [detail] => Array ( [hostname] => THRTCF3W017 ) )


My program :


<?php
include_once('./lib/nusoap.php');

function wsclient(){

$client = new soapclient1('http://localhost:8080/axis/services/TaxService1?wsdl','wsdl');
$arr = array('subtotal'=>'30000','total'=>'50000');
$parameters = array($arr);
$result = $client->call('calcTaxRate', $parameters);
if ($client->fault) {
echo '<h2>Fault</h2><br>';
print_r($result);
} else {
$err = $client->getError();
if ($err) {
echo '<h2>Error</h2><pre>' . $err . '</pre>';
} else {
echo '<h2>Result</h2><pre>';
print_r($result);
echo '</pre>';
}
}
}
wsclient();

?>
View user's profileFind all posts by dilipSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
probably you forgot to specify namespace in $client->call()
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 12 May 2006
Posts: 2
Reply with quote
How do I specify the name space. Could you please sugggest
View user's profileFind all posts by dilipSend private message
NuSOAP DOC/lit problem
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic