Hi,
      I have little knowledge on Axis2 and just started working on it few
days back.
      At present I am trying to develop web service that will basically
interact the business methods and return it back as bean to client.
      
Something like:
----------------------
Client <----- | | -----> Web Service Interface  <-----> Actual business
method 
 
        I am using RPCMessageReceiver for this purpose.

        My business methods are already fixed and most of them are returning
Java Collection type object as return type. Presently I am trying to create
a web service layer that will get the Collection type object from business
method, then I am setting collection object in a bean and returning the bean
from the web service method.

Structure of the bean
---------------------------------
 
                 public class SampleBean{
                                   Set set;
 
                                   public void setData(Set set){
                                     this.set = set;
                                   }
                                  
                                   public Set getData(){
                                     return set;
                                   }
                }
 
In my Service Class
------------------------------
 
 
   public class TestService{
 
              public SampleBean getAddres(){
 
              //Get the collection from the business method
              Set set = invoke business method
              SampleBean sampleBean = new SampleBean();
              // Set the collection in a bean. 
              sampleBean.setData(set);
              return sampleBean;
 
              }
}

But doing so I am facing this exception:

        Jan 27, 2007 10:15:02 AM
org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeBusinessLogic
        SEVERE: Exception occurred while trying to invoke service method
getAdrresses 
        org.apache.axiom.om.OMException: java.lang.IllegalArgumentException:
null rcl
        at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java 

I know there are some issues with Collection in Axis2. If so, is there any
other alternative way/approach in Axis2 to solve this problem?

Regards,
Raja
 

-- 
View this message in context: 
http://www.nabble.com/return-type-from-Web-Service-tf3132123.html#a8678248
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to