Home » Language IDEs » ServerTools (WTP) » Web service and access from mobile device
Web service and access from mobile device [message #139460] |
Mon, 19 September 2005 12:48 |
Eclipse User |
|
|
|
Originally posted by: mare1748.yahoo.com
Hello,
I'm very very new here (and not only here), so firstly I apologize if
writing to the wrong ML or asking stupid questions, but I have a short
time to do some work + I figure if smth is wrong, simply no one will
answer me..
I must do a Web service using Java, and access it from a mobile device
(using J2ME, MIDlet)
I'm starting from 0.. (I know, RTFM:) so I did steps from
http://www.eclipse.org/webtools/index.html
but now don't know what to do next, what kind of plugins or extra tools i
need, etc...
I hope someone will help me soon.
Best regards,
Mare
|
|
|
Re: Web service and access from mobile device [message #139802 is a reply to message #139460] |
Tue, 20 September 2005 19:31 |
Chris Brealey Messages: 104 Registered: July 2009 |
Senior Member |
|
|
Mare,
have you tried following either the bottom-up [1] or top-down [2] Web service
tutorials to create a new Web service? These tutorials show how to create a
Web service and the WSDL document that describes it. Once you have a WSDL
document, you can move on to developing a mobile client - and that's
something I can't much help with, having never tried it myself. I found an
alphaWorks project that might merit a look [3].
[1]
http://www.eclipse.org/webtools/jst/components/ws/0.7/tutori als/BottomUpWebService.html
[2]
http://www.eclipse.org/webtools/jst/components/ws/0.7/tutori als/TopDownWebService.html
[3] http://www.alphaworks.ibm.com/tech/wstkmd
Mare wrote:
> Hello,
>
> I'm very very new here (and not only here), so firstly I apologize if
> writing to the wrong ML or asking stupid questions, but I have a short
> time to do some work + I figure if smth is wrong, simply no one will
> answer me..
>
> I must do a Web service using Java, and access it from a mobile device
> (using J2ME, MIDlet)
> I'm starting from 0.. (I know, RTFM:) so I did steps from
> http://www.eclipse.org/webtools/index.html
> but now don't know what to do next, what kind of plugins or extra tools i
> need, etc...
>
> I hope someone will help me soon.
>
> Best regards,
> Mare
|
|
| |
Re: Web service and access from mobile device [message #140671 is a reply to message #139976] |
Mon, 26 September 2005 13:04 |
Eclipse User |
|
|
|
Originally posted by: mare1748.yahoo.com
Hey, Lukas, thanx a lot!
Now WS seems to work concerning the concept, but i have some basic errors
in deploying the example application.. from
http://www.netbeans.org/kb/41/demo-end2end.html
In part "Create a Session Bean that accesses the CMP", when i put the code
inside the getDiscount() method, error report says "cannot find symbol,
symbol name: class Iterator"
Since I was only trying to run the example, i only made changes requested
in the tutorial.
Therefore I also have some probs with the server (HTTP Status 500),saying:
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
[javac]
C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-apps\cus tomerapp\CustomerApp-WebModule_war\org\apache\jsp\index_jsp. java:91:
cannot find symbol
[javac] symbol : method lookupCustomerFacadeBean()
[javac] location: class foo.Locator
[javac] CustomerFacadeLocal c = l.lookupCustomerFacadeBean();
Also, when running the MobileCustomer, the exit command doesn't work,
doesn't even show, although it's there when viewing the Form screen
Can u please alos help me with this, I don't know what I'm doing wrong..
Anyway, thank you a lot,
Mare
|
|
|
Re: Web service and access from mobile device [message #140704 is a reply to message #140671] |
Mon, 26 September 2005 15:05 |
Eclipse User |
|
|
|
Originally posted by: gsporar.netbeans.org
>cannot find symbol,symbol name: class Iterator" Since I was only trying to run the example, i only made changes requested in the tutorial.
Try this. Open CustomerFacade.java and then right-click anywhere in the editor window that displays for CustomerFacade.java. Choose <b>Fix Imports</b> from the popup menu. Then recompile.
|
|
|
Goto Forum:
Current Time: Thu Apr 25 04:29:59 GMT 2024
Powered by FUDForum. Page generated in 0.03008 seconds
|