Saturday 06 November 2010 9:20:54 am
Not yet 100% there: but this might help you: 1: set up in wsproviders.ini.append.php the description of your server:
[jzero]
providerType=PhpSOAP
providerUri=
WSDL=http://www.jzero.com/TestWebservice/service1.asmx?WSDL 2: test the urls using a command line script:
<?php
include( 'autoload.php' );
$script = eZScript::instance( array(
'description' => ( '...' ),
'use-session' => false,
'use-modules' => false,
'use-extensions' => true ) );
$script->startup();
$script->initialize();
// 1st test: HelloWorld
$resp = ggeZWebservicesClient::send( 'jzero', 'HelloWorld', array() );
var_dump( $resp );
// 2nd test: addnumbers
$resp = ggeZWebservicesClient::send( 'jzero', 'addnumbers', array( array( 'arg1' => 25.25, 'arg2' => 33.33 ) ) );
var_dump( $resp );
$script->shutdown();
?> The results I get are: - helloworlds works fine - addnumbers works partially: I get an answer, but the numbers are truncated in teh request sent by eZP I am currently investigating to see exactly what version of SOAP is being used by the requests, as your WSDL apparently supports both "soap1" and "soap12"...
Principal Consultant International Business
Member of the Community Project Board
|