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:14 UTC
svn commit: r151149 [18/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/wsdl/calculator.wsdl
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/calculator.wsdl?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/calculator.wsdl (added)
+++ webservices/mirae/trunk/wsdl/calculator.wsdl Thu Feb 3 04:39:48 2005
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://wsmobile.opensource.lk" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://wrappergen.axis2.opensource.lk" xmlns:intf="http://wsmobile.opensource.lk" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <wsdl:message name="addResponse">
+
+ <wsdl:part name="addReturn" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="subResponse">
+
+ <wsdl:part name="subReturn" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="mulResponse">
+
+ <wsdl:part name="mulReturn" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="mulRequest">
+
+ <wsdl:part name="a" type="xsd:int"/>
+
+ <wsdl:part name="b" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="subRequest">
+
+ <wsdl:part name="a" type="xsd:int"/>
+
+ <wsdl:part name="b" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addRequest">
+
+ <wsdl:part name="a" type="xsd:int"/>
+
+ <wsdl:part name="b" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="Calculator">
+
+ <wsdl:operation name="add" parameterOrder="a b">
+
+ <wsdl:input message="intf:addRequest" name="addRequest"/>
+
+ <wsdl:output message="intf:addResponse" name="addResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="sub" parameterOrder="a b">
+
+ <wsdl:input message="intf:subRequest" name="subRequest"/>
+
+ <wsdl:output message="intf:subResponse" name="subResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="mul" parameterOrder="a b">
+
+ <wsdl:input message="intf:mulRequest" name="mulRequest"/>
+
+ <wsdl:output message="intf:mulResponse" name="mulResponse"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="servicesClientSoapBinding" type="intf:Calculator">
+
+ <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="add">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="addRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://wrappergen.axis2.opensource.lk" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="addResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://wsmobile.opensource.lk" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="sub">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="subRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://wsmobile.opensource.lk" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="subResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://wsmobile.opensource.lk" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="mul">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="mulRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://wsmobile.opensource.lk" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="mulResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://wsmobile.opensource.lk" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="CalculatorService">
+
+ <wsdl:port binding="intf:servicesClientSoapBinding" name="servicesClient">
+
+ <wsdlsoap:address location="http://localhost:8080/axis/services/servicesClient"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange: webservices/mirae/trunk/wsdl/calculator.wsdl
------------------------------------------------------------------------------
svn:executable = *
Added: webservices/mirae/trunk/wsdl/genCalculator2Client.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genCalculator2Client.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genCalculator2Client.sh (added)
+++ webservices/mirae/trunk/wsdl/genCalculator2Client.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1,8 @@
+java -DWSMOBILE_HOME=$WSMOBILE_HOME -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar j2me.wsdl2ws.WSDL2Ws Calculator2.wsdl -lclient -o$WTK_HOME/apps/calculator2/src
+cp -rf ../src/mobile-client/jaxp $WTK_HOME/apps/calculator2/src
+cp -rf ../src/mobile-client/jaxrpc $WTK_HOME/apps/calculator2/src
+cp -rf ../genstub/j2me $WTK_HOME/apps/calculator2/src
+cp -f wsdltests/calculator2/client/*.java $WTK_HOME/apps/calculator2/src
+
+
+
Added: webservices/mirae/trunk/wsdl/genCalculator2Server.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genCalculator2Server.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genCalculator2Server.sh (added)
+++ webservices/mirae/trunk/wsdl/genCalculator2Server.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1 @@
+java -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar org.apache.axis.wsdl.WSDL2Java Calculator2.wsdl --server-side -owsdltests/calculator2/server
Added: webservices/mirae/trunk/wsdl/genExceptionTestClient.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genExceptionTestClient.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genExceptionTestClient.sh (added)
+++ webservices/mirae/trunk/wsdl/genExceptionTestClient.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1,7 @@
+java -DWSMOBILE_HOME=$WSMOBILE_HOME -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar j2me.wsdl2ws.WSDL2Ws ExceptionTest.wsdl -lclient -o$WTK_HOME/apps/exceptiontest/src
+
+cp -rf ../src/mobile-client/jaxp $WTK_HOME/apps/exceptiontest/src
+cp -rf ../src/mobile-client/jaxrpc $WTK_HOME/apps/exceptiontest/src
+cp -rf ../genstub/j2me $WTK_HOME/apps/exceptiontest/src
+cp -f wsdltests/exceptiontest/client/*.java $WTK_HOME/apps/exceptiontest/src
+
Added: webservices/mirae/trunk/wsdl/genExceptionTestServer.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genExceptionTestServer.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genExceptionTestServer.sh (added)
+++ webservices/mirae/trunk/wsdl/genExceptionTestServer.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1 @@
+java -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar org.apache.axis.wsdl.WSDL2Java ExceptionTest.wsdl --server-side -owsdltests/exceptiontest/server
Added: webservices/mirae/trunk/wsdl/genInteropTestRound1Client.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genInteropTestRound1Client.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genInteropTestRound1Client.sh (added)
+++ webservices/mirae/trunk/wsdl/genInteropTestRound1Client.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1,6 @@
+java -DWSMOBILE_HOME=$WSMOBILE_HOME -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar j2me.wsdl2ws.WSDL2Ws InteropTestRound1.wsdl -lclient -o$WTK_HOME/apps/interoptestround1/src
+cp -rf ../src/mobile-client/jaxp $WTK_HOME/apps/interoptestround1/src
+cp -rf ../src/mobile-client/jaxrpc $WTK_HOME/apps/interoptestround1/src
+cp -rf ../genstub/j2me $WTK_HOME/apps/interoptestround1/src
+cp -f wsdltests/interoptestround1/client/*.java $WTK_HOME/apps/interoptestround1/src
+
Added: webservices/mirae/trunk/wsdl/genInteropTestRound1Server.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genInteropTestRound1Server.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genInteropTestRound1Server.sh (added)
+++ webservices/mirae/trunk/wsdl/genInteropTestRound1Server.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1 @@
+java -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar org.apache.axis.wsdl.WSDL2Java InteropTestRound1.wsdl --server-side -owsdltests/interoptestround1/server
Added: webservices/mirae/trunk/wsdl/genSimpleArrayClient.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genSimpleArrayClient.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genSimpleArrayClient.sh (added)
+++ webservices/mirae/trunk/wsdl/genSimpleArrayClient.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1,8 @@
+java -DWSMOBILE_HOME=$WSMOBILE_HOME -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar j2me.wsdl2ws.WSDL2Ws SimpleArray.wsdl -lclient -o$WTK_HOME/apps/simplearray/src
+cp -rf ../src/mobile-client/jaxp $WTK_HOME/apps/simplearray/src
+cp -rf ../src/mobile-client/jaxrpc $WTK_HOME/apps/simplearray/src
+cp -rf ../genstub/j2me $WTK_HOME/apps/simplearray/src
+cp -f wsdltests/simplearray/client/*.java $WTK_HOME/apps/simplearray/src
+
+
+
Added: webservices/mirae/trunk/wsdl/genSimpleArrayServer.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genSimpleArrayServer.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genSimpleArrayServer.sh (added)
+++ webservices/mirae/trunk/wsdl/genSimpleArrayServer.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1 @@
+java -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar org.apache.axis.wsdl.WSDL2Java SimpleArray.wsdl --server-side -owsdltests/simplearray/server
Added: webservices/mirae/trunk/wsdl/genSimpleRefClient.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genSimpleRefClient.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genSimpleRefClient.sh (added)
+++ webservices/mirae/trunk/wsdl/genSimpleRefClient.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1 @@
+java -DWSMOBILE_HOME=$WSMOBILE_HOME -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar j2me.wsdl2ws.WSDL2Ws SimpleRef.wsdl -lclient -osamples/simpleref/client
Added: webservices/mirae/trunk/wsdl/genSimpleRefServer.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genSimpleRefServer.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genSimpleRefServer.sh (added)
+++ webservices/mirae/trunk/wsdl/genSimpleRefServer.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1 @@
+java -DWSMOBILE_HOME=$WSMOBILE_HOME -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar j2me.wsdl2ws.WSDL2Ws SimpleRef.wsdl -lserver -osamples/simpleref/server
Added: webservices/mirae/trunk/wsdl/genclient.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genclient.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genclient.sh (added)
+++ webservices/mirae/trunk/wsdl/genclient.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1 @@
+java -DWSMOBILE_HOME=$WSMOBILE_HOME -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar j2me.wsdl2ws.WSDL2Ws SimpleArray.wsdl -lclient -osamples/simplearray/client
Added: webservices/mirae/trunk/wsdl/genserver.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/genserver.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/genserver.sh (added)
+++ webservices/mirae/trunk/wsdl/genserver.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1 @@
+java -DWSMOBILE_HOME=$WSMOBILE_HOME -cp ../bin/wsdl2ws_j2me.jar:../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar j2me.wsdl2ws.WSDL2Ws SimpleArray.wsdl -lserver -osamples/simplearray/server
Added: webservices/mirae/trunk/wsdl/google.wsdl
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/google.wsdl?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/google.wsdl (added)
+++ webservices/mirae/trunk/wsdl/google.wsdl Thu Feb 3 04:39:48 2005
@@ -0,0 +1,195 @@
+<?xml version="1.0"?>
+
+<!-- WSDL description of the Google Web APIs.
+ The Google Web APIs are in beta release. All interfaces are subject to
+ change as we refine and extend our APIs. Please see the terms of use
+ for more information. -->
+
+<definitions name="urn:GoogleSearch"
+ targetNamespace="urn:GoogleSearch"
+ xmlns:typens="urn:GoogleSearch"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <!-- Types for search - result elements, directory categories -->
+
+ <types>
+ <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="urn:GoogleSearch">
+
+ <xsd:complexType name="GoogleSearchResult">
+ <xsd:all>
+ <xsd:element name="documentFiltering" type="xsd:boolean"/>
+ <xsd:element name="searchComments" type="xsd:string"/>
+ <xsd:element name="estimatedTotalResultsCount" type="xsd:int"/>
+ <xsd:element name="estimateIsExact" type="xsd:boolean"/>
+ <xsd:element name="resultElements" type="typens:ResultElementArray"/>
+ <xsd:element name="searchQuery" type="xsd:string"/>
+ <xsd:element name="startIndex" type="xsd:int"/>
+ <xsd:element name="endIndex" type="xsd:int"/>
+ <xsd:element name="searchTips" type="xsd:string"/>
+ <xsd:element name="directoryCategories" type="typens:DirectoryCategoryArray"/>
+ <xsd:element name="searchTime" type="xsd:double"/>
+ </xsd:all>
+ </xsd:complexType>
+
+ <xsd:complexType name="ResultElement">
+ <xsd:all>
+ <xsd:element name="summary" type="xsd:string"/>
+ <xsd:element name="URL" type="xsd:string"/>
+ <xsd:element name="snippet" type="xsd:string"/>
+ <xsd:element name="title" type="xsd:string"/>
+ <xsd:element name="cachedSize" type="xsd:string"/>
+ <xsd:element name="relatedInformationPresent" type="xsd:boolean"/>
+ <xsd:element name="hostName" type="xsd:string"/>
+ <xsd:element name="directoryCategory" type="typens:DirectoryCategory"/>
+ <xsd:element name="directoryTitle" type="xsd:string"/>
+ </xsd:all>
+ </xsd:complexType>
+
+ <xsd:complexType name="ResultElementArray">
+ <xsd:complexContent>
+ <xsd:restriction base="soapenc:Array">
+ <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
+ </xsd:restriction>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="DirectoryCategoryArray">
+ <xsd:complexContent>
+ <xsd:restriction base="soapenc:Array">
+ <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:DirectoryCategory[]"/>
+ </xsd:restriction>
+ </xsd:complexContent>
+ </xsd:complexType>
+
+ <xsd:complexType name="DirectoryCategory">
+ <xsd:all>
+ <xsd:element name="fullViewableName" type="xsd:string"/>
+ <xsd:element name="specialEncoding" type="xsd:string"/>
+ </xsd:all>
+ </xsd:complexType>
+
+ </xsd:schema>
+ </types>
+
+ <!-- Messages for Google Web APIs - cached page, search, spelling. -->
+
+ <message name="doGetCachedPage">
+ <part name="key" type="xsd:string"/>
+ <part name="url" type="xsd:string"/>
+ </message>
+
+ <message name="doGetCachedPageResponse">
+ <part name="return" type="xsd:base64Binary"/>
+ </message>
+
+ <message name="doSpellingSuggestion">
+ <part name="key" type="xsd:string"/>
+ <part name="phrase" type="xsd:string"/>
+ </message>
+
+ <message name="doSpellingSuggestionResponse">
+ <part name="return" type="xsd:string"/>
+ </message>
+
+ <message name="doGoogleSearch">
+ <part name="key" type="xsd:string"/>
+ <part name="q" type="xsd:string"/>
+ <part name="start" type="xsd:int"/>
+ <part name="maxResults" type="xsd:int"/>
+ <part name="filter" type="xsd:boolean"/>
+ <part name="restrict" type="xsd:string"/>
+ <part name="safeSearch" type="xsd:boolean"/>
+ <part name="lr" type="xsd:string"/>
+ <part name="ie" type="xsd:string"/>
+ <part name="oe" type="xsd:string"/>
+ </message>
+
+ <message name="doGoogleSearchResponse">
+ <part name="return" type="typens:GoogleSearchResult"/>
+ </message>
+
+ <!-- Port for Google Web APIs, "GoogleSearch" -->
+
+ <portType name="GoogleSearchPort">
+
+ <operation name="doGetCachedPage">
+ <input message="typens:doGetCachedPage"/>
+ <output message="typens:doGetCachedPageResponse"/>
+ </operation>
+
+ <operation name="doSpellingSuggestion">
+ <input message="typens:doSpellingSuggestion"/>
+ <output message="typens:doSpellingSuggestionResponse"/>
+ </operation>
+
+ <operation name="doGoogleSearch">
+ <input message="typens:doGoogleSearch"/>
+ <output message="typens:doGoogleSearchResponse"/>
+ </operation>
+
+ </portType>
+
+
+ <!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
+
+ <binding name="GoogleSearchBinding" type="typens:GoogleSearchPort">
+ <soap:binding style="rpc"
+ transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <operation name="doGetCachedPage">
+ <soap:operation soapAction="urn:GoogleSearchAction"/>
+ <input>
+ <soap:body use="encoded"
+ namespace="urn:GoogleSearch"
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded"
+ namespace="urn:GoogleSearch"
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+
+ <operation name="doSpellingSuggestion">
+ <soap:operation soapAction="urn:GoogleSearchAction"/>
+ <input>
+ <soap:body use="encoded"
+ namespace="urn:GoogleSearch"
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded"
+ namespace="urn:GoogleSearch"
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+
+ <operation name="doGoogleSearch">
+ <soap:operation soapAction="urn:GoogleSearchAction"/>
+ <input>
+ <soap:body use="encoded"
+ namespace="urn:GoogleSearch"
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded"
+ namespace="urn:GoogleSearch"
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ </binding>
+
+ <!-- Endpoint for Google Web APIs -->
+ <service name="GoogleSearchService">
+ <port name="GoogleSearchPort" binding="typens:GoogleSearchBinding">
+ <soap:address location="http://api.google.com/search/beta2"/>
+ </port>
+ </service>
+
+</definitions>
+
Propchange: webservices/mirae/trunk/wsdl/google.wsdl
------------------------------------------------------------------------------
svn:executable = *
Added: webservices/mirae/trunk/wsdl/header.wsdl
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/header.wsdl?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/header.wsdl (added)
+++ webservices/mirae/trunk/wsdl/header.wsdl Thu Feb 3 04:39:48 2005
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<wsdl:definitions
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:tns="urn:header.wsdl.test"
+ targetNamespace="urn:header.wsdl.test"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+
+ <wsdl:types>
+ <xsd:schema>
+
+ <xsd:element name="Header" type="tns:HeaderType"/>
+ <xsd:complexType name="HeaderType">
+ <xsd:all>
+ <element name="e1" type="xsd:string"/>
+ </xsd:all>
+ </xsd:complexType>
+
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="op1Request">
+ <wsdl:part name="parm1" type="xsd:int"/>
+ <wsdl:part name="parm2" type="xsd:string"/>
+ <wsdl:part name="header" element="tns:Header"/>
+ </wsdl:message>
+
+ <wsdl:message name="op1Response">
+<!--
+ <wsdl:part name="header" element="tns:Header"/>
+-->
+ <wsdl:part name="return" type="xsd:float"/>
+ </wsdl:message>
+
+ <wsdl:message name="op1Fault">
+ <wsdl:part name="message" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:message name="op2Request">
+ <wsdl:part name="parm" type="xsd:int"/>
+ <wsdl:part name="header" element="tns:Header"/>
+ </wsdl:message>
+
+ <wsdl:message name="op2Response"/>
+
+ <wsdl:message name="implicitFault">
+ <wsdl:part name="message" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="PortType">
+ <wsdl:operation name="op1">
+ <wsdl:input message="tns:op1Request"/>
+ <wsdl:output message="tns:op1Response"/>
+ <wsdl:fault name="op1Fault" message="tns:op1Fault"/>
+ </wsdl:operation>
+ <wsdl:operation name="op2">
+ <wsdl:input message="tns:op2Request"/>
+ <wsdl:output message="tns:op2Response"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="Binding" type="tns:PortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
+ <wsdl:operation name="op1">
+ <soap:operation/>
+ <wsdl:input>
+ <soap:body use="literal"
+ namespace="urn:header.wsdl.test"
+ parts="parm2"/>
+ <soap:header message="tns:op1Request"
+ part="parm1"
+ use="literal"
+ namespace="urn:header.wsdl.test">
+ <soap:headerfault message="tns:op1Fault"
+ part="message"
+ use="literal"
+ namespace="urn:header.wsdl.test"/>
+ </soap:header>
+ <soap:header message="tns:op1Request"
+ part="header"
+ use="literal"
+ namespace="urn:header.wsdl.test">
+ <soap:headerfault message="tns:op1Fault"
+ part="message"
+ use="literal"
+ namespace="urn:header.wsdl.test"/>
+ </soap:header>
+ </wsdl:input>
+ <wsdl:output>
+<!--
+ <soap:body use="literal"
+ parts="header"
+ namespace="urn:header.wsdl.test"/>
+-->
+ <soap:header message="tns:op1Response"
+ part="return"
+ use="literal"
+ namespace="urn:header.wsdl.test">
+ </soap:header>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="op2">
+ <soap:operation/>
+ <wsdl:input>
+ <soap:body use="literal"
+ namespace="urn:header.wsdl.test"
+ parts="parm"/>
+ <soap:header message="tns:op2Request"
+ part="header"
+ use="literal"
+ namespace="urn:header.wsdl.test">
+ <soap:headerfault message="tns:implicitFault"
+ part="message"
+ use="literal"
+ namespace="urn:header.wsdl.test"/>
+ </soap:header>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"
+ namespace="urn:header.wsdl.test"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="HeaderService">
+ <wsdl:port name="header" binding="tns:Binding">
+ <soap:address location="http://localhost:8080/axis/services/header"/>
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange: webservices/mirae/trunk/wsdl/header.wsdl
------------------------------------------------------------------------------
svn:executable = *
Added: webservices/mirae/trunk/wsdl/heavy.wsdl
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/heavy.wsdl?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/heavy.wsdl (added)
+++ webservices/mirae/trunk/wsdl/heavy.wsdl Thu Feb 3 04:39:48 2005
@@ -0,0 +1,192 @@
+<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://performence.heavytest" xmlns:intf="http://performence.heavytest" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://performence.heavytest">
+ <wsdl:types>
+ <schema targetNamespace="http://performence.heavytest" xmlns="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
+ <complexType name="KeyPhrase">
+ <sequence>
+ <element maxOccurs="1" minOccurs="0" name="KeyPhrase" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Type" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="ArrayOfKeyPhrase">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:KeyPhrase[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="ArrayOf_xsd_string">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="ThirdPartyProductDetails">
+ <sequence>
+ <element maxOccurs="1" minOccurs="0" name="OfferingType" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="SellerId" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="SellerNickname" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ExchangeId" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="OfferingPrice" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Condition" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ConditionType" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ExchangeAvailability" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="SellerCountry" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="SellerState" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ShipComments" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="SellerRating" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="ArrayOfThirdPartyProductDetails">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:ThirdPartyProductDetails[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="ThirdPartyProductInfo">
+ <sequence>
+ <element name="ThirdPartyProductDetails" nillable="true" type="impl:ArrayOfThirdPartyProductDetails"/>
+ </sequence>
+ </complexType>
+ <complexType name="BrowseNode">
+ <sequence>
+ <element maxOccurs="1" minOccurs="0" name="BrowseId" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="BrowseName" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="ArrayOfBrowseNode">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:BrowseNode[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="Track">
+ <sequence>
+ <element maxOccurs="1" minOccurs="0" name="TrackName" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ByArtist" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="ArrayOfTrack">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Track[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="CustomerReview">
+ <sequence>
+ <element maxOccurs="1" minOccurs="0" name="Rating" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Summary" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Comment" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="ArrayOfCustomerReview">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:CustomerReview[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="Reviews">
+ <sequence>
+ <element maxOccurs="1" minOccurs="0" name="AvgCustomerRating" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="TotalCustomerReviews" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="CustomerReviews" nillable="true" type="impl:ArrayOfCustomerReview"/>
+ </sequence>
+ </complexType>
+ <complexType name="Details">
+ <sequence>
+ <element maxOccurs="1" minOccurs="0" name="Url" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Asin" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ProductName" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Catalog" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="KeyPhrases" nillable="true" type="impl:ArrayOfKeyPhrase"/>
+ <element maxOccurs="1" minOccurs="0" name="Artists" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="Authors" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="Mpn" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Starring" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="Directors" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="TheatricalReleaseDate" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ReleaseDate" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Manufacturer" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Distributor" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ImageUrlSmall" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ImageUrlMedium" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ImageUrlLarge" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ListPrice" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="OurPrice" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="UsedPrice" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="RefurbishedPrice" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="CollectiblePrice" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ThirdPartyNewPrice" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="NumberOfOfferings" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ThirdPartyNewCount" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="UsedCount" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="CollectibleCount" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="RefurbishedCount" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ThirdPartyProductInfo" nillable="true" type="impl:ThirdPartyProductInfo"/>
+ <element maxOccurs="1" minOccurs="0" name="SalesRank" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="BrowseList" nillable="true" type="impl:ArrayOfBrowseNode"/>
+ <element maxOccurs="1" minOccurs="0" name="Media" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="ReadingLevel" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Publisher" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="NumMedia" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Isbn" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Features" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="MpaaRating" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="EsrbRating" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="AgeGroup" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Availability" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Upc" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Tracks" nillable="true" type="impl:ArrayOfTrack"/>
+ <element maxOccurs="1" minOccurs="0" name="Accessories" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="Platforms" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="Encoding" nillable="true" type="xsd:string"/>
+ <element maxOccurs="1" minOccurs="0" name="Reviews" nillable="true" type="impl:Reviews"/>
+ <element maxOccurs="1" minOccurs="0" name="SimilarProducts" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="Lists" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element maxOccurs="1" minOccurs="0" name="Status" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="DetailsArray">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="impl:Details[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ </schema>
+ </wsdl:types>
+ <wsdl:message name="testRequest">
+ <wsdl:part name="in" type="impl:DetailsArray"/>
+ </wsdl:message>
+ <wsdl:message name="testResponse">
+ <wsdl:part name="testReturn" type="impl:DetailsArray"/>
+ </wsdl:message>
+ <wsdl:portType name="HeavyTest">
+ <wsdl:operation name="test" parameterOrder="in">
+ <wsdl:input name="testRequest" message="impl:testRequest"/>
+ <wsdl:output name="testResponse" message="impl:testResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="HeavySoapBinding" type="impl:HeavyTest">
+ <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="test">
+ <wsdlsoap:operation soapAction="HeavyTest" />
+ <wsdl:input>
+ <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://performence.heavytest"/>
+ </wsdl:input>
+ <wsdl:output>
+ <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://performence.heavytest"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HeavyTestService">
+ <wsdl:port name="Heavy" binding="impl:HeavySoapBinding">
+ <wsdlsoap:address location="http://localhost:8080/axis/services/Heavy"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
\ No newline at end of file
Propchange: webservices/mirae/trunk/wsdl/heavy.wsdl
------------------------------------------------------------------------------
svn:executable = *
Added: webservices/mirae/trunk/wsdl/kumaran.wsdl
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/kumaran.wsdl?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/kumaran.wsdl (added)
+++ webservices/mirae/trunk/wsdl/kumaran.wsdl Thu Feb 3 04:39:48 2005
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="urn:Example6" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns1="urn:parchase" xmlns:intf="urn:Example6" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:impl="urn:Example6" xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <wsdl:types>
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:parchase">
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
+ <complexType name="PurchaseOrder">
+ <sequence>
+ <element name="amount" type="xsd:int" maxOccurs="1"/>
+ <element name="itemcode" nillable="true" type="xsd:string"/>
+ <element name="prize" type="xsd:double"/>
+ </sequence>
+ </complexType>
+ <element name="PurchaseOrder" nillable="true" type="tns1:PurchaseOrder"/>
+ <complexType name="Invoice">
+ <sequence>
+ <element name="amountSent" type="xsd:int"/>
+ <element name="itemcode" nillable="true" type="xsd:string"/>
+ <element name="pize" type="xsd:double"/>
+ <element name="totel" type="xsd:double"/>
+ </sequence>
+ </complexType>
+ <element name="Invoice" nillable="true" type="tns1:Invoice"/>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="supplyResponse">
+
+ <wsdl:part name="supplyReturn" type="tns1:Invoice"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="supplyRequest">
+
+ <wsdl:part name="po" type="tns1:PurchaseOrder"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="Broker">
+
+ <wsdl:operation name="supply" parameterOrder="po">
+
+ <wsdl:input name="supplyRequest" message="intf:supplyRequest"/>
+
+ <wsdl:output name="supplyResponse" message="intf:supplyResponse"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="WidgetPriceSoapBinding" type="intf:Broker">
+
+ <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="supply">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="supplyRequest">
+
+ <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Example6"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="supplyResponse">
+
+ <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Example6"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="BrokerService">
+
+ <wsdl:port name="WidgetPrice" binding="intf:WidgetPriceSoapBinding">
+
+ <wsdlsoap:address location="http://localhost:8080/axis/services/WidgetPrice"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange: webservices/mirae/trunk/wsdl/kumaran.wsdl
------------------------------------------------------------------------------
svn:executable = *
Added: webservices/mirae/trunk/wsdl/point.wsdl
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/point.wsdl?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/point.wsdl (added)
+++ webservices/mirae/trunk/wsdl/point.wsdl Thu Feb 3 04:39:48 2005
@@ -0,0 +1,428 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="urn:ws_mobile_point" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:ws_mobile_point" xmlns:intf="urn:ws_mobile_point" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:types>
+ <schema targetNamespace="urn:ws_mobile_point" xmlns="http://www.w3.org/2001/XMLSchema">
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
+ <complexType name="Point">
+ <sequence>
+ <element name="x" type="xsd:int"/>
+ <element name="y" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ <complexType name="ArrayOf_xsd_int">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:int[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="addPointResponse">
+
+ <wsdl:part name="addPointReturn" type="intf:Point"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="distanceResponse">
+
+ <wsdl:part name="distanceReturn" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="setXResponse">
+
+ </wsdl:message>
+
+ <wsdl:message name="addArrayRequest">
+
+ <wsdl:part name="a" type="intf:ArrayOf_xsd_int"/>
+
+ <wsdl:part name="b" type="intf:ArrayOf_xsd_int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="distanceRequest">
+
+ <wsdl:part name="p1" type="intf:Point"/>
+
+ <wsdl:part name="p2" type="intf:Point"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="setYResponse">
+
+ </wsdl:message>
+
+ <wsdl:message name="setYRequest">
+
+ <wsdl:part name="i" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addArrayResponse">
+
+ <wsdl:part name="addArrayReturn" type="intf:ArrayOf_xsd_int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="setXRequest">
+
+ <wsdl:part name="i" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getNameResponse">
+
+ <wsdl:part name="getNameReturn" type="xsd:string"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addResponse">
+
+ <wsdl:part name="addReturn" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="operationsRequest">
+
+ <wsdl:part name="num" type="xsd:int"/>
+
+ <wsdl:part name="x" type="xsd:int"/>
+
+ <wsdl:part name="y" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getXResponse">
+
+ <wsdl:part name="getXReturn" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addPointRequest">
+
+ <wsdl:part name="p1" type="intf:Point"/>
+
+ <wsdl:part name="p2" type="intf:Point"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getYResponse">
+
+ <wsdl:part name="getYReturn" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getNameRequest">
+
+ <wsdl:part name="str1" type="xsd:string"/>
+
+ <wsdl:part name="str2" type="xsd:string"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addRequest">
+
+ <wsdl:part name="x" type="xsd:int"/>
+
+ <wsdl:part name="y" type="xsd:int"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getYRequest">
+
+ </wsdl:message>
+
+ <wsdl:message name="operationsResponse">
+
+ <wsdl:part name="operationsReturn" type="intf:Point"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getXRequest">
+
+ </wsdl:message>
+
+ <wsdl:portType name="Point">
+
+ <wsdl:operation name="getName" parameterOrder="str1 str2">
+
+ <wsdl:input message="intf:getNameRequest" name="getNameRequest"/>
+
+ <wsdl:output message="intf:getNameResponse" name="getNameResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="add" parameterOrder="x y">
+
+ <wsdl:input message="intf:addRequest" name="addRequest"/>
+
+ <wsdl:output message="intf:addResponse" name="addResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="operations" parameterOrder="num x y">
+
+ <wsdl:input message="intf:operationsRequest" name="operationsRequest"/>
+
+ <wsdl:output message="intf:operationsResponse" name="operationsResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="addPoint" parameterOrder="p1 p2">
+
+ <wsdl:input message="intf:addPointRequest" name="addPointRequest"/>
+
+ <wsdl:output message="intf:addPointResponse" name="addPointResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="distance" parameterOrder="p1 p2">
+
+ <wsdl:input message="intf:distanceRequest" name="distanceRequest"/>
+
+ <wsdl:output message="intf:distanceResponse" name="distanceResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="addArray" parameterOrder="a b">
+
+ <wsdl:input message="intf:addArrayRequest" name="addArrayRequest"/>
+
+ <wsdl:output message="intf:addArrayResponse" name="addArrayResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getX">
+
+ <wsdl:input message="intf:getXRequest" name="getXRequest"/>
+
+ <wsdl:output message="intf:getXResponse" name="getXResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getY">
+
+ <wsdl:input message="intf:getYRequest" name="getYRequest"/>
+
+ <wsdl:output message="intf:getYResponse" name="getYResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="setX" parameterOrder="i">
+
+ <wsdl:input message="intf:setXRequest" name="setXRequest"/>
+
+ <wsdl:output message="intf:setXResponse" name="setXResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="setY" parameterOrder="i">
+
+ <wsdl:input message="intf:setYRequest" name="setYRequest"/>
+
+ <wsdl:output message="intf:setYResponse" name="setYResponse"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="pointSoapBinding" type="intf:Point">
+
+ <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getName">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getNameRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getNameResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="add">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="addRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="addResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="operations">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="operationsRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="operationsResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="addPoint">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="addPointRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="addPointResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="distance">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="distanceRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="distanceResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="addArray">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="addArrayRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="addArrayResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getX">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getXRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getXResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getY">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getYRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getYResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="setX">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="setXRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="setXResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="setY">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="setYRequest">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="setYResponse">
+
+ <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:ws_mobile_point" use="encoded"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="PointService">
+
+ <wsdl:port binding="intf:pointSoapBinding" name="Point">
+
+ <wsdlsoap:address location="http://localhost:8080/axis/services/Point"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange: webservices/mirae/trunk/wsdl/point.wsdl
------------------------------------------------------------------------------
svn:executable = *
Added: webservices/mirae/trunk/wsdl/wst.wsdl
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdl/wst.wsdl?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdl/wst.wsdl (added)
+++ webservices/mirae/trunk/wsdl/wst.wsdl Thu Feb 3 04:39:48 2005
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="urn:Example8" xmlns:impl="urn:Example8" xmlns:intf="urn:Example8" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <wsdl:types>
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Example8">
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
+
+ <complexType name="ArrayOf_xsd_string">
+ <complexContent>
+ <restriction base="soapenc:Array">
+ <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+
+ <complexType name="Student">
+ <sequence>
+ <element name="detail" nillable="true" type="impl:ArrayOf_xsd_string"/>
+ <element name="name" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="getStudentObjRequest">
+
+ <wsdl:part name="in0" type="xsd:string"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getStudentDetailResponse">
+
+ <wsdl:part name="getStudentDetailReturn" type="xsd:string"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getStudentDetailRequest">
+
+ <wsdl:part name="in0" type="xsd:string"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getStudentObjResponse">
+
+ <wsdl:part name="getStudentObjReturn" type="impl:Student"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="StudentOp">
+
+ <wsdl:operation name="getStudentDetail" parameterOrder="in0">
+
+ <wsdl:input name="getStudentDetailRequest" message="impl:getStudentDetailRequest"/>
+
+ <wsdl:output name="getStudentDetailResponse" message="impl:getStudentDetailResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getStudentObj" parameterOrder="in0">
+
+ <wsdl:input name="getStudentObjRequest" message="impl:getStudentObjRequest"/>
+
+ <wsdl:output name="getStudentObjResponse" message="impl:getStudentObjResponse"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="StudentSoapBinding" type="impl:StudentOp">
+
+ <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getStudentDetail">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getStudentDetailRequest">
+
+ <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Example8"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getStudentDetailResponse">
+
+ <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Example8"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getStudentObj">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getStudentObjRequest">
+
+ <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Example8"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getStudentObjResponse">
+
+ <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Example8"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="StudentOpService">
+
+ <wsdl:port name="Student" binding="impl:StudentSoapBinding">
+
+ <wsdlsoap:address location="http://localhost:8080/axis/services/Student"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Added: webservices/mirae/trunk/wsdltests/calculator/client/CalClientMIDLet.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdltests/calculator/client/CalClientMIDLet.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdltests/calculator/client/CalClientMIDLet.java (added)
+++ webservices/mirae/trunk/wsdltests/calculator/client/CalClientMIDLet.java Thu Feb 3 04:39:48 2005
@@ -0,0 +1,254 @@
+/* -*- Mirae -*- */
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+ *
+ */
+
+
+import javax.microedition.lcdui.Alert;
+import javax.microedition.lcdui.AlertType;
+import javax.microedition.lcdui.Command;
+import javax.microedition.lcdui.CommandListener;
+import javax.microedition.lcdui.Display;
+import javax.microedition.lcdui.Displayable;
+import javax.microedition.lcdui.Form;
+import javax.microedition.lcdui.Gauge;
+import javax.microedition.lcdui.StringItem;
+import javax.microedition.midlet.MIDlet;
+import javax.microedition.midlet.MIDletStateChangeException;
+
+import calculator.axis.localhost.CalculatorStub;
+
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.DefaultHandler;
+
+public class CalClientMIDLet extends MIDlet implements CommandListener, Runnable {
+
+ public static StringItem stResult;
+
+ private Display display;
+
+ private Form form;
+
+ private Command quitCommand, sendCommand, backCommand;
+
+ private boolean isSafeToExit;
+
+ private Gauge gauge;
+
+ public String result;
+
+ boolean gotResult = false;
+
+ private StringItem tf;
+
+ public CalClientMIDLet() {
+ setting();
+ }
+
+ public void setting() {
+ stResult = new StringItem("Result:", "");
+
+ display = Display.getDisplay(this);
+ gauge = new Gauge("Progress Tracking", false, 100, 0);
+ // gauge.setPreferredSize(200,10);
+
+ form = new Form("Access Web Service");
+ quitCommand = new Command("Quit", Command.CANCEL, 1);
+ sendCommand = new Command("Send", Command.OK, 2);
+
+ tf = new StringItem("Method: ",
+ "Click \"SEND\" to send 2 points for adding");
+ form.addCommand(quitCommand);
+ form.addCommand(sendCommand);
+
+ form.append(tf);
+
+ form.setCommandListener(this);
+ isSafeToExit = true;
+ }
+
+ protected void startApp() throws MIDletStateChangeException {
+ display.setCurrent(form);
+ }
+
+ protected void pauseApp() {
+ }
+
+ protected void destroyApp(boolean unconditional)
+ throws MIDletStateChangeException {
+ if (!unconditional) {
+ throw new MIDletStateChangeException();
+ }
+ }
+
+ public void commandAction(Command command, Displayable displayable) {
+
+ if (command == quitCommand) {
+ try {
+ destroyApp(isSafeToExit);
+ notifyDestroyed();
+ System.gc();
+ } catch (MIDletStateChangeException Error) {
+ Alert alert = new Alert("Busy", "Please try again.", null,
+ AlertType.ERROR);
+ alert.setTimeout(1500);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+
+ if (command == backCommand) {
+ System.gc();
+ this.setting();
+ try {
+ startApp();
+ } catch (Exception e) {
+ Alert alert = new Alert("Busy", e.getMessage(), null,
+ AlertType.ERROR);
+ alert.setTimeout(1500);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+
+ else if (command == sendCommand) {
+ try {
+ form.append(gauge);
+ form.removeCommand(sendCommand);
+ form.removeCommand(quitCommand);
+
+ backCommand = new Command("Back", Command.SCREEN, 1);
+ form.addCommand(backCommand);
+
+ Thread me = new Thread(this);
+ me.start();
+ new Thread(new GuagueUpdater()).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 {
+
+ CalculatorStub stub = new CalculatorStub();
+ int i = stub.add(5, 6);
+ System.out.println("res " + i);
+ stResult.setText("" + i);
+
+ 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);
+
+ }
+ }
+
+ class GuagueUpdater implements Runnable {
+ GuagueUpdater() {
+ }
+
+ public void run() {
+ isSafeToExit = false;
+ try {
+ while (gauge.getValue() < gauge.getMaxValue()) {
+ Thread.sleep(100);
+ gauge.setValue(gauge.getValue() + 1);
+ if (gauge.getValue() == gauge.getMaxValue()) {
+ gauge.setValue(0);
+ }
+ if (gotResult == true) {
+ gauge.setValue(gauge.getMaxValue());
+ }
+
+ }
+ isSafeToExit = true;
+ gauge.setLabel("Process Completed.");
+
+ } catch (InterruptedException Error) {
+ throw new RuntimeException(Error.getMessage());
+ }
+ }
+ }
+
+ private class MemoHandler extends DefaultHandler {
+ private StringBuffer textBuffer;
+
+ private StringItem memoBox;
+
+ MemoHandler(StringItem memoBox) {
+ this.memoBox = memoBox;
+ }
+
+ public void startElement(String uri, String localName, String qName,
+ Attributes attributes) throws SAXException {
+
+ if (qName.equals("x")) {
+ textBuffer.append("x=");
+ } else if (qName.equals("y")) {
+ textBuffer.append("y=");
+ }
+
+ System.out.println("--" + uri + "**" + localName + "++" + qName
+ + "--" + attributes);
+
+ }
+
+ public void endElement(String uri, String localName, String qName)
+ throws SAXException {
+
+ }
+
+ public void characters(char[] ch, int start, int length)
+ throws SAXException {
+ String s = new String(ch, start, length);
+ if (textBuffer == null) {
+ textBuffer = new StringBuffer(s);
+ memoBox.setText(textBuffer.toString().trim());
+
+ } else {
+
+ textBuffer.append(s);
+ memoBox.setText(textBuffer.toString().trim());
+ System.out.println("char " + textBuffer.toString());
+ }
+ }
+ }
+
+}
Added: webservices/mirae/trunk/wsdltests/calculator/server/CalculatorSoapBindingImpl.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdltests/calculator/server/CalculatorSoapBindingImpl.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdltests/calculator/server/CalculatorSoapBindingImpl.java (added)
+++ webservices/mirae/trunk/wsdltests/calculator/server/CalculatorSoapBindingImpl.java Thu Feb 3 04:39:48 2005
@@ -0,0 +1,48 @@
+/* -*- Mirae -*- */
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+ *
+ */
+
+/**
+ * CalculatorSoapBindingImpl.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis WSDL2Java emitter.
+ */
+
+package localhost.axis.Calculator;
+
+public class CalculatorSoapBindingImpl implements localhost.axis.Calculator.Calculator_Port{
+ public int add(int in0, int in1) throws java.rmi.RemoteException {
+ return in0 + in1;
+ }
+
+ public int sub(int in0, int in1) throws java.rmi.RemoteException {
+ return in0 - in1;
+ }
+
+ public int mul(int in0, int in1) throws java.rmi.RemoteException {
+ return in0 * in1;
+ }
+
+ public int div(int in0, int in1) throws java.rmi.RemoteException {
+ return in0 / in1;
+ }
+
+}
Added: webservices/mirae/trunk/wsdltests/calculator/server/build.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdltests/calculator/server/build.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdltests/calculator/server/build.sh (added)
+++ webservices/mirae/trunk/wsdltests/calculator/server/build.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# -*- Mirae -*-
+#
+# Copyright 2003-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+#
+# @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+#
+#
+
+cp -f CalculatorSoapBindingImpl.java localhost/axis/Calculator
+
+javac -classpath ../lib/activation.jar:../lib/commons-discovery.jar:../lib/Jaxrpc.jar:../lib/Saaj.jar:../lib/Axis.jar:../lib/commons-logging.jar:../lib/log4j-1.2.8.jar:../lib/Wsdl4j.jar:$CLASSPATH -d /home/damitha/programs/jakarta-tomcat-4.1.24/webapps/axis/WEB-INF/classes localhost/axis/Calculator/*.java
Added: webservices/mirae/trunk/wsdltests/calculator/server/deploy.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdltests/calculator/server/deploy.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdltests/calculator/server/deploy.sh (added)
+++ webservices/mirae/trunk/wsdltests/calculator/server/deploy.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+java org.apache.axis.client.AdminClient deploy.wsdd
Added: webservices/mirae/trunk/wsdltests/calculator/server/deploy.wsdd
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdltests/calculator/server/deploy.wsdd?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdltests/calculator/server/deploy.wsdd (added)
+++ webservices/mirae/trunk/wsdltests/calculator/server/deploy.wsdd Thu Feb 3 04:39:48 2005
@@ -0,0 +1,40 @@
+<!-- Use this file to deploy some handlers/chains and services -->
+<!-- Two ways to do this: -->
+<!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
+<!-- after the axis server is running -->
+<!-- or -->
+<!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
+<!-- from the same directory that the Axis engine runs -->
+
+<deployment
+ xmlns="http://xml.apache.org/axis/wsdd/"
+ xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+ <!-- Services from Calculator WSDL service -->
+
+ <service name="Calculator" provider="java:RPC" style="rpc" use="encoded">
+ <parameter name="wsdlTargetNamespace" value="http://localhost/axis/Calculator"/>
+ <parameter name="wsdlServiceElement" value="Calculator"/>
+ <parameter name="wsdlServicePort" value="Calculator"/>
+ <parameter name="className" value="localhost.axis.Calculator.CalculatorSoapBindingImpl"/>
+ <parameter name="wsdlPortType" value="Calculator"/>
+ <operation name="add" qname="operNS:add" xmlns:operNS="http://localhost/axis/Calculator" returnQName="addReturn" returnType="rtns:int" xmlns:rtns="http://www.w3.org/2001/XMLSchema" >
+ <parameter name="in0" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+ <parameter name="in1" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+ </operation>
+ <operation name="sub" qname="operNS:sub" xmlns:operNS="http://localhost/axis/Calculator" returnQName="subReturn" returnType="rtns:int" xmlns:rtns="http://www.w3.org/2001/XMLSchema" >
+ <parameter name="in0" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+ <parameter name="in1" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+ </operation>
+ <operation name="mul" qname="operNS:mul" xmlns:operNS="http://localhost/axis/Calculator" returnQName="addReturn" returnType="rtns:int" xmlns:rtns="http://www.w3.org/2001/XMLSchema" >
+ <parameter name="in0" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+ <parameter name="in1" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+ </operation>
+ <operation name="div" qname="operNS:div" xmlns:operNS="http://localhost/axis/Calculator" returnQName="addReturn" returnType="rtns:int" xmlns:rtns="http://www.w3.org/2001/XMLSchema" >
+ <parameter name="in0" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+ <parameter name="in1" type="tns:int" xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
+ </operation>
+ <parameter name="allowedMethods" value="add div sub mul"/>
+
+ </service>
+</deployment>
Added: webservices/mirae/trunk/wsdltests/calculator/server/undeploy.sh
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdltests/calculator/server/undeploy.sh?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdltests/calculator/server/undeploy.sh (added)
+++ webservices/mirae/trunk/wsdltests/calculator/server/undeploy.sh Thu Feb 3 04:39:48 2005
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+java org.apache.axis.client.AdminClient undeploy.wsdd
Added: webservices/mirae/trunk/wsdltests/calculator/server/undeploy.wsdd
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdltests/calculator/server/undeploy.wsdd?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdltests/calculator/server/undeploy.wsdd (added)
+++ webservices/mirae/trunk/wsdltests/calculator/server/undeploy.wsdd Thu Feb 3 04:39:48 2005
@@ -0,0 +1,15 @@
+<!-- Use this file to undeploy some handlers/chains and services -->
+<!-- Two ways to do this: -->
+<!-- java org.apache.axis.client.AdminClient undeploy.wsdd -->
+<!-- after the axis server is running -->
+<!-- or -->
+<!-- java org.apache.axis.utils.Admin client|server undeploy.wsdd -->
+<!-- from the same directory that the Axis engine runs -->
+
+<undeployment
+ xmlns="http://xml.apache.org/axis/wsdd/">
+
+ <!-- Services from Calculator WSDL service -->
+
+ <service name="Calculator"/>
+</undeployment>
Added: webservices/mirae/trunk/wsdltests/exceptiontest/client/ExceptionDivByZeroMIDLet.java
URL: http://svn.apache.org/viewcvs/webservices/mirae/trunk/wsdltests/exceptiontest/client/ExceptionDivByZeroMIDLet.java?view=auto&rev=151149
==============================================================================
--- webservices/mirae/trunk/wsdltests/exceptiontest/client/ExceptionDivByZeroMIDLet.java (added)
+++ webservices/mirae/trunk/wsdltests/exceptiontest/client/ExceptionDivByZeroMIDLet.java Thu Feb 3 04:39:48 2005
@@ -0,0 +1,253 @@
+/* -*- Mirae -*- */
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * @author Damitha Kumarage (damitha@hsenid.lk, damitha@opensource.lk)
+ *
+ */
+
+import javax.microedition.lcdui.Alert;
+import javax.microedition.lcdui.AlertType;
+import javax.microedition.lcdui.Command;
+import javax.microedition.lcdui.CommandListener;
+import javax.microedition.lcdui.Display;
+import javax.microedition.lcdui.Displayable;
+import javax.microedition.lcdui.Form;
+import javax.microedition.lcdui.Gauge;
+import javax.microedition.lcdui.StringItem;
+import javax.microedition.midlet.MIDlet;
+import javax.microedition.midlet.MIDletStateChangeException;
+
+import wsdl.exceptiontest.ExceptionTestStub;
+
+import org.xml.sax.Attributes;
+import org.xml.sax.SAXException;
+import org.xml.sax.helpers.DefaultHandler;
+
+public class ExceptionDivByZeroMIDLet extends MIDlet implements CommandListener, Runnable {
+
+ public static StringItem stResult;
+
+ private Display display;
+
+ private Form form;
+
+ private Command quitCommand, sendCommand, backCommand;
+
+ private boolean isSafeToExit;
+
+ private Gauge gauge;
+
+ public String result;
+
+ boolean gotResult = false;
+
+ private StringItem tf;
+
+ public ExceptionDivByZeroMIDLet() {
+ setting();
+ }
+
+ public void setting() {
+ stResult = new StringItem("Result:", "");
+
+ display = Display.getDisplay(this);
+ gauge = new Gauge("Progress Tracking", false, 100, 0);
+ // gauge.setPreferredSize(200,10);
+
+ form = new Form("Access Web Service");
+ quitCommand = new Command("Quit", Command.CANCEL, 1);
+ sendCommand = new Command("Send", Command.OK, 2);
+
+ tf = new StringItem("Method: ",
+ "Click \"SEND\" to send 2 points for adding");
+ form.addCommand(quitCommand);
+ form.addCommand(sendCommand);
+
+ form.append(tf);
+
+ form.setCommandListener(this);
+ isSafeToExit = true;
+ }
+
+ protected void startApp() throws MIDletStateChangeException {
+ display.setCurrent(form);
+ }
+
+ protected void pauseApp() {
+ }
+
+ protected void destroyApp(boolean unconditional)
+ throws MIDletStateChangeException {
+ if (!unconditional) {
+ throw new MIDletStateChangeException();
+ }
+ }
+
+ public void commandAction(Command command, Displayable displayable) {
+
+ if (command == quitCommand) {
+ try {
+ destroyApp(isSafeToExit);
+ notifyDestroyed();
+ System.gc();
+ } catch (MIDletStateChangeException Error) {
+ Alert alert = new Alert("Busy", "Please try again.", null,
+ AlertType.ERROR);
+ alert.setTimeout(1500);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+
+ if (command == backCommand) {
+ System.gc();
+ this.setting();
+ try {
+ startApp();
+ } catch (Exception e) {
+ Alert alert = new Alert("Busy", e.getMessage(), null,
+ AlertType.ERROR);
+ alert.setTimeout(1500);
+ alert.setCommandListener(this);
+ display.setCurrent(alert, form);
+ }
+ }
+
+ else if (command == sendCommand) {
+ try {
+ form.append(gauge);
+ form.removeCommand(sendCommand);
+ form.removeCommand(quitCommand);
+
+ backCommand = new Command("Back", Command.SCREEN, 1);
+ form.addCommand(backCommand);
+
+ Thread me = new Thread(this);
+ me.start();
+ new Thread(new GuagueUpdater()).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 {
+
+ ExceptionTestStub stub = new ExceptionTestStub("http://localhost:8080/axis/services/ExceptionTest");
+ int i = stub.div(10, 0);
+ System.out.println("res " + i);
+ stResult.setText("" + i);
+
+ 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);
+
+ }
+ }
+
+ class GuagueUpdater implements Runnable {
+ GuagueUpdater() {
+ }
+
+ public void run() {
+ isSafeToExit = false;
+ try {
+ while (gauge.getValue() < gauge.getMaxValue()) {
+ Thread.sleep(100);
+ gauge.setValue(gauge.getValue() + 1);
+ if (gauge.getValue() == gauge.getMaxValue()) {
+ gauge.setValue(0);
+ }
+ if (gotResult == true) {
+ gauge.setValue(gauge.getMaxValue());
+ }
+
+ }
+ isSafeToExit = true;
+ gauge.setLabel("Process Completed.");
+
+ } catch (InterruptedException Error) {
+ throw new RuntimeException(Error.getMessage());
+ }
+ }
+ }
+
+ private class MemoHandler extends DefaultHandler {
+ private StringBuffer textBuffer;
+
+ private StringItem memoBox;
+
+ MemoHandler(StringItem memoBox) {
+ this.memoBox = memoBox;
+ }
+
+ public void startElement(String uri, String localName, String qName,
+ Attributes attributes) throws SAXException {
+
+ if (qName.equals("x")) {
+ textBuffer.append("x=");
+ } else if (qName.equals("y")) {
+ textBuffer.append("y=");
+ }
+
+ System.out.println("--" + uri + "**" + localName + "++" + qName
+ + "--" + attributes);
+
+ }
+
+ public void endElement(String uri, String localName, String qName)
+ throws SAXException {
+
+ }
+
+ public void characters(char[] ch, int start, int length)
+ throws SAXException {
+ String s = new String(ch, start, length);
+ if (textBuffer == null) {
+ textBuffer = new StringBuffer(s);
+ memoBox.setText(textBuffer.toString().trim());
+
+ } else {
+
+ textBuffer.append(s);
+ memoBox.setText(textBuffer.toString().trim());
+ System.out.println("char " + textBuffer.toString());
+ }
+ }
+ }
+
+}