You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Steven Lewis <sm...@lordjoe.com> on 2001/11/18 01:29:16 UTC

Methods returning struing arrays in WSDL and WSDL2Java?

I do not see axis handling methods which return String arrays properly
It maps into an Array Object which no-one has heard of
Can anyone help

I deploy a jws file with one method returning a String array

public class FeeFie
{
     public String[] getCry()
     {
         String[] ret = { "fee","fie","foe","fum" };
         return(ret);
     }
}
The critical generated wsdl is
<message name="getCryResponse">

     <part name="getCryResult" type="ns1:Array"/>

   </message>

WSDL2Java generates

**

  * FeeFiePortType.java

  *

  * This file was auto-generated from WSDL

  * by the Apache Axis Wsdl2java emitter.

  */



package seajug.test.feefie;



public interface FeeFiePortType extends java.rmi.Remote {

     public Array getCry() throws java.rmi.RemoteException;

}



==============================================================
LordJoe - Java Training and Consulting
http://www.LordJoe.com