1 Reply Latest reply on Jul 15, 2009 6:04 AM by Tom Fennelly

    soapclient invoke the webservice method  that has a list par

    bingozzz bingozzz Newbie

      i expose a webservice throuth jboss ws:

      @WebService(name="TbWorkFlowUI")
      public class TbWorkFlowUI {
       @WebMethod
       public boolean submitData(@WebParam(name="cInputData")VData cInputData, @WebParam(name="cOperate")String cOperate) {
       System.out.println(cInputData);
       boolean r = (Boolean)cInputData.get(0);
       return r;
       }
      
      }
      


      jboss esb soapclient conf:
      <action class="org.jboss.soa.esb.actions.soap.SOAPClient"
       name="soap_invoke_submitData">
       <property name="wsdl"
       value="http://10.1.32.17:8001/services/TbWorkFlowUI?wsdl" />
       <property name="responseAsOgnlMap" value="true" />
       <property name="SOAPAction" value="submitData" />
       </action>
      


      my serviceinvoke client:
      Message esbMessage = MessageFactory.getInstance().getMessage(
       MessageType.JBOSS_XML);
       List list = new ArrayList();
       list.add("1");
       list.add("2");
       Map map = new HashMap();
       map.put("submitData.cInputData", list)
       esbMessage.getBody().add(map);
       ServiceInvoker invoke = new ServiceInvoker("baodan",
       "LisECInterface");
       Message m = invoke.deliverSync(esbMessage, 10000);
      


      but the method of submitData println:
      [[cInputData:null],[cInputData:null]]

      somebody could help me?