help on webservice in j2me(jsr172)urgent!!!

hi,

can any body help me how to implement web services on j2me? I'm trying to run the demo application jsr172Demo that comes with wtk2.2

The problem i'm facing is that it is giving error: Connection problem:

check your internet/proxy setting

our n/w is not running over any proxy.please help if any body having any idea why this is happening?

Thanks in advance

[399 byte] By [java_at_corea] at [2007-11-27 3:57:37]
# 1
why is it so urgent?
suparenoa at 2007-7-12 9:01:57 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
hi, it is urgent because I have short deadlines on the project.If possible plz help meThanx
java_at_corea at 2007-7-12 9:01:57 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

have you read this...

This is simple service implementation which can be used with JSR172 aware

J2EE client.

BUILD AND RUN INSTRUCTIONS:

You need JWSDP-1.2 (Java Web Services Development Pack) which can be found here:

http://developer.java.sun.com/developer/technicalArticles/WebServices/wsj2ee/

Set environment variables:

JAVA_HOME=<Java installation path>

TOMCAT_HOME=<JWSDP-1.2 installation path>

You can build and start the service with following commands:

build.sh or build.bat

deploy.sh or deploy.bat

You can check the service is up and running with browser, open url:

http://localhost:8080/serverscript/serverscript

You should see here some information about the service and

link to wsdl file (this wsdl file corresponds to this localhost url).

If you want to test a client from a local url, you need to regenerate

the connector classes in JSR172Demo client using this wsdl file.

suparenoa at 2007-7-12 9:01:57 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
and don't forget the dukes! http://forum.java.sun.com/thread.jspa?threadID=5170986&tstart=0
suparenoa at 2007-7-12 9:01:57 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
where to find start.sh/batch and build.sh/batch?plz reply
java_at_corea at 2007-7-12 9:01:57 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
sorry, build.sh or build.bat deploy.sh or deploy.batwhere to find these files?plz help
java_at_corea at 2007-7-12 9:01:57 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7

try in your ***...

if you don't find them, you can explore the JSR172Demo folder in the WTK 2.2/apps/ folder

here is the structure: (this is a linux command)

-@-:/WTK2.2/apps/JSR172Demo$ ls -lhR

.:

total 36K

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 bin

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 classes

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 lib

-rw-r--r-- 1 - -94 2007-01-09 11:59 project.properties

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 res

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 server

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 src

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 tmpclasses

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 tmplib

./bin:

total 28K

-rw-r--r-- 1 - - 1,3K 2007-01-09 11:59 build.sh

-rw-r--r-- 1 - - 333 2007-01-09 11:59 JSR172Demo.jad

-rw-r--r-- 1 - - 9,0K 2007-01-09 11:59 JSR172Demo.jar

-rw-r--r-- 1 - - 280 2007-01-09 11:59 MANIFEST.MF

-rw-r--r-- 1 - - 450 2007-01-09 11:59 run.sh

./classes:

total 4,0K

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 example

./classes/example:

total 4,0K

drwxr-xr-x 4 - - 4,0K 2007-01-09 11:59 serverscript

./classes/example/serverscript:

total 8,0K

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 connector

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 demo

./classes/example/serverscript/connector:

total 16K

-rw-r--r-- 1 - - 245 2007-01-09 11:59 Interface.class

-rw-r--r-- 1 - - 3,7K 2007-01-09 11:59 Interface_Stub.class

-rw-r--r-- 1 - - 544 2007-01-09 11:59 Request.class

-rw-r--r-- 1 - - 379 2007-01-09 11:59 RequestResponse.class

./classes/example/serverscript/demo:

total 12K

-rw-r--r-- 1 - - 5,6K 2007-01-09 11:59 Demo.class

-rw-r--r-- 1 - - 3,7K 2007-01-09 11:59 Demo$ParserHandler.class

./lib:

total 4,0K

-rw-r--r-- 1 - - 404 2007-01-09 11:59 README.txt

./res:

total 4,0K

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 icons

./res/icons:

total 4,0K

-rw-r--r-- 1 - - 190 2007-01-09 11:59 demo.png

./server:

total 16K

-rw-r--r-- 1 - - 1,7K 2007-01-09 11:59 build.sh

-rw-r--r-- 1 - - 892 2007-01-09 11:59 README.txt

-rw-r--r-- 1 - - 1,4K 2007-01-09 11:59 run.sh

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 src

./server/src:

total 16K

-rw-r--r-- 1 - - 409 2007-01-09 11:59 config.xml

-rw-r--r-- 1 - - 677 2007-01-09 11:59 jaxrpc-ri.xml

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 serverscript

-rw-r--r-- 1 - - 102 2007-01-09 11:59 web.xml

./server/src/serverscript:

total 20K

-rw-r--r-- 1 - - 13K 2007-01-09 11:59 Implementation.java

-rw-r--r-- 1 - - 1,1K 2007-01-09 11:59 Interface.java

./src:

total 8,0K

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 example

-rw-r--r-- 1 - - 2,2K 2007-01-09 11:59 serverscript.wsdl

./src/example:

total 4,0K

drwxr-xr-x 4 - - 4,0K 2007-01-09 11:59 serverscript

./src/example/serverscript:

total 8,0K

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 connector

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 demo

./src/example/serverscript/connector:

total 20K

-rw-r--r-- 1 - - 502 2007-01-09 11:59 Interface.java

-rw-r--r-- 1 - - 4,8K 2007-01-09 11:59 Interface_Stub.java

-rw-r--r-- 1 - - 1,1K 2007-01-09 11:59 Request.java

-rw-r--r-- 1 - - 817 2007-01-09 11:59 RequestResponse.java

./src/example/serverscript/demo:

total 12K

-rw-r--r-- 1 - - 12K 2007-01-09 11:59 Demo.java

./tmpclasses:

total 4,0K

drwxr-xr-x 3 - - 4,0K 2007-01-09 11:59 example

./tmpclasses/example:

total 4,0K

drwxr-xr-x 4 - - 4,0K 2007-01-09 11:59 serverscript

./tmpclasses/example/serverscript:

total 8,0K

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 connector

drwxr-xr-x 2 - - 4,0K 2007-01-09 11:59 demo

./tmpclasses/example/serverscript/connector:

total 16K

-rw-r--r-- 1 - - 245 2007-01-09 11:59 Interface.class

-rw-r--r-- 1 - - 3,4K 2007-01-09 11:59 Interface_Stub.class

-rw-r--r-- 1 - - 544 2007-01-09 11:59 Request.class

-rw-r--r-- 1 - - 379 2007-01-09 11:59 RequestResponse.class

./tmpclasses/example/serverscript/demo:

total 12K

-rw-r--r-- 1 - - 5,3K 2007-01-09 11:59 Demo.class

-rw-r--r-- 1 - - 3,3K 2007-01-09 11:59 Demo$ParserHandler.class

suparenoa at 2007-7-12 9:01:57 > top of Java-index,Java Mobility Forums,Java ME Technologies...