By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,652 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,652 IT Pros & Developers. It's quick & easy.

SOAP : PHP client /Java server

P: n/a
I have a problem with the string array type. I want to send a string
array from the php client to the java server (Webservice with SOAP).

Here is the code :
----- Java server method : -----

public String[] crypte(String[] message, String name) throws
RemoteException {
String[] messageFinal = new String[message.length];


return messageend;

}catch(Exception e){
throw new RemoteException(e.getMessage(), e);

----- PHP client : -----
$message= array ("aze","sdsq","jhgjhgh");
$wsdl = new SOAP_WSDL($url);
$client= $wsdl->getProxy();
$messageCrypte = $client->crypte($message, "test");

It works very well with a simple String, for example :
$message="jkjhkj"; with
public String[] crypte(String message, String name){...}

but not with a string array. Java doesn't recognise this type.The error

"JAXRPCTIE01: caught exception while handling request: unexpected
element type:

It works well in the other sens : PHP recognise a string array returned
by the java server : print_r($messageCrypte).

Thanks for your help.

Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.