axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bentzy Sagiv" <>
Subject Data binding error - xmlbeans - newbie question
Date Sun, 04 Feb 2007 15:35:11 GMT
Hi, your help is really appreciated.
I'm trying unsuccessfully to get working a simple xmlbeans sample.
I started from the wsdl at Ajith Ranabahu article:
using the second way: xmlbeans
I run >WSDL2Java -uri currencyConvert.wsdl -ss -sd -d xmlbeans
I put simple code at the skeleton
and the >ant
Everything seems OK.
I copy my aar to the server and can reach perfectly  <http://localhost:8080/axis2/services/listServices>

Im using as client a simple php script:

$conversionRequest = array(3);
$fromCurrency = 'Peso';
$toCurrency = 'Dollar';
$amount = 100.200;
$conversionRequest[0] = $fromCurrency;
$conversionRequest[1] = $toCurrency;
$conversionRequest[2] = $amount;
$s = new soapclient('http://localhost:8080/axis2/services/StockQuoteService?WSDL','8080');
$s->debug_flag=true; //turn on debugging 
$res = $s->call('convert', $conversionRequest);
if ($err = $s->getError()) { // if error returned then this has a value
echo 'The Server returned error: ', $err; // echo the error faultstring
} else {
All I get is "The Server returned error: soapenv:Client: Data binding error"

Any help will be really appreciated

View raw message