[jboss-cvs] jboss-seam/examples/seambay/view ...
Shane Bryzak
sbryzak at redhat.com
Tue Apr 24 08:49:06 EDT 2007
User: sbryzak2
Date: 07/04/24 08:49:06
Modified: examples/seambay/view test.js test.xhtml
Log:
minor
Revision Changes Path
1.9 +7 -4 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.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- test.js 24 Apr 2007 12:38:30 -0000 1.8
+++ test.js 24 Apr 2007 12:49:06 -0000 1.9
@@ -1,4 +1,3 @@
-var ENDPOINT = "/AuctionServiceService/AuctionService";
var webServices = new Object();
var groups = new Object();
@@ -45,7 +44,7 @@
"\n <arg1>#{password}</arg1>" +
"\n </seam:login>" +
"\n </soapenv:Body>" +
- "</soapenv:Envelope>");
+ "\n</soapenv:Envelope>");
svc.addParameter(new ServiceParam("Username", "username"));
svc.addParameter(new ServiceParam("Password", "password"));
@@ -56,7 +55,7 @@
"\n <soapenv:Body>" +
"\n <seam:logout/>" +
"\n </soapenv:Body>" +
- "</soapenv:Envelope>");
+ "\n</soapenv:Envelope>");
svc = new ServiceMetadata("createAuction", "Create/Update Auction");
svc.setDescription("Create new auction");
@@ -132,6 +131,10 @@
// end of web service definitions
+function getEndpoint()
+{
+ return document.getElementById("endpoint").value;
+}
var selectedService = null;
@@ -242,7 +245,7 @@
req = new ActiveXObject("Microsoft.XMLHTTP");
req.onreadystatechange = function() { receiveResponse(req); };
- req.open("POST", ENDPOINT, true);
+ req.open("POST", getEndpoint(), true);
req.setRequestHeader("Content-type", "text/xml");
req.send(document.getElementById("serviceRequest").value);
}
1.4 +9 -4 jboss-seam/examples/seambay/view/test.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: test.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/test.xhtml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- test.xhtml 11 Apr 2007 07:16:12 -0000 1.3
+++ test.xhtml 24 Apr 2007 12:49:06 -0000 1.4
@@ -11,7 +11,7 @@
</head>
<body>
- <h1>SeamBay Web Services - Test Page</h1>
+ <h2>seamBay Web Services - Test Page</h2>
<div id="services">
@@ -23,7 +23,12 @@
</div>
<div>
- <h2>Parameters</h2>
+ Endpoint:
+ <input id="endpoint" type="text" value="/AuctionServiceService/AuctionService" style="width:400px"/>
+ </div>
+
+ <div>
+ <h3>Parameters</h3>
<div id="parameters">
None
@@ -33,13 +38,13 @@
</div>
<div>
- <h2>Request</h2>
+ <h3>Request</h3>
<textarea id="serviceRequest"/>
</div>
<div>
- <h2>Response</h2>
+ <h3>Response</h3>
<textarea id="serviceResponse"/>
</div>
More information about the jboss-cvs-commits
mailing list