| 
| Invoking a Web Service from an EclipseMe Cient [message #21876] | Mon, 03 November 2008 03:35  |  | 
| Eclipse User  |  |  |  |  | Hi all, I finally changed my eclipse version and eclipseMe seems to be working ok.
 I want to invoke a web service from an EclipseMe Application and I have
 not a clue of how to start.
 First let me say I am working with RSA (which is over Eclipse)
 My first attempt was creating the web service client and then try to
 convert it into a mobile application (through the use of MTJ --> Convert
 to Midlet Project)
 
 I found 4 errors when doing so:
 First was solved changing the jre to 1.6.
 
 I am still dealing with the following three:
 * Error preverifying class mipaquete.MiServicioService
 java/lang/NoClassDefFoundError: javax/xml/ws/Service
 * Error preverifying class mipaquete.ObjectFactory
 VERIFIER ERROR
 mipaquete/ObjectFactory.createMiOperacion(Lmipaquete/MiOpera cion;)Ljavax/xml/bind/JAXBElement;:
 Illegal type in constant pool
 * Type mipaquete.MiServicioPortProxy$Descriptor Error preverifying class
 mipaquete.MiServicioPortProxy$Descriptor
 VERIFIER ERROR
 mipaquete/MiServicioPortProxy$Descriptor.getDispatch()Ljavax /xml/ws/Dispatch;:
 Illegal type in constant pool
 
 I only started to solve the first one. I assumed that I have to add the
 right .jar to manifest file (please let me know if I am wrong). I tried to
 do by adding the textual classpath rt.jar, however I am not able to give
 it the right path:
 C:\Archivos de programa\IBM\SDP\runtimes\base_v7_stub\java\jre\lib\rt.jar
 (even though I split the too long sentence into two and I include an space
 at the beginning of the second, I still get an error when saving)
 
 I would appreciate any help
 A) to solve the existing problems
 or
 B) To create a web service client in an EclipseME application through any
 other method.
 
 Thank-you very much in advance,
 Guadalupe
 PS Any clue is welcomed!!
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
|  | 
| 
| Re: Invoking a Web Service from an EclipseMe Cient [message #22307 is a reply to message #22016] | Thu, 13 November 2008 09:50  |  | 
| Eclipse User  |  |  |  |  | Dear Gustavo, I am still trying to create the web service client.
 I have avoided a lot of problem when I have stopped using WebSphere and
 started using Tomcat with Axis.
 Now I do not have any problem at compilation time but when I try to
 execute the midlet (in which I only include the creation of the proxy), I
 get the following error in the midlet start method:
 java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
 
 I have included de j2ee.jar which contains the class
 javax/xml/rpc/ServiceException in the building path, but I still got the
 same problem.
 
 Any suggestion to this?
 
 Thanks a lot again,
 Guadalupe
 |  |  |  | 
| 
| Re: Invoking a Web Service from an EclipseMe Cient [message #567591 is a reply to message #21876] | Mon, 03 November 2008 13:35  |  | 
| Eclipse User  |  |  |  |  | hi Guadalupe 
 when you convert the project, please use "File->Import->JavaME->EclipseME
 Project"
 
 then you can select your eclipseme projects and they will be automatically
 converted to MTJ.
 
 which SDK are you using?
 
 :)
 gustavo
 
 Guadalupe wrote:
 
 > Hi all,
 > I finally changed my eclipse version and eclipseMe seems to be working ok.
 > I want to invoke a web service from an EclipseMe Application and I have
 > not a clue of how to start.
 > First let me say I am working with RSA (which is over Eclipse)
 > My first attempt was creating the web service client and then try to
 > convert it into a mobile application (through the use of MTJ --> Convert
 > to Midlet Project)
 
 > I found 4 errors when doing so:
 > First was solved changing the jre to 1.6.
 
 > I am still dealing with the following three:
 > * Error preverifying class mipaquete.MiServicioService
 >     java/lang/NoClassDefFoundError: javax/xml/ws/Service
 > * Error preverifying class mipaquete.ObjectFactory
 >     VERIFIER ERROR
 >
 mipaquete/ObjectFactory.createMiOperacion(Lmipaquete/MiOpera cion;)Ljavax/xml/bind/JAXBElement;:
 > Illegal type in constant pool
 > * Type mipaquete.MiServicioPortProxy$Descriptor Error preverifying class
 > mipaquete.MiServicioPortProxy$Descriptor
 >     VERIFIER ERROR
 >
 mipaquete/MiServicioPortProxy$Descriptor.getDispatch()Ljavax /xml/ws/Dispatch;:
 > Illegal type in constant pool
 
 > I only started to solve the first one. I assumed that I have to add the
 > right .jar to manifest file (please let me know if I am wrong). I tried to
 > do by adding the textual classpath rt.jar, however I am not able to give
 > it the right path:
 > C:Archivos de programaIBMSDPruntimesbase_v7_stubjavajrelibrt.jar
 > (even though I split the too long sentence into two and I include an space
 > at the beginning of the second, I still get an error when saving)
 
 > I would appreciate any help
 > A) to solve the existing problems
 > or
 > B) To create a web service client in an EclipseME application through any
 > other method.
 
 > Thank-you very much in advance,
 > Guadalupe
 > PS Any clue is welcomed!!
 |  |  |  | 
| 
| Re: Invoking a Web Service from an EclipseMe Cient [message #567618 is a reply to message #21927] | Tue, 04 November 2008 03:34  |  | 
| Eclipse User  |  |  |  |  | Hi Gustavo, When I said I was using EclipseMe, I meant MTJ (last stable version 0.9),
 sorry about the misunderstanding.
 
 Anyway, if I still have to go to File -> Import -> JavaMe -> EclipseMe
 Project, what should I import? I do not have a JavaME project to import
 since what I did is converting a Java Web Service Client into an MTK
 Project?
 
 I am using Rational Software Architecture 7.5. I also installed Sun Java
 wireless Toolkit 2.5.2 for CDLD and MTJ 0.9.
 
 Looking forward to your suggestions.
 Thanks a lot,
 Guadalupe
 |  |  |  | 
| 
| Re: Invoking a Web Service from an EclipseMe Cient [message #567640 is a reply to message #21972] | Tue, 04 November 2008 07:31  |  | 
| Eclipse User  |  |  |  |  | if your project is already a MTJ project, then you won't have problems to run the MIDlet.
 
 i'm not an expert on JavaME webservice api, but here are some tutorials
 that you can refer about how to use it
 https://developer.sonyericsson.com/site/global/newsandevents /latestnews/newsaugust06/p_web_services_tutorial_jsr172.jsp
 http://www.ibm.com/developerworks/wireless/library/wi-jsr/
 
 hope that is helps.
 
 we plan to add in the future some code templates on MTJ. i will add to the
 list of templates a web service one that will make it a little easy to
 develop a web service midlet
 
 :)
 gustavo
 
 Guadalupe wrote:
 
 > Hi Gustavo,
 > When I said I was using EclipseMe, I meant MTJ (last stable version 0.9),
 > sorry about the misunderstanding.
 
 > Anyway, if I still have to go to File -> Import -> JavaMe -> EclipseMe
 > Project, what should I import? I do not have a JavaME project to import
 > since what I did is converting a Java Web Service Client into an MTK
 > Project?
 
 > I am using Rational Software Architecture 7.5. I also installed Sun Java
 > wireless Toolkit 2.5.2 for CDLD and MTJ 0.9.
 
 > Looking forward to your suggestions.
 > Thanks a lot,
 > Guadalupe
 |  |  |  | 
| 
| Re: Invoking a Web Service from an EclipseMe Cient [message #567651 is a reply to message #22016] | Tue, 04 November 2008 15:04  |  | 
| Eclipse User  |  |  |  |  | Dear Gustavo, Thanks a lot for your answer. IN fact I had started to go that way.
 So I created The Midlet Project and created a web service stub following
 the RSA procedure.
 First of all I had problems with some classes that could not be
 identified, but after adding the corresponding jars to the "Referenced
 libraries" it seems that those erros are solved. Still, in this regard I
 have one doubt, do I have to select and order them in the construction
 access order?
 
 By my main problem is I still have an error in the project, apparently no
 located in any specific line and the information I got is something like
 "Classes access way/path variable not linked:
 WAS_V7_WEBSERVICES_THINCLIENT" in the current project.
 
 The links you sent me are very useful for procedure, however they are
 obsolete so I can not exactly follow their procedure.
 
 Any help with this errors is welcomed.
 Thanks again,
 Guadalupe
 |  |  |  | 
| 
| Re: Invoking a Web Service from an EclipseMe Cient [message #567668 is a reply to message #22016] | Wed, 05 November 2008 03:51  |  | 
| Eclipse User  |  |  |  |  | Hi again, Gustavo, It seems I found the right jars for the thin client and now I have no
 compilation error. I will have to guess how to write the ws invocation
 code (I will check your examples code). I will come back with new problems
 once I work on it.
 Thanks a lot!
 |  |  |  | 
| 
| Re: Invoking a Web Service from an EclipseMe Cient [message #567802 is a reply to message #22016] | Thu, 13 November 2008 09:50  |  | 
| Eclipse User  |  |  |  |  | Dear Gustavo, I am still trying to create the web service client.
 I have avoided a lot of problem when I have stopped using WebSphere and
 started using Tomcat with Axis.
 Now I do not have any problem at compilation time but when I try to
 execute the midlet (in which I only include the creation of the proxy), I
 get the following error in the midlet start method:
 java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
 
 I have included de j2ee.jar which contains the class
 javax/xml/rpc/ServiceException in the building path, but I still got the
 same problem.
 
 Any suggestion to this?
 
 Thanks a lot again,
 Guadalupe
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.31534 seconds