axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chino Aureus" <chino.aur...@gmail.com>
Subject PHP Soap Client and Axis2 problem
Date Mon, 17 Mar 2008 12:23:51 GMT
Hi All,

I'm currently testing axis2 and have little knowledge about how to use it..
My client is written in PHP:

<?php

   $client = new SoapClient("
http://localhost:8080/axis2/services/Temperature?wsdl", array('exceptions'
=> 0));

try {
      $params   = "Hello World!";
      $result = $client->echo($params);

      print_r($result);
} catch (SoapFault $result) {
      print_r($result);
}
?>

Here's the Pojo I a exposing:

public class Echo {
    public String echo(String cValue) {
        return cValue;
    }

    public String getMe() {
        return "Hello World";
    }

}


My services.xml is

<service name="Echo">
    <description>
        This service is to get the running Axis version
    </description>
    <parameter name="ServiceClass">ws.example.Echo</parameter>
    <operation name="echo">
    <messageReceiver  class="
org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
    </operation>
    <operation name="getMe">
    <messageReceiver  class="
org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
    </operation>
</service>


I can successfully invoke getMe but not echo.  No error appears in the log
but it seems the parameter being password to echo is null.

Please advsie how to solve my problem.

Thanks :)

Mime
View raw message