You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mirae-dev@ws.apache.org by da...@apache.org on 2005/02/03 13:41:13 UTC
svn commit: r151149 [12/19] - in webservices/mirae/trunk: ./ bin/ bin/linux/
bin/windows/ build/ docs/ docs/images/ docs/images/CVS/ docs/javadoc/
genstub/ genstub/example8/ genstub/lk/ genstub/lk/opensource/
genstub/lk/opensource/wsmobile/ genstub/org/ genstub/org/apache/
genstub/org/apache/mirae/ genstub/org/apache/mirae/builtin/
genstub/org/apache/mirae/builtin/simpletypes/ genstub/uk/ genstub/uk/co/
genstub/uk/co/dsdata/ genstub/uk/co/dsdata/ws/
genstub/uk/co/dsdata/ws/travel/ genstub/uk/co/dsdata/ws/travel/sbg/
genstub/uk/co/dsdata/ws/travel/sbg/SBGAirFareQuotes/
genstub/ws_mobile_point/ lib/ logs/ samples/ samples/documentsamples/
samples/documentsamples/calculator/
samples/documentsamples/calculator/calculator/
samples/documentsamples/calculator/calculator/axis/
samples/documentsamples/calculator/calculator/axis/localhost/
samples/documentsamples/calculator/org/
samples/documentsamples/calculator/org/apache/
samples/documentsamples/calculator/org/apache/mirae/
samples/documentsamples/calculator/org/apache/mirae/builtin/
samples/documentsamples/calculator/org/apache/mirae/builtin/simpletypes/
samples/documentsamples/echo/ samples/documentsamples/echo/org/
samples/documentsamples/echo/org/apache/
samples/documentsamples/echo/org/apache/mirae/
samples/documentsamples/echo/org/apache/mirae/builtin/
samples/documentsamples/echo/org/apache/mirae/builtin/simpletypes/
samples/documentsamples/echo/org/soapinterop/
samples/documentsamples/employee/
samples/documentsamples/employee/jSR172UseCases/
samples/documentsamples/employee/jSR172UseCases/com/
samples/documentsamples/employee/jSR172UseCases/com/sun/
samples/documentsamples/employee/jSR172UseCases/com/sun/www/
samples/documentsamples/employee/org/
samples/documentsamples/employee/org/apache/
samples/documentsamples/employee/org/apache/mirae/
samples/documentsamples/employee/org/apache/mirae/builtin/
samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/
samples/documentsamples/employee/xsd/
samples/documentsamples/employee/xsd/JSR172AppendixA/
samples/documentsamples/employee/xsd/JSR172AppendixA/com/
samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/
samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/
samples/rpcsamples/ samples/rpcsamples/airfarequote/
samples/rpcsamples/airfarequote/org/
samples/rpcsamples/airfarequote/org/apache/
samples/rpcsamples/airfarequote/org/apache/mirae/
samples/rpcsamples/airfarequote/org/apache/mirae/builtin/
samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/
samples/rpcsamples/airfarequote/uk/ samples/rpcsamples/airfarequote/uk/co/
samples/rpcsamples/airfarequote/uk/co/dsdata/
samples/rpcsamples/airfarequote/uk/co/dsdata/ws/
samples/rpcsamples/airfarequote/uk/co/dsdata/ws/travel/
samples/rpcsamples/airfarequote/uk/co/dsdata/ws/travel/sbg/
samples/rpcsamples/airfarequote/uk/co/dsdata/ws/travel/sbg/SBGAirFareQuotes/
samples/rpcsamples/calculator/ samples/rpcsamples/calculator/lk/
samples/rpcsamples/calculator/lk/opensource/
samples/rpcsamples/calculator/lk/opensource/wsmobile/
samples/rpcsamples/calculator/org/ samples/rpcsamples/calculator/org/apache/
samples/rpcsamples/calculator/org/apache/mirae/
samples/rpcsamples/calculator/org/apache/mirae/builtin/
samples/rpcsamples/calculator/org/apache/mirae/builtin/simpletypes/
samples/rpcsamples/distance/ samples/rpcsamples/distance/org/
samples/rpcsamples/distance/org/apache/
samples/rpcsamples/distance/org/apache/mirae/
samples/rpcsamples/distance/org/apache/mirae/builtin/
samples/rpcsamples/distance/org/apache/mirae/builtin/simpletypes/
samples/rpcsamples/distance/wsdl/
samples/rpcsamples/distance/wsdl/DistanceService/
samples/rpcsamples/distance/wsdl/DistanceService/sd/
samples/rpcsamples/distance/wsdl/DistanceService/sd/net/
samples/rpcsamples/distance/wsdl/DistanceService/sd/net/xmethods/
samples/rpcsamples/distance/wsdl/DistanceService/sd/net/xmethods/www/
samples/rpcsamples/point/ samples/rpcsamples/point/org/
samples/rpcsamples/point/org/apache/
samples/rpcsamples/point/org/apache/mirae/
samples/rpcsamples/point/org/apache/mirae/builtin/
samples/rpcsamples/point/org/apache/mirae/builtin/simpletypes/
samples/rpcsamples/point/ws_mobile_point/ samples/rpcsamples/student/
samples/rpcsamples/student/example8/ samples/rpcsamples/student/org/
samples/rpcsamples/student/org/apache/
samples/rpcsamples/student/org/apache/mirae/
samples/rpcsamples/student/org/apache/mirae/builtin/
samples/rpcsamples/student/org/apache/mirae/builtin/simpletypes/ src/
src/mirae/ src/mirae/jaxp/ src/mirae/jaxp/javax/ src/mirae/jaxp/javax/xml/
src/mirae/jaxp/javax/xml/parsers/ src/mirae/jaxp/org/
src/mirae/jaxp/org/apache/ src/mirae/jaxp/org/apache/mirae/
src/mirae/jaxp/org/apache/mirae/j2me/
src/mirae/jaxp/org/apache/mirae/j2me/xml/
src/mirae/jaxp/org/apache/mirae/j2me/xml/sax/ src/mirae/jaxp/org/xml/
src/mirae/jaxp/org/xml/sax/ src/mirae/jaxp/org/xml/sax/helpers/
src/mirae/jaxrpc/ src/mirae/jaxrpc/javax/ src/mirae/jaxrpc/javax/xml/
src/mirae/jaxrpc/javax/xml/namespace/ src/mirae/jaxrpc/javax/xml/rpc/
src/mirae/jaxrpc/org/ src/mirae/jaxrpc/org/apache/
src/mirae/jaxrpc/org/apache/mirae/ src/mirae/jaxrpc/org/apache/mirae/util/
src/mirae/jaxrpc/org/apache/mirae/xml/
src/mirae/jaxrpc/org/apache/mirae/xml/rpc/ src/tools/
src/tools/simpletypes/ src/tools/wsdl2ws_j2me/ src/tools/wsdl2ws_j2me/org/
src/tools/wsdl2ws_j2me/org/apache/ src/tools/wsdl2ws_j2me/org/apache/axis/
src/tools/wsdl2ws_j2me/org/apache/axis/wsdl/
src/tools/wsdl2ws_j2me/org/apache/axis/wsdl/symbolTable/
src/tools/wsdl2ws_j2me/org/apache/mirae/
src/tools/wsdl2ws_j2me/org/apache/mirae/wsdl2ws/
src/tools/wsdl2ws_j2me/org/apache/mirae/wsdl2ws/doclit/
src/tools/wsdl2ws_j2me/org/apache/mirae/wsdl2ws/info/
src/tools/wsdl2ws_j2me/org/apache/mirae/wsdl2ws/j2me/
src/tools/wsdl2ws_j2me/org/apache/mirae/wsdl2ws/j2me/client/
src/tools/wsdl2ws_j2me/org/apache/mirae/wsdl2ws/rpc/ tests/
tests/functional/ tests/functional/client/
tests/functional/client/SBGGetAirFareQuote-client1/
tests/functional/client/SBGGetAirFareQuote-client2/
tests/functional/client/calculator/ tests/functional/client/point/
tests/functional/client/wst/ tests/functional/wsdl/ tests/unit/
tests/unit/inmessage/ tests/unit/mirae/ tests/unit/outmessage/
tests/unit/wsdl2ws/ wsdl/ wsdltests/ wsdltests/calculator/
wsdltests/calculator/client/ wsdltests/calculator/server/
wsdltests/exceptiontest/ wsdltests/exceptiontest/client/
wsdltests/exceptiontest/server/ wsdltests/interoptestround1/
wsdltests/interoptestround1/client/ wsdltests/interoptestround1/server/
Added: webservices/mirae/trunk/tests/functional/client/calculator/calculator.jad
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/calculator/calculator.jad?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/client/calculator/calculator.jad (added)
+++ webservices/mirae/trunk/tests/functional/client/calculator/calculator.jad Thu Feb 3 04:39:48 2005
@@ -0,0 +1,6 @@
+MIDlet-Jar-URL: calculator.jar
+MIDlet-Jar-Size: 3357
+MIDlet-Name: CalcClient
+MIDlet-Vendor: hSenid International
+MIDlet-Version: 1.0
+MIDlet-1: CalcClient, , CalClientMIDLet
Added: webservices/mirae/trunk/tests/functional/client/calculator/calculator.jar
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/calculator/calculator.jar?view=auto&rev=151149
==============================================================================
Binary file - no diff available.
Propchange: webservices/mirae/trunk/tests/functional/client/calculator/calculator.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/mirae/trunk/tests/functional/client/point/PointClientMIDLet.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/point/PointClientMIDLet.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/client/point/PointClientMIDLet.java (added)
+++ webservices/mirae/trunk/tests/functional/client/point/PointClientMIDLet.java Thu Feb 3 04:39:48 2005
@@ -0,0 +1,175 @@
+/* -*- Mirae -*- */
+/*
+ * Copyright 2003-2004 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.
+ *
+ *
+ * @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+ *
+ */
+
+import javax.microedition.lcdui.Alert;
+import javax.microedition.lcdui.AlertType;
+import javax.microedition.lcdui.Command;
+import javax.microedition.lcdui.CommandListener;
+import javax.microedition.lcdui.Display;
+import javax.microedition.lcdui.Displayable;
+import javax.microedition.lcdui.Form;
+import javax.microedition.lcdui.StringItem;
+import javax.microedition.midlet.MIDlet;
+import javax.microedition.midlet.MIDletStateChangeException;
+
+import ws_mobile_point.Point;
+import ws_mobile_point.PointStub;
+
+public class PointClientMIDLet extends MIDlet implements CommandListener, Runnable{
+
+ public static StringItem stResult;
+
+ private Display display;
+ private Form form;
+ private Command quitCommand,sendCommand,backCommand;
+ private boolean isSafeToExit;
+ public String result;
+ boolean gotResult=false;
+
+ private StringItem tf;
+
+ public PointClientMIDLet() {
+ setting();
+ }
+
+ public void setting(){
+ stResult =new StringItem("Result:", "");
+
+ display =Display.getDisplay(this);
+
+ form = new Form("Access Web Service");
+ quitCommand=new Command("Quit",Command.CANCEL,1);
+ sendCommand =new Command("Send",Command.OK,2);
+
+ tf=new StringItem("Method: ","Click \"SEND\" to send 2 points for adding");
+ form.addCommand(quitCommand);
+ form.addCommand(sendCommand);
+
+ form.append(tf);
+
+ form.setCommandListener(this);
+ isSafeToExit=true;
+ }
+
+ protected void startApp() throws MIDletStateChangeException {
+ display.setCurrent(form);
+ }
+
+ protected void pauseApp() {
+ }
+
+ protected void destroyApp(boolean unconditional) throws MIDletStateChangeException {
+ if (!unconditional){
+ throw new MIDletStateChangeException();
+ }
+ }
+
+ public void commandAction(Command command, Displayable displayable) {
+
+ if(command==quitCommand){
+ try{
+ destroyApp(isSafeToExit);
+ notifyDestroyed();
+ System.gc();
+ }
+ catch (MIDletStateChangeException Error){
+ Alert alert = new Alert("Busy", "Please try again.", null, AlertType.ERROR);
+ alert.setTimeout(1500);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+
+ if(command==backCommand){
+ System.gc();
+ this.setting();
+ try{
+ startApp();
+ }
+ catch (Exception e){
+ Alert alert = new Alert("Busy", e.getMessage(), null, AlertType.ERROR);
+ alert.setTimeout(1500);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+
+
+
+ else if(command==sendCommand){
+ try{
+ form.removeCommand(sendCommand);
+ form.removeCommand(quitCommand);
+
+ backCommand =new Command("Back",Command.SCREEN,1);
+ form.addCommand(backCommand);
+
+ Thread me =new Thread(this);
+ me.start();
+ }
+ catch(Exception e){
+ Alert alert = new Alert("Error", e.getMessage(), null, AlertType.ERROR);
+ alert.setTimeout(5000);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+ else {
+ try{
+ notifyDestroyed();
+ destroyApp(true);
+ }catch(MIDletStateChangeException e){}
+ }
+ }
+
+
+
+ public void run(){
+ try{
+
+ Point p1 = new Point(20,4);
+ Point p2 = new Point(10,3);
+
+ PointStub stub =new PointStub();
+ Point p=stub.addPoint(p1,p2);
+
+ result=p.getX()+ " , "+ p.getY();
+
+ stResult.setText(result);
+
+ form.append(stResult);
+ gotResult=true;
+
+
+
+ }catch(Exception e){
+ e.printStackTrace();
+ String faultString=null;
+
+
+ Alert alert = new Alert("Error", e.toString(), null, AlertType.ERROR);
+ alert.setTimeout(5000);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+
+ }
+ }
+}
Added: webservices/mirae/trunk/tests/functional/client/point/build.xml
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/point/build.xml?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/client/point/build.xml (added)
+++ webservices/mirae/trunk/tests/functional/client/point/build.xml Thu Feb 3 04:39:48 2005
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+
+<!--
+# -*- Mirae -*-
+#
+# Copyright 2003-2004 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.
+#
+#
+# @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+#
+#-->
+
+
+<project name="point" default="build" basedir=".">
+
+ <!-- Define the Wireless Toolkit home directory. Needed by the tasks. -->
+ <property file="../../../../system.properties"/>
+
+ <fileset dir="${mirae.home.bin}" id="wsdl2ws_j2me_jar">
+ <include name="wsdl2ws_j2me.jar"/>
+ </fileset>
+
+ <fileset dir="${j2me-home}/lib" id="j2mejar">
+ <include name="**/*.jar"/>
+ </fileset>
+
+
+ <taskdef resource="antenna.properties" />
+
+ <target name="build">
+
+ <!-- Create a JAD file. -->
+ <wtkjad jadfile="point.jad"
+ jarfile="point.jar"
+ name="PointClient"
+ vendor="hSenid International"
+ version="1.0">
+ <midlet name="PointClient" class="PointClientMIDLet"/>
+ </wtkjad>
+
+ <path id="this.classpath">
+ <pathelement location="${mirae.home}/build/classes/mirae"/>
+ <pathelement location="${test.dir}/functional/client"/>
+ <fileset refid="wsdl2ws_j2me_jar"/>
+ <fileset refid="j2mejar"/>
+ </path>
+
+ <!-- Compile-->
+ <wtkbuild srcdir="."
+ destdir="${test.dir}/functional/client"
+ preverify="false">
+ <classpath refid="this.classpath"/>
+ </wtkbuild>
+
+ <!-- Package and Preverify the result-->
+ <wtkpackage jarfile="point.jar"
+ jadfile="point.jad"
+ obfuscate="false"
+ preverify="false">
+ <fileset file="${test.dir}/functional/client/PointClientMIDLet.class"/>
+ </wtkpackage>
+
+ <!-- Preverify. -->
+ <wtkpreverify jarfile="point.jar"
+ jadfile="point.jad"
+ classpathref="this.classpath"/>
+
+ <!-- Start the MIDlet suite. For the time being I put
+ wait=false -->
+ <!--<wtkrun jadfile="point.jad" device="DefaultColorPhone" wait="false" classpathref="this.classpath"/>-->
+
+ </target>
+</project>
Added: webservices/mirae/trunk/tests/functional/client/point/point.jad
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/point/point.jad?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/client/point/point.jad (added)
+++ webservices/mirae/trunk/tests/functional/client/point/point.jad Thu Feb 3 04:39:48 2005
@@ -0,0 +1,6 @@
+MIDlet-Jar-URL: point.jar
+MIDlet-Jar-Size: 3424
+MIDlet-Name: PointClient
+MIDlet-Vendor: hSenid International
+MIDlet-Version: 1.0
+MIDlet-1: PointClient, , PointClientMIDLet
Added: webservices/mirae/trunk/tests/functional/client/point/point.jar
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/point/point.jar?view=auto&rev=151149
==============================================================================
Binary file - no diff available.
Propchange: webservices/mirae/trunk/tests/functional/client/point/point.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/mirae/trunk/tests/functional/client/wst/StudentClientMIDLet.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/wst/StudentClientMIDLet.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/client/wst/StudentClientMIDLet.java (added)
+++ webservices/mirae/trunk/tests/functional/client/wst/StudentClientMIDLet.java Thu Feb 3 04:39:48 2005
@@ -0,0 +1,153 @@
+import javax.microedition.lcdui.Alert;
+import javax.microedition.lcdui.AlertType;
+import javax.microedition.lcdui.Command;
+import javax.microedition.lcdui.CommandListener;
+import javax.microedition.lcdui.Display;
+import javax.microedition.lcdui.Displayable;
+import javax.microedition.lcdui.Form;
+import javax.microedition.lcdui.Gauge;
+import javax.microedition.lcdui.StringItem;
+import javax.microedition.midlet.MIDlet;
+import javax.microedition.midlet.MIDletStateChangeException;
+
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.DefaultHandler;
+
+import example8.Student;
+import example8.StudentOpStub;
+
+
+public class StudentClientMIDLet extends MIDlet implements CommandListener, Runnable{
+
+
+ public static StringItem stResult;
+
+ private Display display;
+ private Form form;
+ private Command quitCommand,sendCommand,backCommand;
+ private boolean isSafeToExit;
+ public String result;
+ boolean gotResult=false;
+
+ private StringItem tf;
+
+ public StudentClientMIDLet() {
+ setting();
+ }
+
+ public void setting(){
+ stResult =new StringItem("Result:", "");
+
+ display =Display.getDisplay(this);
+
+ form = new Form("Access Web Service");
+ quitCommand=new Command("Quit",Command.CANCEL,1);
+ sendCommand =new Command("Send",Command.OK,2);
+
+ tf=new StringItem("Method: ","Click \"SEND\" to send 2 points for adding");
+ form.addCommand(quitCommand);
+ form.addCommand(sendCommand);
+
+ form.append(tf);
+
+ form.setCommandListener(this);
+ isSafeToExit=true;
+ }
+
+ protected void startApp() throws MIDletStateChangeException {
+ display.setCurrent(form);
+ }
+
+ protected void pauseApp() {
+ }
+
+ protected void destroyApp(boolean unconditional) throws MIDletStateChangeException {
+ if (!unconditional){
+ throw new MIDletStateChangeException();
+ }
+ }
+
+ public void commandAction(Command command, Displayable displayable) {
+
+ if(command==quitCommand){
+ try{
+ destroyApp(isSafeToExit);
+ notifyDestroyed();
+ System.gc();
+ }
+ catch (MIDletStateChangeException Error){
+ Alert alert = new Alert("Busy", "Please try again.", null, AlertType.ERROR);
+ alert.setTimeout(1500);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+
+ if(command==backCommand){
+ System.gc();
+ this.setting();
+ try{
+ startApp();
+ }
+ catch (Exception e){
+ Alert alert = new Alert("Busy", e.getMessage(), null, AlertType.ERROR);
+ alert.setTimeout(1500);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+
+
+
+ else if(command==sendCommand){
+ try{
+ form.removeCommand(sendCommand);
+ form.removeCommand(quitCommand);
+
+ backCommand =new Command("Back",Command.SCREEN,1);
+ form.addCommand(backCommand);
+
+ Thread me =new Thread(this);
+ me.start();
+
+ }
+ catch(Exception e){
+ Alert alert = new Alert("Error", e.getMessage(), null, AlertType.ERROR);
+ alert.setTimeout(5000);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+ else {
+ try{
+ notifyDestroyed();
+ destroyApp(true);
+ }catch(MIDletStateChangeException e){}
+ }
+ }
+
+
+
+ public void run(){
+ try{
+
+ StudentOpStub stub=new StudentOpStub();
+ Student st= stub.getStudentObj("test222222");
+ stResult.setText(st.getName()+ " "+ st.getDetail()[0]+ " " + st.getDetail()[1]);
+
+ form.append(stResult);
+ gotResult=true;
+
+ }catch(Exception e){
+ e.printStackTrace();
+
+ Alert alert = new Alert("Error", e.toString(), null, AlertType.ERROR);
+ alert.setTimeout(5000);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+
+ }
+ }
+
+}
Added: webservices/mirae/trunk/tests/functional/client/wst/build.xml
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/wst/build.xml?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/client/wst/build.xml (added)
+++ webservices/mirae/trunk/tests/functional/client/wst/build.xml Thu Feb 3 04:39:48 2005
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="iso-8859-1" ?>
+
+<!--
+# -*- Mirae -*-
+#
+# Copyright 2003-2004 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.
+#
+#
+# @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+#
+#-->
+
+<project name="wst" default="build" basedir=".">
+
+ <!-- Define the Wireless Toolkit home directory. Needed by the tasks. -->
+ <property file="../../../../system.properties"/>
+
+ <fileset dir="${mirae.home.bin}" id="wsdl2ws_j2me_jar">
+ <include name="wsdl2ws_j2me.jar"/>
+ </fileset>
+
+ <fileset dir="${j2me-home}/lib" id="j2mejar">
+ <include name="**/*.jar"/>
+ </fileset>
+
+ <taskdef resource="antenna.properties" />
+
+ <target name="build">
+
+ <!-- Create a JAD file. -->
+ <wtkjad jadfile="wst.jad"
+ jarfile="wst.jar"
+ name="wst"
+ vendor="wst"
+ version="wst">
+ <midlet name="wst" class="StudentClientMIDLet"/>
+ </wtkjad>
+
+ <path id="this.classpath">
+ <pathelement location="${mirae.home}/build/classes/mirae"/>
+ <pathelement location="${test.dir}/functional/client"/>
+ <fileset refid="wsdl2ws_j2me_jar"/>
+ <fileset refid="j2mejar"/>
+ </path>
+
+ <!-- Compile-->
+ <wtkbuild srcdir="."
+ destdir="${test.dir}/functional/client"
+ preverify="false">
+ <classpath refid="this.classpath"/>
+ </wtkbuild>
+
+ <!-- Package and Preverify the result-->
+ <wtkpackage jarfile="wst.jar"
+ jadfile="wst.jad"
+ obfuscate="false"
+ preverify="false">
+ <fileset file="${test.dir}/functional/client/StudentClientMIDLet.class"/>
+ </wtkpackage>
+
+ <!-- Preverify. -->
+ <wtkpreverify jarfile="wst.jar"
+ jadfile="wst.jad"
+ classpathref="this.classpath"/>
+
+ <!-- Start the MIDlet suite. For the time being I put
+ wait=false -->
+ <!--<wtkrun jadfile="wst.jad" device="DefaultColorPhone" wait="false" classpathref="this.classpath"/>-->
+
+ </target>
+</project>
Added: webservices/mirae/trunk/tests/functional/client/wst/wst.jad
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/wst/wst.jad?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/client/wst/wst.jad (added)
+++ webservices/mirae/trunk/tests/functional/client/wst/wst.jad Thu Feb 3 04:39:48 2005
@@ -0,0 +1,6 @@
+MIDlet-Jar-URL: wst.jar
+MIDlet-Jar-Size: 3312
+MIDlet-Name: wst
+MIDlet-Vendor: wst
+MIDlet-Version: wst
+MIDlet-1: wst, , StudentClientMIDLet
Added: webservices/mirae/trunk/tests/functional/client/wst/wst.jar
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/client/wst/wst.jar?view=auto&rev=151149
==============================================================================
Binary file - no diff available.
Propchange: webservices/mirae/trunk/tests/functional/client/wst/wst.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/mirae/trunk/tests/functional/readme
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/readme?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/readme (added)
+++ webservices/mirae/trunk/tests/functional/readme Thu Feb 3 04:39:48 2005
@@ -0,0 +1,56 @@
+# -*- Mirae -*-
+#
+# Copyright 2003-2004 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.
+#
+#
+# @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+#
+#
+
+
+This folder contains functional tests. What I mean by functional tests here is
+for any wsdl in wsdls folder, provided that client is pre-created and put into
+appropriate place and appropriate entry added into this build.file then this will
+build the stubs, client and run against the desired service.
+
+
+I explain below what you need to do to add a test yourself
+
+1) Put your wsdl into wsdl folder
+
+2) Create a folder in client folder, Say "myclient"
+ and write your client midlet in it, say MyClient.java
+
+3) copy the sample build.xml_client_sample file in this folder there and
+ rename it to build.xml and customize it. ie. You need to changed the places
+ where it is indicated by <change this>
+
+4) in the build.xml file in this folder add following entries(after
+ appropriate changes in your entry)
+
+ in generate-sources tag add
+
+ <java classname="org.apache.mirae.wsdl2ws.WSDL2Ws">
+ <arg value="tests/functional/wsdl/<your wsdl>.wsdl"/>
+ <classpath refid="wsdl2ws.classpath" />
+ </java>
+
+ in standard tag add
+
+ <ant dir="client/<your client folder name" />
+
+Now run ant from the root folder and test whether your test work fine
+
+
Added: webservices/mirae/trunk/tests/functional/wsdl/CATrafficService.wsdl
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/tests/functional/wsdl/CATrafficService.wsdl?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/tests/functional/wsdl/CATrafficService.wsdl (added)
+++ webservices/mirae/trunk/tests/functional/wsdl/CATrafficService.wsdl Thu Feb 3 04:39:48 2005
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<definitions name="CATrafficService" targetNamespace="http://www.xmethods.net/sd/CATrafficService.wsdl" xmlns:tns="http://www.xmethods.net/sd/CATrafficService.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <message name="getTrafficRequest">
+ <part name="hwynums" type="xsd:string"/>
+ </message>
+ <message name="getTrafficResponse">
+ <part name="return" type="xsd:string"/>
+ </message>
+ <portType name="CATrafficPortType">
+ <operation name="getTraffic">
+ <input message="tns:getTrafficRequest" name="getTraffic"/>
+ <output message="tns:getTrafficResponse" name="getTrafficResponse"/>
+ </operation>
+ </portType>
+ <binding name="CATrafficBinding" type="tns:CATrafficPortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="getTraffic">
+ <soap:operation soapAction="" />
+ <input name="getTraffic">
+ <soap:body use="encoded" namespace="urn:xmethods-CATraffic" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output name="getTrafficResponse">
+ <soap:body use="encoded" namespace="urn:xmethods-CATraffic" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="CATrafficService">
+ <documentation>Provides information on California Highway Conditions.</documentation>
+ <port name="CATrafficPort" binding="tns:CATrafficBinding">
+ <soap:address location="http://services.xmethods.net:80/soap/servlet/rpcrouter"/>
+ </port>
+ </service>
+</definitions>
Propchange: webservices/mirae/trunk/tests/functional/wsdl/CATrafficService.wsdl
------------------------------------------------------------------------------
svn:executable = *