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:10 UTC

svn commit: r151149 [3/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/samples/documentsamples/calculator/calculator/axis/localhost/_mul.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_mul.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_mul.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_mul.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,65 @@
+package calculator.axis.localhost;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class _mul  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private int arg_0_2;
+	private int arg_1_2;
+
+	public _mul(){
+	}
+	public _mul(int arg_0_2, int arg_1_2){
+		this.arg_0_2 = arg_0_2;
+		this.arg_1_2 = arg_1_2;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("arg_0_2")) {
+					this.arg_0_2= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (qName.equals("arg_1_2")) {
+					this.arg_1_2= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<arg_0_2>");
+			buffer.append(String.valueOf(arg_0_2));
+		buffer.append("</arg_0_2>");
+		buffer.append("<arg_1_2>");
+			buffer.append(String.valueOf(arg_1_2));
+		buffer.append("</arg_1_2>");
+	}
+
+	public void setArg_0_2(int arg_0_2){
+		this.arg_0_2 = arg_0_2;
+	}
+	public int getArg_0_2(){
+		return arg_0_2;
+	}
+	public void setArg_1_2(int arg_1_2){
+		this.arg_1_2 = arg_1_2;
+	}
+	public int getArg_1_2(){
+		return arg_1_2;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_mulResponse.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_mulResponse.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_mulResponse.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_mulResponse.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,52 @@
+package calculator.axis.localhost;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class _mulResponse  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private int mulReturn;
+
+	public _mulResponse(){
+	}
+	public _mulResponse(int mulReturn){
+		this.mulReturn = mulReturn;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("mulReturn")) {
+					this.mulReturn= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<mulReturn>");
+			buffer.append(String.valueOf(mulReturn));
+		buffer.append("</mulReturn>");
+	}
+
+	public void setMulReturn(int mulReturn){
+		this.mulReturn = mulReturn;
+	}
+	public int getMulReturn(){
+		return mulReturn;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_sub.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_sub.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_sub.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_sub.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,65 @@
+package calculator.axis.localhost;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class _sub  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private int arg_0_1;
+	private int arg_1_1;
+
+	public _sub(){
+	}
+	public _sub(int arg_0_1, int arg_1_1){
+		this.arg_0_1 = arg_0_1;
+		this.arg_1_1 = arg_1_1;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("arg_0_1")) {
+					this.arg_0_1= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (qName.equals("arg_1_1")) {
+					this.arg_1_1= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<arg_0_1>");
+			buffer.append(String.valueOf(arg_0_1));
+		buffer.append("</arg_0_1>");
+		buffer.append("<arg_1_1>");
+			buffer.append(String.valueOf(arg_1_1));
+		buffer.append("</arg_1_1>");
+	}
+
+	public void setArg_0_1(int arg_0_1){
+		this.arg_0_1 = arg_0_1;
+	}
+	public int getArg_0_1(){
+		return arg_0_1;
+	}
+	public void setArg_1_1(int arg_1_1){
+		this.arg_1_1 = arg_1_1;
+	}
+	public int getArg_1_1(){
+		return arg_1_1;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_subResponse.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_subResponse.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_subResponse.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/calculator/calculator/axis/localhost/_subResponse.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,52 @@
+package calculator.axis.localhost;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class _subResponse  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private int subReturn;
+
+	public _subResponse(){
+	}
+	public _subResponse(int subReturn){
+		this.subReturn = subReturn;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("subReturn")) {
+					this.subReturn= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<subReturn>");
+			buffer.append(String.valueOf(subReturn));
+		buffer.append("</subReturn>");
+	}
+
+	public void setSubReturn(int subReturn){
+		this.subReturn = subReturn;
+	}
+	public int getSubReturn(){
+		return subReturn;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/calculator/org/apache/mirae/builtin/simpletypes/IntParam.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/calculator/org/apache/mirae/builtin/simpletypes/IntParam.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/calculator/org/apache/mirae/builtin/simpletypes/IntParam.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/calculator/org/apache/mirae/builtin/simpletypes/IntParam.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,93 @@
+/*
+ * Copyright 2001-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.
+ */
+
+
+package org.apache.mirae.builtin.simpletypes;
+
+import java.io.IOException;
+
+
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+
+public class IntParam implements InOutParameter {
+    private int param;
+
+    public IntParam() {
+    }
+    
+    public IntParam(String value) {
+    	if (value != null)
+	         this.param = Integer.parseInt(value.trim());	
+    }
+     
+    public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+    	if (value != null)
+	         this.param = Integer.parseInt(value.trim());	
+    	System.out.println(param);
+	}
+
+    public IntParam(int param) {
+        this.param = param;
+    }
+
+	public IntParam(Integer param) {
+		this.param = param.intValue();
+	}
+	
+    public void serialize(StringBuffer buffer) throws IOException,Exception {
+         buffer.append(Integer.toString(param));
+       
+    }
+
+    /**
+     * @return
+     */
+    public int getParam() {
+        return param;
+    }
+
+	public String toString() {
+		return Integer.toString(param);
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
+	 */
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#endElement(java.lang.String, java.lang.String, java.lang.String)
+	 */
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#createArray()
+	 */
+	public void createArray() throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+		
+}

Added: webservices/mirae/trunk/samples/documentsamples/echo/SimpleArrayDocMIDLet.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/echo/SimpleArrayDocMIDLet.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/echo/SimpleArrayDocMIDLet.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/echo/SimpleArrayDocMIDLet.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,170 @@
+/*
+ * Copyright 2001-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.
+ */
+
+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 org.soapinterop.ArrayTestPortTypeStub;
+import org.soapinterop.IntArrayType;
+import org.soapinterop._echoIntArray;
+import org.soapinterop._echoIntArrayResponse;
+
+public class SimpleArrayDocMIDLet 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 SimpleArrayDocMIDLet() {
+		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 int array and get echo int array");
+		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);
+			}
+		}
+
+		else 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 {
+
+			ArrayTestPortTypeStub stub = new ArrayTestPortTypeStub();
+			_echoIntArray req = new _echoIntArray();
+			IntArrayType arr = new IntArrayType();
+			int[] a = { 111, 222, 333, 444, 555 };
+			arr.setIntItem(a);
+			req.setArg_0_0(arr);
+			_echoIntArrayResponse res = stub.echoIntArray(req);
+			int[] result = res.getEchoIntArrayReturn().getIntItem();
+
+			stResult.setText("" + result[0] + " " + result[1] + " " + result[2]);
+			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);
+		}
+	}
+}
\ No newline at end of file

Added: webservices/mirae/trunk/samples/documentsamples/echo/org/apache/mirae/builtin/simpletypes/IntParam.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/echo/org/apache/mirae/builtin/simpletypes/IntParam.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/echo/org/apache/mirae/builtin/simpletypes/IntParam.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/echo/org/apache/mirae/builtin/simpletypes/IntParam.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,93 @@
+/*
+ * Copyright 2001-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.
+ */
+
+
+package org.apache.mirae.builtin.simpletypes;
+
+import java.io.IOException;
+
+
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+
+public class IntParam implements InOutParameter {
+    private int param;
+
+    public IntParam() {
+    }
+    
+    public IntParam(String value) {
+    	if (value != null)
+	         this.param = Integer.parseInt(value.trim());	
+    }
+     
+    public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+    	if (value != null)
+	         this.param = Integer.parseInt(value.trim());	
+    	System.out.println(param);
+	}
+
+    public IntParam(int param) {
+        this.param = param;
+    }
+
+	public IntParam(Integer param) {
+		this.param = param.intValue();
+	}
+	
+    public void serialize(StringBuffer buffer) throws IOException,Exception {
+         buffer.append(Integer.toString(param));
+       
+    }
+
+    /**
+     * @return
+     */
+    public int getParam() {
+        return param;
+    }
+
+	public String toString() {
+		return Integer.toString(param);
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
+	 */
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#endElement(java.lang.String, java.lang.String, java.lang.String)
+	 */
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#createArray()
+	 */
+	public void createArray() throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+		
+}

Added: webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/ArrayTestPortTypeIF.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/ArrayTestPortTypeIF.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/ArrayTestPortTypeIF.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/ArrayTestPortTypeIF.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,9 @@
+package org.soapinterop;
+/*This interface is automatically generated by 
+*WSDL2WS_J2ME tool
+*The client side representation of the web service. 
+*/
+
+public interface ArrayTestPortTypeIF   {
+	public org.soapinterop._echoIntArrayResponse echoIntArray(org.soapinterop._echoIntArray param0)throws Exception;
+}

Added: webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/ArrayTestPortTypeStub.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/ArrayTestPortTypeStub.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/ArrayTestPortTypeStub.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/ArrayTestPortTypeStub.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,37 @@
+package org.soapinterop;
+/*This class is automatically generated by 
+*WSDL2WS_J2ME tool
+*The client side stub of the document literal web service. 
+*/
+
+public class ArrayTestPortTypeStub implements org.soapinterop.ArrayTestPortTypeIF{
+
+	private java.lang.String enduri;
+	private javax.xml.namespace.QName SOAPAction;
+	public ArrayTestPortTypeStub() throws Exception{
+		this.enduri="http://localhost:8080/axis/services/arrayTest";
+		this.SOAPAction = new javax.xml.namespace.QName("array");
+	}
+
+	public ArrayTestPortTypeStub(java.lang.String enduri) throws Exception {
+		this.enduri = enduri;
+		this.SOAPAction = new javax.xml.namespace.QName("array");
+	}
+
+	public org.soapinterop._echoIntArrayResponse  echoIntArray(org.soapinterop._echoIntArray param0)throws Exception{
+		javax.xml.namespace.QName methodName = new javax.xml.namespace.QName("http://soapinterop.org","echoIntArray");
+		org.apache.mirae.xml.rpc.Call call = new org.apache.mirae.xml.rpc.Call();
+		call.setOperationName(methodName);
+		call.setTargetEndpointAddress(this.enduri);
+		call.setStyle(org.apache.mirae.util.Constants.STYLE_DOCUMENT);
+		call.setSoapActonURI(SOAPAction);
+		call.addParameter(param0,"param0",new javax.xml.namespace.QName("http://soapinterop.org",">echoIntArray"));
+		call.setReturnCategory(org.apache.mirae.util.Constants.TYPE_DOCLIT);
+		call.setReturnType( new org.soapinterop._echoIntArrayResponse());
+		call.setValidationCode("echoIntArrayResponse");
+
+		org.soapinterop._echoIntArrayResponse res = (org.soapinterop._echoIntArrayResponse)call.invoke();
+		 return res;
+
+		}
+}

Added: webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/IntArrayType.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/IntArrayType.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/IntArrayType.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/IntArrayType.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,68 @@
+package org.soapinterop;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class IntArrayType  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private int[] intItem;
+	private int intItemlength=0;
+
+	public IntArrayType(){
+	}
+	public IntArrayType(int[] intItem){
+		this.intItem = intItem;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("intItem")) {
+							this.intItem[intItemlength-1]= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("intItem")) {
+					intItemlength+=1;
+					if(intItemlength==1){
+							this.intItem= (new int[1]);
+						}else{
+							int[] newParam= new int[intItemlength];
+							System.arraycopy(intItem,0,newParam,0,intItem.length);
+ 							intItem= newParam;
+						}
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		for (int i = 0; i <intItem.length; i++) {
+		buffer.append("<intItem>");
+			buffer.append(String.valueOf(intItem[i]));
+		buffer.append("</intItem>\n");
+	}
+	}
+
+	public void setIntItem(int[] intItem){
+		this.intItem = intItem;
+	}
+	public int[] getIntItem(){
+		return intItem;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/_echoIntArray.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/_echoIntArray.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/_echoIntArray.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/_echoIntArray.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,61 @@
+package org.soapinterop;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class _echoIntArray  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private org.soapinterop.IntArrayType arg_0_0;
+
+	public _echoIntArray(){
+	}
+	public _echoIntArray(org.soapinterop.IntArrayType arg_0_0){
+		this.arg_0_0 = arg_0_0;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("arg_0_0")) {
+					 return;
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("arg_0_0")) {
+					this.arg_0_0= (new org.soapinterop.IntArrayType());
+					childObj=arg_0_0;
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<arg_0_0>");
+		if(this.arg_0_0!=null)
+			arg_0_0.serialize(buffer);
+		buffer.append("</arg_0_0>\n");
+
+	}
+
+	public void setArg_0_0(org.soapinterop.IntArrayType arg_0_0){
+		this.arg_0_0 = arg_0_0;
+	}
+	public org.soapinterop.IntArrayType getArg_0_0(){
+		return arg_0_0;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/_echoIntArrayResponse.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/_echoIntArrayResponse.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/_echoIntArrayResponse.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/echo/org/soapinterop/_echoIntArrayResponse.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,61 @@
+package org.soapinterop;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class _echoIntArrayResponse  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private org.soapinterop.IntArrayType echoIntArrayReturn;
+
+	public _echoIntArrayResponse(){
+	}
+	public _echoIntArrayResponse(org.soapinterop.IntArrayType echoIntArrayReturn){
+		this.echoIntArrayReturn = echoIntArrayReturn;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("echoIntArrayReturn")) {
+					 return;
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("echoIntArrayReturn")) {
+					this.echoIntArrayReturn= (new org.soapinterop.IntArrayType());
+					childObj=echoIntArrayReturn;
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<echoIntArrayReturn>");
+		if(this.echoIntArrayReturn!=null)
+			echoIntArrayReturn.serialize(buffer);
+		buffer.append("</echoIntArrayReturn>\n");
+
+	}
+
+	public void setEchoIntArrayReturn(org.soapinterop.IntArrayType echoIntArrayReturn){
+		this.echoIntArrayReturn = echoIntArrayReturn;
+	}
+	public org.soapinterop.IntArrayType getEchoIntArrayReturn(){
+		return echoIntArrayReturn;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/DocLitClientMIDLet.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/DocLitClientMIDLet.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/DocLitClientMIDLet.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/DocLitClientMIDLet.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,179 @@
+/*
+ * Copyright 2001-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.
+ */
+
+import jSR172UseCases.com.sun.www.EmployeeDBPortStub;
+
+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 xsd.JSR172AppendixA.com.sun.www.EmployeeType;
+import xsd.JSR172AppendixA.com.sun.www.NameArrayType;
+import xsd.JSR172AppendixA.com.sun.www.NameType;
+
+public class DocLitClientMIDLet 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 DocLitClientMIDLet() {
+		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 name arrays and get employee arrays");
+		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);
+			}
+		}
+
+		else 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 {
+			form.append(stResult);
+			EmployeeDBPortStub stub = new EmployeeDBPortStub();
+
+			NameType[] name = new NameType[2];
+			name[0] = new NameType();
+			name[0].setFirstName("jhgfsid");
+			name[0].setLastName(":ddd");
+
+			name[1] = new NameType();
+			name[1].setFirstName("fffff");
+			name[1].setLastName(":kkkk");
+
+			NameArrayType arr = new NameArrayType();
+			arr.setName(name);
+
+			EmployeeType[] emp = stub.getEmployees(arr).getEmployee();
+			stResult.setText(stResult.getText() + " "
+					+ emp[0].getEmpName().getFirstName() + " "
+					+ emp[0].getEmpName().getLastName() + " "
+					+ emp[0].getEmpID() + "\n             "
+					+ emp[1].getEmpName().getFirstName() + " "
+					+ emp[1].getEmpName().getLastName() + " "
+					+ emp[1].getEmpID());
+
+			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);
+		}
+	}
+}
\ No newline at end of file

Added: webservices/mirae/trunk/samples/documentsamples/employee/jSR172UseCases/com/sun/www/EmployeeDBPortIF.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/jSR172UseCases/com/sun/www/EmployeeDBPortIF.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/jSR172UseCases/com/sun/www/EmployeeDBPortIF.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/jSR172UseCases/com/sun/www/EmployeeDBPortIF.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,14 @@
+package jSR172UseCases.com.sun.www;
+/*This interface is automatically generated by 
+*WSDL2WS_J2ME tool
+*The client side representation of the web service. 
+*/
+
+public interface EmployeeDBPortIF   {
+	public xsd.JSR172AppendixA.com.sun.www.IntType getEmployeeCount(xsd.JSR172AppendixA.com.sun.www.IntType param0)throws Exception;
+	public xsd.JSR172AppendixA.com.sun.www.BooleanType addGroups(xsd.JSR172AppendixA.com.sun.www._addGroups param0)throws Exception;
+	public xsd.JSR172AppendixA.com.sun.www.BooleanType isManager(xsd.JSR172AppendixA.com.sun.www.NameType param0)throws Exception;
+	public xsd.JSR172AppendixA.com.sun.www.BooleanType promoteEmployee(xsd.JSR172AppendixA.com.sun.www.EmployeeType param0)throws Exception;
+	public xsd.JSR172AppendixA.com.sun.www.EmployeeArrayType getEmployees(xsd.JSR172AppendixA.com.sun.www.NameArrayType param0)throws Exception;
+	public xsd.JSR172AppendixA.com.sun.www.BooleanType scheduleMtg(xsd.JSR172AppendixA.com.sun.www.EmployeeArrayType param0)throws Exception;
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/jSR172UseCases/com/sun/www/EmployeeDBPortStub.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/jSR172UseCases/com/sun/www/EmployeeDBPortStub.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/jSR172UseCases/com/sun/www/EmployeeDBPortStub.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/jSR172UseCases/com/sun/www/EmployeeDBPortStub.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,122 @@
+package jSR172UseCases.com.sun.www;
+/*This class is automatically generated by 
+*WSDL2WS_J2ME tool
+*The client side stub of the document literal web service. 
+*/
+
+public class EmployeeDBPortStub implements jSR172UseCases.com.sun.www.EmployeeDBPortIF{
+
+	private java.lang.String enduri;
+	private javax.xml.namespace.QName SOAPAction;
+	public EmployeeDBPortStub() throws Exception{
+		this.enduri="http://localhost:8080/axis/services/EmployeeDatabase";
+		this.SOAPAction = new javax.xml.namespace.QName("EmployeeDatabase");
+	}
+
+	public EmployeeDBPortStub(java.lang.String enduri) throws Exception {
+		this.enduri = enduri;
+		this.SOAPAction = new javax.xml.namespace.QName("EmployeeDatabase");
+	}
+
+	public xsd.JSR172AppendixA.com.sun.www.IntType  getEmployeeCount(xsd.JSR172AppendixA.com.sun.www.IntType param0)throws Exception{
+		javax.xml.namespace.QName methodName = new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","getEmployeeCount");
+		org.apache.mirae.xml.rpc.Call call = new org.apache.mirae.xml.rpc.Call();
+		call.setOperationName(methodName);
+		call.setTargetEndpointAddress(this.enduri);
+		call.setStyle(org.apache.mirae.util.Constants.STYLE_DOCUMENT);
+		call.setSoapActonURI(SOAPAction);
+		call.addParameter(param0,"param0",new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","IntType"));
+		call.setReturnCategory(org.apache.mirae.util.Constants.TYPE_DOCLIT);
+		call.setReturnType( new xsd.JSR172AppendixA.com.sun.www.IntType());
+		call.setValidationCode("getEmployeeCountResponse");
+
+		xsd.JSR172AppendixA.com.sun.www.IntType res = (xsd.JSR172AppendixA.com.sun.www.IntType)call.invoke();
+		 return res;
+
+		}
+
+	public xsd.JSR172AppendixA.com.sun.www.BooleanType  addGroups(xsd.JSR172AppendixA.com.sun.www._addGroups param0)throws Exception{
+		javax.xml.namespace.QName methodName = new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","addGroups");
+		org.apache.mirae.xml.rpc.Call call = new org.apache.mirae.xml.rpc.Call();
+		call.setOperationName(methodName);
+		call.setTargetEndpointAddress(this.enduri);
+		call.setStyle(org.apache.mirae.util.Constants.STYLE_DOCUMENT);
+		call.setSoapActonURI(SOAPAction);
+		call.addParameter(param0,"param0",new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd",">addGroups"));
+		call.setReturnCategory(org.apache.mirae.util.Constants.TYPE_DOCLIT);
+		call.setReturnType( new xsd.JSR172AppendixA.com.sun.www.BooleanType());
+		call.setValidationCode("addGroupsResponse");
+
+		xsd.JSR172AppendixA.com.sun.www.BooleanType res = (xsd.JSR172AppendixA.com.sun.www.BooleanType)call.invoke();
+		 return res;
+
+		}
+
+	public xsd.JSR172AppendixA.com.sun.www.BooleanType  isManager(xsd.JSR172AppendixA.com.sun.www.NameType param0)throws Exception{
+		javax.xml.namespace.QName methodName = new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","isManager");
+		org.apache.mirae.xml.rpc.Call call = new org.apache.mirae.xml.rpc.Call();
+		call.setOperationName(methodName);
+		call.setTargetEndpointAddress(this.enduri);
+		call.setStyle(org.apache.mirae.util.Constants.STYLE_DOCUMENT);
+		call.setSoapActonURI(SOAPAction);
+		call.addParameter(param0,"param0",new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","NameType"));
+		call.setReturnCategory(org.apache.mirae.util.Constants.TYPE_DOCLIT);
+		call.setReturnType( new xsd.JSR172AppendixA.com.sun.www.BooleanType());
+		call.setValidationCode("isManagerResponse");
+
+		xsd.JSR172AppendixA.com.sun.www.BooleanType res = (xsd.JSR172AppendixA.com.sun.www.BooleanType)call.invoke();
+		 return res;
+
+		}
+
+	public xsd.JSR172AppendixA.com.sun.www.BooleanType  promoteEmployee(xsd.JSR172AppendixA.com.sun.www.EmployeeType param0)throws Exception{
+		javax.xml.namespace.QName methodName = new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","promoteEmployee");
+		org.apache.mirae.xml.rpc.Call call = new org.apache.mirae.xml.rpc.Call();
+		call.setOperationName(methodName);
+		call.setTargetEndpointAddress(this.enduri);
+		call.setStyle(org.apache.mirae.util.Constants.STYLE_DOCUMENT);
+		call.setSoapActonURI(SOAPAction);
+		call.addParameter(param0,"param0",new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","EmployeeType"));
+		call.setReturnCategory(org.apache.mirae.util.Constants.TYPE_DOCLIT);
+		call.setReturnType( new xsd.JSR172AppendixA.com.sun.www.BooleanType());
+		call.setValidationCode("promoteEmployeeResponse");
+
+		xsd.JSR172AppendixA.com.sun.www.BooleanType res = (xsd.JSR172AppendixA.com.sun.www.BooleanType)call.invoke();
+		 return res;
+
+		}
+
+	public xsd.JSR172AppendixA.com.sun.www.EmployeeArrayType  getEmployees(xsd.JSR172AppendixA.com.sun.www.NameArrayType param0)throws Exception{
+		javax.xml.namespace.QName methodName = new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","getEmployees");
+		org.apache.mirae.xml.rpc.Call call = new org.apache.mirae.xml.rpc.Call();
+		call.setOperationName(methodName);
+		call.setTargetEndpointAddress(this.enduri);
+		call.setStyle(org.apache.mirae.util.Constants.STYLE_DOCUMENT);
+		call.setSoapActonURI(SOAPAction);
+		call.addParameter(param0,"param0",new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","NameArrayType"));
+		call.setReturnCategory(org.apache.mirae.util.Constants.TYPE_DOCLIT);
+		call.setReturnType( new xsd.JSR172AppendixA.com.sun.www.EmployeeArrayType());
+		call.setValidationCode("getEmployeesResponse");
+
+		xsd.JSR172AppendixA.com.sun.www.EmployeeArrayType res = (xsd.JSR172AppendixA.com.sun.www.EmployeeArrayType)call.invoke();
+		 return res;
+
+		}
+
+	public xsd.JSR172AppendixA.com.sun.www.BooleanType  scheduleMtg(xsd.JSR172AppendixA.com.sun.www.EmployeeArrayType param0)throws Exception{
+		javax.xml.namespace.QName methodName = new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","scheduleMtg");
+		org.apache.mirae.xml.rpc.Call call = new org.apache.mirae.xml.rpc.Call();
+		call.setOperationName(methodName);
+		call.setTargetEndpointAddress(this.enduri);
+		call.setStyle(org.apache.mirae.util.Constants.STYLE_DOCUMENT);
+		call.setSoapActonURI(SOAPAction);
+		call.addParameter(param0,"param0",new javax.xml.namespace.QName("http://www.sun.com/JSR172AppendixA.xsd","EmployeeArrayType"));
+		call.setReturnCategory(org.apache.mirae.util.Constants.TYPE_DOCLIT);
+		call.setReturnType( new xsd.JSR172AppendixA.com.sun.www.BooleanType());
+		call.setValidationCode("scheduleMtgResponse");
+
+		xsd.JSR172AppendixA.com.sun.www.BooleanType res = (xsd.JSR172AppendixA.com.sun.www.BooleanType)call.invoke();
+		 return res;
+
+		}
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/BooleanParam.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/BooleanParam.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/BooleanParam.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/BooleanParam.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,97 @@
+/*
+ * Copyright 2001-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.
+ */
+
+package org.apache.mirae.builtin.simpletypes;
+
+import java.io.IOException;
+
+
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+
+public class BooleanParam implements InOutParameter {
+	public boolean param;
+
+	public BooleanParam() {
+	}
+
+	public BooleanParam(String value) throws SAXException {
+		if (value != null)			
+			this.param = value.equals("true")?true:false;  
+	}
+	
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+		if (value != null)			
+			this.param = value.equals("true")?true:false;   		
+	}
+
+	
+
+	public BooleanParam(boolean param) {
+		this.param = param;
+	}
+
+	public BooleanParam(Boolean param) {
+		this.param = param.booleanValue();
+	}
+
+	public void serialize(StringBuffer buffer)throws IOException,Exception {
+			
+			buffer.append(String.valueOf(param));
+		
+	}
+
+	/**
+	 * @return
+	 */
+	public boolean getParam() {
+		return param;
+	}
+
+	/* (non-Javadoc)
+	 * @see java.lang.Object#toString()
+	 */
+	public String toString() {
+		return String.valueOf(param);
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
+	 */
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#endElement(java.lang.String, java.lang.String, java.lang.String)
+	 */
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#createArray()
+	 */
+	public void createArray() throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/IntParam.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/IntParam.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/IntParam.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/IntParam.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,93 @@
+/*
+ * Copyright 2001-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.
+ */
+
+
+package org.apache.mirae.builtin.simpletypes;
+
+import java.io.IOException;
+
+
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+
+public class IntParam implements InOutParameter {
+    private int param;
+
+    public IntParam() {
+    }
+    
+    public IntParam(String value) {
+    	if (value != null)
+	         this.param = Integer.parseInt(value.trim());	
+    }
+     
+    public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+    	if (value != null)
+	         this.param = Integer.parseInt(value.trim());	
+    	System.out.println(param);
+	}
+
+    public IntParam(int param) {
+        this.param = param;
+    }
+
+	public IntParam(Integer param) {
+		this.param = param.intValue();
+	}
+	
+    public void serialize(StringBuffer buffer) throws IOException,Exception {
+         buffer.append(Integer.toString(param));
+       
+    }
+
+    /**
+     * @return
+     */
+    public int getParam() {
+        return param;
+    }
+
+	public String toString() {
+		return Integer.toString(param);
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
+	 */
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#endElement(java.lang.String, java.lang.String, java.lang.String)
+	 */
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#createArray()
+	 */
+	public void createArray() throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+		
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/StringParam.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/StringParam.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/StringParam.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/org/apache/mirae/builtin/simpletypes/StringParam.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2001-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.
+ */
+
+package org.apache.mirae.builtin.simpletypes;
+
+import java.io.IOException;
+
+
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+
+
+
+public class StringParam implements InOutParameter {
+	public String param;
+
+	public StringParam() {
+	}
+
+	public StringParam(String param) {
+		this.param = param;
+	}
+	
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+		this.param=value;		
+	}
+
+	public void serialize(StringBuffer buffer) throws IOException,Exception {
+
+			buffer.append(param);
+		
+	}
+
+	public String getParam() {
+		return param;
+	}
+
+	public String toString() {
+		return param;
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
+	 */
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#endElement(java.lang.String, java.lang.String, java.lang.String)
+	 */
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#createArray()
+	 */
+	public void createArray() throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+		
+
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/BooleanType.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/BooleanType.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/BooleanType.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/BooleanType.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,59 @@
+package xsd.JSR172AppendixA.com.sun.www;
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class BooleanType  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private boolean RetVal;
+
+	public BooleanType(){
+	}
+	public BooleanType(boolean RetVal){
+		this.RetVal = RetVal;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("RetVal")) {
+					this.RetVal= new org.apache.mirae.builtin.simpletypes.BooleanParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("RetVal")) {
+					 return;
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<RetVal>");
+			buffer.append(String.valueOf(RetVal));
+		buffer.append("</RetVal>");
+	}
+
+	public void setRetVal(boolean RetVal){
+		this.RetVal = RetVal;
+	}
+	public boolean getRetVal(){
+		return RetVal;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/EmployeeArrayType.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/EmployeeArrayType.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/EmployeeArrayType.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/EmployeeArrayType.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,75 @@
+package xsd.JSR172AppendixA.com.sun.www;
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class EmployeeArrayType  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private xsd.JSR172AppendixA.com.sun.www.EmployeeType[] Employee;
+	private int Employeelength=0;
+
+	public EmployeeArrayType(){
+	}
+	public EmployeeArrayType(xsd.JSR172AppendixA.com.sun.www.EmployeeType[] Employee){
+		this.Employee = Employee;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("Employee")) {
+							 return;
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("Employee")) {
+					Employeelength+=1;
+					if(Employeelength==1){
+							this.Employee= (new xsd.JSR172AppendixA.com.sun.www.EmployeeType[1]);
+							this.Employee[0]= (new xsd.JSR172AppendixA.com.sun.www.EmployeeType());
+							childObj=Employee[0];
+						}else{
+							xsd.JSR172AppendixA.com.sun.www.EmployeeType[] newParam= new xsd.JSR172AppendixA.com.sun.www.EmployeeType[Employeelength];
+							System.arraycopy(Employee,0,newParam,0,Employee.length);
+ 							Employee= newParam;
+							this.Employee[Employeelength-1]= (new xsd.JSR172AppendixA.com.sun.www.EmployeeType());
+							childObj=Employee[Employeelength-1];
+						}
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		for (int i = 0; i <Employee.length; i++) {
+		buffer.append("<Employee>");
+		if(this.Employee[i]!=null){
+			Employee[i].serialize(buffer);
+		buffer.append("</Employee>\n");
+		}
+	}
+	}
+
+	public void setEmployee(xsd.JSR172AppendixA.com.sun.www.EmployeeType[] Employee){
+		this.Employee = Employee;
+	}
+	public xsd.JSR172AppendixA.com.sun.www.EmployeeType[] getEmployee(){
+		return Employee;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/EmployeeType.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/EmployeeType.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/EmployeeType.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/EmployeeType.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,77 @@
+package xsd.JSR172AppendixA.com.sun.www;
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class EmployeeType  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private xsd.JSR172AppendixA.com.sun.www.NameType empName;
+	private int empID;
+
+	public EmployeeType(){
+	}
+	public EmployeeType(xsd.JSR172AppendixA.com.sun.www.NameType empName, int empID){
+		this.empName = empName;
+		this.empID = empID;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("empName")) {
+					 return;
+				}else if (qName.equals("empID")) {
+					this.empID= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("empName")) {
+					this.empName= (new xsd.JSR172AppendixA.com.sun.www.NameType());
+					childObj=empName;
+				}else if (qName.equals("empID")) {
+					 return;
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<empName>");
+		if(this.empName!=null)
+			empName.serialize(buffer);
+		buffer.append("</empName>\n");
+
+		buffer.append("<empID>");
+			buffer.append(String.valueOf(empID));
+		buffer.append("</empID>");
+	}
+
+	public void setEmpName(xsd.JSR172AppendixA.com.sun.www.NameType empName){
+		this.empName = empName;
+	}
+	public xsd.JSR172AppendixA.com.sun.www.NameType getEmpName(){
+		return empName;
+	}
+	public void setEmpID(int empID){
+		this.empID = empID;
+	}
+	public int getEmpID(){
+		return empID;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/IntType.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/IntType.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/IntType.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/IntType.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,59 @@
+package xsd.JSR172AppendixA.com.sun.www;
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class IntType  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private int IntVal;
+
+	public IntType(){
+	}
+	public IntType(int IntVal){
+		this.IntVal = IntVal;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("IntVal")) {
+					this.IntVal= new org.apache.mirae.builtin.simpletypes.IntParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("IntVal")) {
+					 return;
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<IntVal>");
+			buffer.append(String.valueOf(IntVal));
+		buffer.append("</IntVal>");
+	}
+
+	public void setIntVal(int IntVal){
+		this.IntVal = IntVal;
+	}
+	public int getIntVal(){
+		return IntVal;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/NameArrayType.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/NameArrayType.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/NameArrayType.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/NameArrayType.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,75 @@
+package xsd.JSR172AppendixA.com.sun.www;
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class NameArrayType  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private xsd.JSR172AppendixA.com.sun.www.NameType[] Name;
+	private int Namelength=0;
+
+	public NameArrayType(){
+	}
+	public NameArrayType(xsd.JSR172AppendixA.com.sun.www.NameType[] Name){
+		this.Name = Name;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("Name")) {
+							 return;
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("Name")) {
+					Namelength+=1;
+					if(Namelength==1){
+							this.Name= (new xsd.JSR172AppendixA.com.sun.www.NameType[1]);
+							this.Name[0]= (new xsd.JSR172AppendixA.com.sun.www.NameType());
+							childObj=Name[0];
+						}else{
+							xsd.JSR172AppendixA.com.sun.www.NameType[] newParam= new xsd.JSR172AppendixA.com.sun.www.NameType[Namelength];
+							System.arraycopy(Name,0,newParam,0,Name.length);
+ 							Name= newParam;
+							this.Name[Namelength-1]= (new xsd.JSR172AppendixA.com.sun.www.NameType());
+							childObj=Name[Namelength-1];
+						}
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		for (int i = 0; i <Name.length; i++) {
+		buffer.append("<Name>");
+		if(this.Name[i]!=null){
+			Name[i].serialize(buffer);
+		buffer.append("</Name>\n");
+		}
+	}
+	}
+
+	public void setName(xsd.JSR172AppendixA.com.sun.www.NameType[] Name){
+		this.Name = Name;
+	}
+	public xsd.JSR172AppendixA.com.sun.www.NameType[] getName(){
+		return Name;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/NameType.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/NameType.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/NameType.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/NameType.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,76 @@
+package xsd.JSR172AppendixA.com.sun.www;
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class NameType  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private java.lang.String lastName;
+	private java.lang.String firstName;
+
+	public NameType(){
+	}
+	public NameType(java.lang.String lastName, java.lang.String firstName){
+		this.lastName = lastName;
+		this.firstName = firstName;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("lastName")) {
+					this.lastName= new org.apache.mirae.builtin.simpletypes.StringParam(value).getParam();
+				}else if (qName.equals("firstName")) {
+					this.firstName= new org.apache.mirae.builtin.simpletypes.StringParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("lastName")) {
+					 return;
+				}else if (qName.equals("firstName")) {
+					 return;
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		buffer.append("<lastName>");
+		if(this.lastName!=null)
+			buffer.append(String.valueOf(lastName));
+		buffer.append("</lastName>");
+		buffer.append("<firstName>");
+		if(this.firstName!=null)
+			buffer.append(String.valueOf(firstName));
+		buffer.append("</firstName>");
+	}
+
+	public void setLastName(java.lang.String lastName){
+		this.lastName = lastName;
+	}
+	public java.lang.String getLastName(){
+		return lastName;
+	}
+	public void setFirstName(java.lang.String firstName){
+		this.firstName = firstName;
+	}
+	public java.lang.String getFirstName(){
+		return firstName;
+	}
+}

Added: webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/_addGroups.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/_addGroups.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/_addGroups.java (added)
+++ webservices/mirae/trunk/samples/documentsamples/employee/xsd/JSR172AppendixA/com/sun/www/_addGroups.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,71 @@
+package xsd.JSR172AppendixA.com.sun.www;
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+/**
+ * <p>This class is genarated by the tool WSDL2WS_J2ME.
+ * It take care of the serialization and the desirialization of
+ * the in and out parameters of document literal web service.
+ */ 
+public class _addGroups  implements org.apache.mirae.xml.rpc.InOutParameter{
+	private org.apache.mirae.xml.rpc.InOutParameter childObj;
+	private java.lang.String[] group;
+	private int grouplength=0;
+
+	public _addGroups(){
+	}
+	public _addGroups(java.lang.String[] group){
+		this.group = group;
+	}
+
+
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+				if(qName.equals("group")) {
+							this.group[grouplength-1]= new org.apache.mirae.builtin.simpletypes.StringParam(value).getParam();
+				}else if (childObj!=null)
+					  childObj.decode(uri,localName,qName,attributes,value);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+		}
+
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+	}
+
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+				if(qName.equals("group")) {
+					grouplength+=1;
+					if(grouplength==1){
+							this.group= (new java.lang.String[1]);
+						}else{
+							java.lang.String[] newParam= new java.lang.String[grouplength];
+							System.arraycopy(group,0,newParam,0,group.length);
+ 							group= newParam;
+						}
+				}else if (childObj!=null)
+					  childObj.startElement(uri,localName,qName,attributes);
+				else
+						 throw new SAXException("unknown tag find "+ qName);
+	}
+
+	public void createArray() throws SAXException {
+	}
+
+	public void serialize(StringBuffer buffer)throws java.io.IOException, Exception{
+		//write the parameters
+
+		for (int i = 0; i <group.length; i++) {
+		buffer.append("<group>");
+		if(this.group[i]!=null){
+			buffer.append(String.valueOf(group[i]));
+		buffer.append("</group>\n");
+		}
+	}
+	}
+
+	public void setGroup(java.lang.String[] group){
+		this.group = group;
+	}
+	public java.lang.String[] getGroup(){
+		return group;
+	}
+}

Added: webservices/mirae/trunk/samples/rpcsamples/airfarequote/ComplexArrayClientMIDLet.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/rpcsamples/airfarequote/ComplexArrayClientMIDLet.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/rpcsamples/airfarequote/ComplexArrayClientMIDLet.java (added)
+++ webservices/mirae/trunk/samples/rpcsamples/airfarequote/ComplexArrayClientMIDLet.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,166 @@
+/*
+ * Copyright 2001-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.
+ */
+
+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 uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.AirFareQuote;
+import uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.AirFareQuoteRequest;
+import uk.co.dsdata.ws.travel.sbg.SBGAirFareQuotes.SBGGetAirFareQuoteStub;
+
+public class ComplexArrayClientMIDLet 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 ComplexArrayClientMIDLet() {
+		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 AirfareQuote Request and get AirFareQuote Array");
+		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);
+			}
+		}
+
+		else 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 {
+			form.append(stResult);
+			SBGGetAirFareQuoteStub stub = new SBGGetAirFareQuoteStub();
+			AirFareQuoteRequest afr = new AirFareQuoteRequest(null, "London",
+					"Melburn", "22-07-04");
+
+			AirFareQuote[] afquote = stub.getAirFareQuote(afr);
+			stResult.setText(stResult.getText() + "\n"
+					+ afquote[0].getAirlineName() + "  "
+					+ afquote[0].getRequest().getDestinationAirport() + "\n"
+					+ afquote[1].getAirlineName() + "  "
+					+ afquote[1].getRequest().getOutwardDate());
+
+			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);
+		}
+	}
+}
\ No newline at end of file

Added: webservices/mirae/trunk/samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/BooleanParam.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/BooleanParam.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/BooleanParam.java (added)
+++ webservices/mirae/trunk/samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/BooleanParam.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,97 @@
+/*
+ * Copyright 2001-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.
+ */
+
+package org.apache.mirae.builtin.simpletypes;
+
+import java.io.IOException;
+
+
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+
+public class BooleanParam implements InOutParameter {
+	public boolean param;
+
+	public BooleanParam() {
+	}
+
+	public BooleanParam(String value) throws SAXException {
+		if (value != null)			
+			this.param = value.equals("true")?true:false;  
+	}
+	
+	public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+		if (value != null)			
+			this.param = value.equals("true")?true:false;   		
+	}
+
+	
+
+	public BooleanParam(boolean param) {
+		this.param = param;
+	}
+
+	public BooleanParam(Boolean param) {
+		this.param = param.booleanValue();
+	}
+
+	public void serialize(StringBuffer buffer)throws IOException,Exception {
+			
+			buffer.append(String.valueOf(param));
+		
+	}
+
+	/**
+	 * @return
+	 */
+	public boolean getParam() {
+		return param;
+	}
+
+	/* (non-Javadoc)
+	 * @see java.lang.Object#toString()
+	 */
+	public String toString() {
+		return String.valueOf(param);
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
+	 */
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#endElement(java.lang.String, java.lang.String, java.lang.String)
+	 */
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#createArray()
+	 */
+	public void createArray() throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+
+}

Added: webservices/mirae/trunk/samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/IntParam.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/IntParam.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/IntParam.java (added)
+++ webservices/mirae/trunk/samples/rpcsamples/airfarequote/org/apache/mirae/builtin/simpletypes/IntParam.java Thu Feb  3 04:39:48 2005
@@ -0,0 +1,93 @@
+/*
+ * Copyright 2001-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.
+ */
+
+
+package org.apache.mirae.builtin.simpletypes;
+
+import java.io.IOException;
+
+
+import org.apache.mirae.xml.rpc.InOutParameter;
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+
+public class IntParam implements InOutParameter {
+    private int param;
+
+    public IntParam() {
+    }
+    
+    public IntParam(String value) {
+    	if (value != null)
+	         this.param = Integer.parseInt(value.trim());	
+    }
+     
+    public void decode(String uri, String localName, String qName, Attributes attributes, String value)throws SAXException {
+    	if (value != null)
+	         this.param = Integer.parseInt(value.trim());	
+    	System.out.println(param);
+	}
+
+    public IntParam(int param) {
+        this.param = param;
+    }
+
+	public IntParam(Integer param) {
+		this.param = param.intValue();
+	}
+	
+    public void serialize(StringBuffer buffer) throws IOException,Exception {
+         buffer.append(Integer.toString(param));
+       
+    }
+
+    /**
+     * @return
+     */
+    public int getParam() {
+        return param;
+    }
+
+	public String toString() {
+		return Integer.toString(param);
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
+	 */
+	public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#endElement(java.lang.String, java.lang.String, java.lang.String)
+	 */
+	public void endElement(String uri, String localName, String qName) throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+	/* (non-Javadoc)
+	 * @see j2me.xml.rpc.InOutParameter#createArray()
+	 */
+	public void createArray() throws SAXException {
+		// TODO Auto-generated method stub
+		
+	}
+
+		
+}