axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rui Oliveira <>
Subject [Axis2] Array String parameter on SOAP Web Service
Date Tue, 03 Jan 2012 17:58:12 GMT
Since i'm really needing a reply to my research project and no one at the
Axis2 User List managed to reply, i ask here help for the specific problem
i explain below, about developing java web services with Soap array as

For the record, i'm using Apache Axis2 1.6.1 build

---------- Forwarded message ----------
From: Rui Oliveira <>
Date: Thu, Dec 29, 2011 at 4:05 PM
Subject: Array String parameter on SOAP Web Service


I'm new to Axis2, and i've developed a soap web service using Eclipse
Helios integration with Axis2 and tomcat. I've tried searching the mailing
list but no solution seemed to address my problem. This is why i send this
email since i don't know what to do anymore! :(

I'm trying to pass a string of array to the following web service function:

package pt.uc.dei.MyWebService;

public class MyWebService {
//other functions ignored

    public int getArray(String[]result) {
       return (result.length);

The WSDL generated is attached with this email (it has definitions of other
operations but getArray is the one with the problem)

However when i use SOAPUI to generate a client. The default request that
SoapUI generate is:

"" <>>

I've edited the soap envelop tag, and the request content inside result tag
it in order to support an array like this:

"" <>>
            <param SOAP-ENC:arrayType="xsd:string[4]" >
                 <item xsi:type="xsd:string">Egypt</item>
                 <item xsi:type="xsd:string">Amsterdam</item>
                 <item xsi:type="xsd:string">Lisbon</item>
                 <item xsi:type="xsd:string">Paris</item>

However the response i get from the getArray operation is :




It seems like the array of strings is being converted to one dimensional
empty Array, and i'm not receiving the strings inside the soap array from
the request.

Can anyone provide me what is causing this and if my request is being built

Best Regards

View raw message