Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Chris Brealey is currently offline Chris BrealeyFriend
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 #139976 is a reply to message #139460] Wed, 21 September 2005 14:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lhasik.netbeans.org

Hi Mare,

you can try <a href="http://www.netbeans.info/downloads/download.php?type=4.1">NetBeans4.1 and Mobility Pack 4.1</a> for your development. It's really easy to create a webservice and client for j2me device in this IDE.
<br><br>
Follow <a href="http://www.netbeans.org/kb/41/demo-end2end.html">this tutorial</a> and you'll create webservice and j2me client in few steps (skip the part about creating ejbs if you don't need it)<br>
You can find out more about
<ul>
<li><a href=" http://www.netbeans.org/kb/articles/tutorial-webservice-cons ume-part2.html">Consuming Web Services in NetBeans IDE 4.1</a>
<li><a href="http://www.netbeans.org/kb/41/quickstart-mobility.html">J2ME MIDP Development for NetBeans IDE 4.1 Quick Start Guide</a>
<li><a href=" http://blogs.sun.com/roller/page/lukas/?anchor=connecting_to _a_webservice_in">Follow these steps if you wanna try it in NetBeans 5.0</a> - please note JSR172 on device is neccessary!

</ul>
<br><br>
hope that it helps
Lukas
Re: Web service and access from mobile device [message #140671 is a reply to message #139976] Mon, 26 September 2005 13:04 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:EJB creation wizard dificienciesxx
Next Topic:1.0 M8
Goto Forum:
  


Current Time: Thu Apr 25 04:29:59 GMT 2024

Powered by FUDForum. Page generated in 0.03008 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top