• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieve XML from a WebService

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic