axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bentzy Sagiv" <bent...@answers.com>
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:
 <http://today.java.net/pub/a/today/2006/08/08/contract-first-web-services-with-axis2.html>
http://today.java.net/pub/a/today/2006/08/08/contract-first-web-services-with-axis2.html
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>
http://localhost:8080/axis2/services/listServices
 

Im using as client a simple php script:
 

<?php
 
require_once('./lib/nusoap.php');
 
$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 {
var_dump($res);
}
?>
 
All I get is "The Server returned error: soapenv:Client: Data binding error"
 

Any help will be really appreciated
 
--bentzy
 
 
 
 

Mime
View raw message