Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > SOAP : PHP client /Java server

Thread Tools

SOAP : PHP client /Java server

Posts: 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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Training Institute In Delhi, Live Projects on PHP. Short TermPHP Courses, PHP Scripts, PHP Training with Live Projects. Rajive Narain Java 0 09-18-2009 10:47 AM
How to make soap request and receive soap response from php soapservice Ivan S ASP .Net 0 08-13-2008 03:35 PM
SOAP Client -getting data from SOAP::Mapping::Object? Mason Brown Ruby 1 05-23-2007 03:24 AM
PHP SOAP client: PHP5 or NuSOAP? Java 2 08-15-2006 05:36 PM
SOAP Client creation in ASP.NET using MS SOAP Toolkit Sham Ramakrishnan ASP .Net 2 07-01-2003 11:29 AM