1 Reply Latest reply on Mar 21, 2008 10:05 AM by Alessio Soldano

    Passing objects to JBoss Webservices

    Papa Rao Newbie

      I have got a web method in my webservice as follows:

       public Hashtable<String,String> getPointValues(@WebParam(name="pointList") List<String> pointList)
       Hashtable<String, String> pointValueList = new Hashtable<String, String>();
       for(int i=0;i<pointList.size();i++)
       return pointValueList;

      I am making use of jboss remoting client to invoke the above method.
      In the above method it takes argument as a list of string. I am forming a soap message and invoking the above method from my client as follows

      Object response = remotingClient.invoke(soapmessage);

      where the soap message is as follows:

      <soapenv:Envelope xmlns:obix="http://obixservice/obix" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

      the getPointValues method mentioned above is expected to return hashtable.
      But its returning a string containing soap message.

      How do i make this method return a hashtable ?