I suggest you use Zend's PHP SOAP Extension.
See http://devzone.zend.com/node/view/id/689.

Anne

On 2/4/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
The problem is that your PHP SOAP toolkit is using SOAP Encoding, but
the service has been defined as a document/literal service. You need
to find a PHP SOAP client that supports document/literal, or you need
to construct the SOAP envelope programmatically.

Anne

On 2/4/07, Bentzy Sagiv <[EMAIL PROTECTED]> wrote:
>
>
> Following my former post:
> At WSDL:
> <xs:element name="fromCurrency" type="xs:string"/>
> <xs:element name="toCurrency" type="xs:string"/>
> <xs:element name="amount" type="xs:float"/>
>
> AT the request message:
> <?xml version="1.0"
> encoding="ISO-8859-1"?><SOAP-ENV:Envelope
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";><SOAP-ENV:Body>
> <ns9534:convert xmlns:ns9534="http://tempuri.org";>
> <__numeric_0 xsi:type="xsd:string">NIS</__numeric_0>
> <__numeric_1 xsi:type="xsd:string">Dollar</__numeric_1>
> <__numeric_2 xsi:type="xsd:float">100.2</__numeric_2>
> </ns9534:convert>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
>
> Thanks!
>
> --bentzy
>
>
>  -----Original Message-----
> From: Bentzy Sagiv
> Sent: Sunday, February 04, 2007 5:35 PM
> To: '[email protected]'
> Subject: Data binding error - xmlbeans - newbie question
>
>
> 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
> 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:
>
>
> <?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
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to