Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to connect to a Web Service?

843851May 27 2010 — edited Jul 16 2010
Hi,

I have to connect to a Web Service from my J2ME application. I was thinking that, we can retrieve data from a Web Service using Httpconnection and streams. But I couldn't do like that. Then I came to know that, by using stub generator we can retrive the data in xml format if we locate WSDL file of that web service (JSR 172). So, in stub generator, I located the WSDL file, output path and gave output package name. But it's showing

{color:#800000}Stub Generation failed
error:modeler error:model error:invalid entity name:"schema" (in namespace: "http://www.w3.org/2001/XMLSchema")
{color}
The web service is created using .NET and can anyone help me in this issue? (I'm using WTK 2.5.2). If i can generate the stub classes using this WSDL file, it will be highly beneficial. Otherwise, is there any other way to connect a MIDlet to a Web Service and retrieve data?

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 13 2010
Added on May 27 2010
5 comments
222 views