Author: keith
Date: Sun May 4 23:48:28 2008
New Revision: 16507
Log:
Changing 127.0.0.1 to localhost
Modified:
trunk/mashup/java/modules/coreservices/scraperservice/test/org/wso2/mashup/coreservices/scraperservice/ScraperClient.java
trunk/mashup/java/modules/integration/test-resources/scripts/hostObjectTest.js
trunk/mashup/java/modules/integration/test-resources/scripts/proxyGlobalWS.js
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/IntegrationTestConstants.java
trunk/mashup/java/modules/javascriptdeployer/test/org/wso2/mashup/deployer/ReceiverTestConstants.java
Modified:
trunk/mashup/java/modules/coreservices/scraperservice/test/org/wso2/mashup/coreservices/scraperservice/ScraperClient.java
==============================================================================
---
trunk/mashup/java/modules/coreservices/scraperservice/test/org/wso2/mashup/coreservices/scraperservice/ScraperClient.java
(original)
+++
trunk/mashup/java/modules/coreservices/scraperservice/test/org/wso2/mashup/coreservices/scraperservice/ScraperClient.java
Sun May 4 23:48:28 2008
@@ -30,7 +30,7 @@
StAXOMBuilder builder = new StAXOMBuilder(in);
OMElement payload = builder.getDocumentElement();
Options options = new Options();
- EndpointReference epr = new
EndpointReference("http://127.0.0.1:9766/soap/ScraperService");
+ EndpointReference epr = new
EndpointReference("http://localhost:9766/soap/ScraperService");
options.setTo(epr); // this sets the location of MyService service
options.setAction("urn:scrape");
options.setTimeOutInMilliSeconds(100000);
Modified:
trunk/mashup/java/modules/integration/test-resources/scripts/hostObjectTest.js
==============================================================================
---
trunk/mashup/java/modules/integration/test-resources/scripts/hostObjectTest.js
(original)
+++
trunk/mashup/java/modules/integration/test-resources/scripts/hostObjectTest.js
Sun May 4 23:48:28 2008
@@ -24,7 +24,7 @@
var options = new Array();
options["useSOAP"] = true;
var payload = "<friendlyBuildDate/>";
-
f.open(options,"http://127.0.0.1:11001/services/system/version/friendlyBuildDate",
false);
+
f.open(options,"http://localhost:11001/services/system/version/friendlyBuildDate",
false);
f.send(payload);
return f.responseE4X;
}
@@ -40,7 +40,7 @@
options["HTTPMethod"] = "POST";
// options["action"] = "urn:getVersion"
//options["useWSA"] = "1.0"; // Use WS-Addressing submission version
-
req1.open(options,"http://127.0.0.1:11001/services/system/version/friendlyBuildDate",false);
+
req1.open(options,"http://localhost:11001/services/system/version/friendlyBuildDate",false);
var payload = "<friendlyBuildDate/>";
req1.send(payload);
return req1.responseE4X;
@@ -83,7 +83,7 @@
systemAbsoluteURLIncludeTest.inputTypes = "#raw";
systemAbsoluteURLIncludeTest.outputType = "#raw";
function systemAbsoluteURLIncludeTest(param){
-
system.include("http://127.0.0.1:11001/services/system/hostObjectService/include.js");
+
system.include("http://localhost:11001/services/system/hostObjectService/include.js");
return getName("WSO2");
}
@@ -298,7 +298,7 @@
options["HTTPMethod"] = "POST";
options["HTTPLocation"] = "weather/{city}";
options["HTTPInputSerialization"] = "application/xml";
-
req.open(options,"http://127.0.0.1:11001/services/system/RESTSample",false);
+
req.open(options,"http://localhost:11001/services/system/RESTSample",false);
var payload =
"<POSTWeather><city>colombo</city><weatherDetails>35</weatherDetails></POSTWeather>";
req.send(payload);
var result = (req.responseE4X["return"]).text();
@@ -309,7 +309,7 @@
options["HTTPMethod"] = "GET";
options["HTTPInputSerialization"] = "application/x-www-form-urlencoded";
req = new WSRequest();
-
req.open(options,"http://127.0.0.1:11001/services/system/RESTSample",false);
+
req.open(options,"http://localhost:11001/services/system/RESTSample",false);
payload = "<GETWeather><city>colombo</city></GETWeather>";
req.send(payload);
result = (req.responseE4X["return"]).text();
@@ -320,7 +320,7 @@
req = new WSRequest();
options["HTTPMethod"] = "PUT";
options["HTTPInputSerialization"] = "application/xml";
-
req.open(options,"http://127.0.0.1:11001/services/system/RESTSample",false);
+
req.open(options,"http://localhost:11001/services/system/RESTSample",false);
payload =
"<PUTWeather><city>colombo</city><weatherDetails>30</weatherDetails></PUTWeather>";
req.send(payload);
result = (req.responseE4X["return"]).text();
@@ -331,7 +331,7 @@
options["HTTPMethod"] = "GET";
options["HTTPInputSerialization"] = "application/x-www-form-urlencoded";
req = new WSRequest();
-
req.open(options,"http://127.0.0.1:11001/services/system/RESTSample",false);
+
req.open(options,"http://localhost:11001/services/system/RESTSample",false);
payload = "<GETWeather><city>colombo</city></GETWeather>";
req.send(payload);
result = (req.responseE4X["return"]).text();
@@ -342,7 +342,7 @@
options["HTTPMethod"] = "DELETE";
options["HTTPInputSerialization"] = "application/x-www-form-urlencoded";
req = new WSRequest();
-
req.open(options,"http://127.0.0.1:11001/services/system/RESTSample",false);
+
req.open(options,"http://localhost:11001/services/system/RESTSample",false);
payload = "<GETWeather><city>colombo</city></GETWeather>";
req.send(payload);
result = (req.responseE4X["return"]).text();
Modified:
trunk/mashup/java/modules/integration/test-resources/scripts/proxyGlobalWS.js
==============================================================================
---
trunk/mashup/java/modules/integration/test-resources/scripts/proxyGlobalWS.js
(original)
+++
trunk/mashup/java/modules/integration/test-resources/scripts/proxyGlobalWS.js
Sun May 4 23:48:28 2008
@@ -24,7 +24,7 @@
// options["action"] = "urn:getVersion"
//options["useWSA"] = "1.0"; // Use WS-Addressing submission version
var system = new System();
- req1.open(options,"http://127.0.0.1:11001/services/system/version",false);
+ req1.open(options,"http://localhost:11001/services/system/version",false);
var payload = "<friendlyBuildDate/>";
req1.send(payload);
return req1.responseE4X;
Modified:
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/IntegrationTestConstants.java
==============================================================================
---
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/IntegrationTestConstants.java
(original)
+++
trunk/mashup/java/modules/integration/test/org/wso2/mashup/integration/IntegrationTestConstants.java
Sun May 4 23:48:28 2008
@@ -23,6 +23,6 @@
public static int port = 11001;
- public static String host = "http://127.0.0.1";
+ public static String host = "http://localhost";
public static String serviceRoot = "services";
}
Modified:
trunk/mashup/java/modules/javascriptdeployer/test/org/wso2/mashup/deployer/ReceiverTestConstants.java
==============================================================================
---
trunk/mashup/java/modules/javascriptdeployer/test/org/wso2/mashup/deployer/ReceiverTestConstants.java
(original)
+++
trunk/mashup/java/modules/javascriptdeployer/test/org/wso2/mashup/deployer/ReceiverTestConstants.java
Sun May 4 23:48:28 2008
@@ -25,7 +25,7 @@
public static int TESTING_PORT = 5555;
public static final EndpointReference serviceEPR = new EndpointReference(
- "http://127.0.0.1:" + (TESTING_PORT)
+ "http://localhost:" + (TESTING_PORT)
+ "/axis2/services/echoService/");
public static final QName serviceName = new QName("JSService");
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev