[jboss-cvs] jboss-seam/examples/seambay/view ...

Shane Bryzak sbryzak at redhat.com
Wed Apr 11 11:41:12 EDT 2007


  User: sbryzak2
  Date: 07/04/11 11:41:12

  Modified:    examples/seambay/view  test.js
  Log:
  Additional web services
  
  Revision  Changes    Path
  1.5       +19 -1     jboss-seam/examples/seambay/view/test.js
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: test.js
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/test.js,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- test.js	11 Apr 2007 07:16:12 -0000	1.4
  +++ test.js	11 Apr 2007 15:41:12 -0000	1.5
  @@ -73,6 +73,24 @@
   svc.addParameter(new ServiceParam("Description", "description"));
   svc.addParameter(new ServiceParam("Category ID", "categoryId"));               
   
  +svc = new ServiceMetadata("updateAuction", "Create/Update Auction");
  +svc.setDescription("Update an existing auction");
  +svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
  +               "\n    xmlns:seam=\"http://seambay.example.seam.jboss.org/\">\n  <soapenv:Header/>" +
  +               "\n  <soapenv:Body>" +
  +               "\n    <seam:updateAuction>" +
  +               "\n      <arg0>#{auctionId}</arg0>" +
  +               "\n      <arg1>#{title}</arg1>" +
  +               "\n      <arg2>#{description}</arg2>" +
  +               "\n      <arg3>#{categoryId}</arg3>" +
  +               "\n    </seam:updateAuction>" +
  +               "\n  </soapenv:Body>" +
  +               "\n</soapenv:Envelope>");
  +svc.addParameter(new ServiceParam("Auction ID", "auctionId"));
  +svc.addParameter(new ServiceParam("Auction title", "title"));
  +svc.addParameter(new ServiceParam("Description", "description"));
  +svc.addParameter(new ServiceParam("Category ID", "categoryId"));      
  +
   // end of web service definitions
   
   
  
  
  



More information about the jboss-cvs-commits mailing list