Hi axis users,

I have nice pojo webservices in axis.
I'm building a client in php.

My pojo java function in class Employee is like this:
 public String getPreference(String user, String pref)

The generated WSDL speaks of method getPreference and its parameters param0 and param1.

The php code goes like this:
 $sc = new SoapClient("http://localhost:9762/services/Employee?wsdl";);
$response = $sc->getPref(array('param0' => $user, 'param1' => $pref)->return;

Without calling the parameters by their names (param0 etc) it does not work. See example below
 $response = $sc->getPref(array($user, $pref)->return;

My questions:

1. Why?
2. Is this a setting or is there a way around calling the params by their names?


Greetings from sunny Holland, Joek Hondius

Reply via email to