public static Map<String,Object> testSOAPService(DispatchContext dctx,Map<String,?> context){
  Delegator delegator=dctx.getDelegator();
  Map<String,Object> response=ServiceUtil.returnSuccess();
  List<GenericValue> testingNodes=new LinkedList<GenericValue>();
  for (int i=0; i < 3; i++) {
    GenericValue testingNode=delegator.makeValue("TestingNode");
    testingNode.put("testingNodeId","TESTING_NODE" + i);
    testingNode.put("description","Testing Node " + i);
    testingNode.put("createdStamp",UtilDateTime.nowTimestamp());
    testingNodes.add(testingNode);
  }
  response.put("testingNodes",testingNodes);
  return response;
}

public static Map < String , Object > testSOAPService ( DispatchContext dctx , Map < String , ? > context ) { Delegator delegator = dctx . getDelegator ( ) ; Map < String , Object > response = ServiceUtil . returnSuccess ( ) ; List < GenericValue > testingNodes = new LinkedList < GenericValue > ( ) ; for ( int i = 0 ; i < 3 ; i ++ ) { GenericValue testingNode = delegator . makeValue ( "TestingNode" ) ; testingNode . put ( "testingNodeId" , "TESTING_NODE" + i ) ; testingNode . put ( "description" , "Testing Node " + i ) ; testingNode . put ( "createdStamp" , UtilDateTime . nowTimestamp ( ) ) ; testingNodes . add ( testingNode ) ; } response . put ( "testingNodes" , testingNodes ) ; return response ; }
generic test soap service
