How to connect to a Web Service?
843851May 27 2010 — edited Jul 16 2010Hi,
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?