You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by ch...@apache.org on 2005/10/20 10:10:41 UTC
svn commit: r326856 - in
/webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2:
SimpleSandesha2Server.java samples/SampleClient.java
Author: chamikara
Date: Thu Oct 20 01:09:36 2005
New Revision: 326856
URL: http://svn.apache.org/viewcvs?rev=326856&view=rev
Log:
Some updates to interop files
Modified:
webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/SimpleSandesha2Server.java
webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/samples/SampleClient.java
Modified: webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/SimpleSandesha2Server.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/SimpleSandesha2Server.java?rev=326856&r1=326855&r2=326856&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/SimpleSandesha2Server.java (original)
+++ webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/SimpleSandesha2Server.java Thu Oct 20 01:09:36 2005
@@ -1,9 +1,19 @@
/*
- * Created on Oct 9, 2005
- *
- * TODO To change the template for this generated file go to
- * Window - Preferences - Java - Code Style - Code Templates
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
*/
+
package org.apache.sandesha2;
import org.apache.axis2.AxisFault;
@@ -11,10 +21,13 @@
public class SimpleSandesha2Server {
+ private static String SANDESHA_HOME = "E:\\wso2\\sandesha\\sandesha 2\\code\\checkouts\\Aug_25_2005\\"; //Change this to ur path.
+
+ private static String AXIS2_SERVER_PATH = SANDESHA_HOME + "target\\server\\"; //this will be available after a maven build
+
public static void main(String[] args) throws AxisFault {
System.out.println("Starting sandesha2 server...");
- SimpleHTTPServer server = new SimpleHTTPServer ("E:\\Program Files\\Apache Software Foundation\\Tomcat 5.0\\webapps\\axis2\\WEB-INF",8080);
+ SimpleHTTPServer server = new SimpleHTTPServer (AXIS2_SERVER_PATH,8080);
server.start();
-
}
}
Modified: webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/samples/SampleClient.java
URL: http://svn.apache.org/viewcvs/webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/samples/SampleClient.java?rev=326856&r1=326855&r2=326856&view=diff
==============================================================================
--- webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/samples/SampleClient.java (original)
+++ webservices/sandesha/trunk/samples/interop/src/org/apache/sandesha2/samples/SampleClient.java Thu Oct 20 01:09:36 2005
@@ -29,7 +29,6 @@
import org.apache.axis2.om.OMElement;
import org.apache.axis2.om.OMFactory;
import org.apache.axis2.om.OMNamespace;
-import org.apache.bcel.generic.GETFIELD;
import org.apache.sandesha2.Constants;
public class SampleClient {
@@ -40,6 +39,10 @@
private static String sandesha2TO = "http://localhost:8070/axis2/services/InteropService";
+ private static String SANDESHA_HOME = "E:\\wso2\\sandesha\\sandesha 2\\code\\checkouts\\Aug_25_2005\\"; //Change this to ur path.
+
+ private static String AXIS2_CLIENT_PATH = SANDESHA_HOME + "target\\client\\"; //this will be available after a maven build
+
public static void main(String[] args) throws AxisFault {
SampleClient client = new SampleClient ();
client.run();
@@ -62,7 +65,7 @@
public void testEcho () throws AxisFault {
- Call call = new Call("E:\\wso2\\sandesha\\sandesha 2\\code\\checkouts\\Aug_25_2005\\target\\dist\\client");
+ Call call = new Call(AXIS2_CLIENT_PATH);
call.engageModule(new QName("sandesha"));
call.set(Constants.AcksTo,"http://192.168.1.195:9070/axis2/services/AnonymousService/echoString");
---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org