Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieve XML from a WebService  RSS feed

 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sending XML to a web service is easy, i can use JAXB. But when retrieving, JAXB seems to not be supported by J2ME since i always get a class cast exception.

What else can i do to retrieve XML code ?
 
Srinath Gamage
Ranch Hand
Posts: 40
Google App Engine Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you try KSOAP2 ?
I have used it to connect with web services and free of trouble.
 
Alex Parvan
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Srinath Gamage wrote:Why don't you try KSOAP2 ?
I have used it to connect with web services and free of trouble.

Yes, thank you for reminding me, i already did that, but i forgot to post the code... if someone needs it:


Download kSOAP2 and add the jar to your J2ME project.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!