Call JAVA web service from PHP using SOAP?

Nithya

New member
Hi,


I am trying to call a java webservice from PHP.

The code to call the webservice is

/*********************************************************************/
$parameter = array('password');
$result = $soapclient->__call('example1', $parameter);

/*********************************************************************/

and the JAVA function is

/*------------------------------------------------------------------------------------/
public String example1(String[] message) {
return "welcome to web services Ms. "+message[0];
}
/*------------------------------------------------------------------------------------/

But I am getting the following error.

Fatal error: Uncaught SoapFault exception: [soap:Client] Not enough message parts were received for the operation. in C:\wamp\www\webservice\SOAP\sec\caltojava.php:12 Stack trace: #0 C:\wamp\www\webservice\SOAP\sec\caltojava.php(12): SoapClient->__call('example1', Array) #1 {main} thrown in C:\wamp\www\webservice\SOAP\sec\caltojava.php on line 12




Can anyone help?
 
Back
Top