axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chino Aureus" <>
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:


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

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

} catch (SoapFault $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">
        This service is to get the running Axis version
    <parameter name="ServiceClass">ws.example.Echo</parameter>
    <operation name="echo">
    <messageReceiver  class="
org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
    <operation name="getMe">
    <messageReceiver  class="
org.apache.axis2.rpc.receivers.RPCMessageReceiver" />

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 :)

View raw message