[jboss-user] [JBoss Web Services Users] - Re: Newbie: Empty ArrayList Passed on WS Call

gwzoller do-not-reply at jboss.com
Tue Dec 1 10:02:51 EST 2009


Here's the rest of the story.  I finally stumbled on the right recipe, and here 'tis.  I was over-complicating things.  Removing almost all the annotations fixed both the list-passing and the WSDL.

Interface:
import java.util.ArrayList;
  | import javax.ejb.Remote;  // for the EJB
  | import javax.jws.WebService;  // for the web service
  | import com.kepler.ecom.domain.OrderLine;
  | 
  | @Remote
  | @WebService
  | public interface OrderTakerRemote {
  | 	public String msg(ArrayList<String> say);
  | }

Implementation:
import javax.ejb.Stateless;
  | import javax.jws.WebService;
  | import com.aviall.kepler.ecom.domain.OrderLine;
  | import com.aviall.kepler.ecom.services.OrderTakerRemote;
  | import java.util.ArrayList;
  | 
  | @WebService
  | @Stateless 
  | public class OrderTaker implements OrderTakerRemote {
  |     public OrderTaker() {
  |     }
  |     
  |     public String msg(ArrayList<String> say) {
  |     	// Use the list here
  |     }
  | }


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268317#4268317

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268317



More information about the jboss-user mailing list