Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsInvoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/21876/#msg_21876
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!!]]>Guadalupe Mising name2008-11-03T08:35:43-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/567591/#msg_567591
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!!]]>Gustavo de Paula2008-11-03T18:35:08-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/21927/#msg_21927
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!!]]>Gustavo de Paula2008-11-03T18:35:08-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/567618/#msg_567618
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]]>Guadalupe Mising name2008-11-04T08:34:07-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/21972/#msg_21972
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]]>Guadalupe Mising name2008-11-04T08:34:07-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/22016/#msg_22016
run the MIDlet.
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]]>Gustavo de Paula2008-11-04T12:31:42-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/567640/#msg_567640
run the MIDlet.
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]]>Gustavo de Paula2008-11-04T12:31:42-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/22059/#msg_22059
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]]>Guadalupe Mising name2008-11-04T20:04:03-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/567651/#msg_567651
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]]>Guadalupe Mising name2008-11-04T20:04:03-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/22103/#msg_22103
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!]]>Guadalupe Mising name2008-11-05T08:51:47-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/567668/#msg_567668
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!]]>Guadalupe Mising name2008-11-05T08:51:47-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/22307/#msg_22307
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]]>Guadalupe Mising name2008-11-13T14:50:49-00:00Re: Invoking a Web Service from an EclipseMe Cient
https://www.eclipse.org/forums/index.php/mv/msg/7187/567802/#msg_567802
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]]>Guadalupe Mising name2008-11-13T14:50:49-00:00