Hi; What about reading this tutorial http://wso2.org/library/1719#CodeGenerator
I think there must be no problem after reading this one. The last step shows how to use the generated stubs. Yours. Ibrahim DEMIR CyberSoft Yazilim Muh. http://www.ibrahimdemir.org ________________________________ From: Ferry Sumendap <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, December 1, 2008 7:36:31 AM Subject: Re: .NET Web Service is accessed by java program (updated) Hello everybody, finally, the Stub java class using java2wsdl.bat using runGenerate.cmd which is similar to the content of java2wsdl.bat. I am also wondering why previously I did not success generate the stub java class using runGenerate.cmd. Even though the stub class has been generated, I don't know how to start writing public static void main to access the .NET webservice methods. How to call .NET webservice method and get the output given by .NET webservice are still mysteries for me. :) Anybody who knows about that, please help me.. Since the program java client should be light, I am planing not to use Tomcat and Axis server if possible... Thank you very much. Regards, Ferry --- On Sun, 11/30/08, Ferry Sumendap <[EMAIL PROTECTED]> wrote: From: Ferry Sumendap <[EMAIL PROTECTED]> Subject: Re: .NET Web Service is accessed by java program To: [email protected] Date: Sunday, November 30, 2008, 8:27 PM Thank you very much for all your responses. I have extracted axis 2 and put it in folder (H:\axis2-1.4.1) I also have started the .NET webservice which I can open its service via Internet browser (http://localhost:2242/WebSite1/Service.asmx).I have tested that the .NET webservice works properly. But when I want to generate its proxy by running java2wsdl.bat this message always shown up. H:\axis2-1.4.1\bin>java2wsdl.bat -uri http://localhost:2242/WebSite1/Service.asmx?WSDL Using AXIS2_HOME: H:\axis2-1.4.1 Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_02 Usage: java2wsdl [options] -cn <fully qualified class name> where [options] include: -o <output location> output directory -of <output file name> output file name for the WSDL -sn <service name> service name H:\axis2-1.4.1\bin>java2wsdl.bat http://localhost:2242/WebSite1/Service.asmx?WSDL Using AXIS2_HOME: H:\axis2-1.4.1 Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_02 Usage: java2wsdl [options] -cn <fully qualified class name> where [options] include: -o <output location> output directory -of <output file name> output file name for the WSDL -sn <service name> service name -l <soap address> address of the port for the WSDL -cp <class path uri> list of classpath entries - (urls) -tn <target namespace> target namespace for service Or should I execute wsdl.exe to generate wsdl file ? does java2wsdl.bat also support for .NET web service or just AXIS Web Service ? Basically, I just want to write java program (desktop program, standalone without need to run Axis Server, or Tomcat if possible) to access the .NET webservice method (ConcatWithSpace, HelloWorld, etc). Is it possible and what is the next step ? Thank you very much. Regards, Ferry --- On Thu, 11/27/08, Marc F. <[EMAIL PROTECTED]> wrote: From: Marc F. <[EMAIL PROTECTED]> Subject: Re: .NET Web Service is accessed by java program To: [email protected] Date: Thursday, November 27, 2008, 6:28 PM Ferry Sumendap wrote: > > > Hello everybody, > I am looking for a sample code how java access / call /execute functions > which are available at .NET Web Service (.NET framework 2.0). > The java program should retrieve the XML response (output) from the web > service . > If anyone knows tutorial about this matter, please let me know the url... > :) > > Thank you very much. > > Regards, > Ferry > Web services technology is supposed to guarantee interoperability between two different platforms, like Java and .NET. This interoperability is not perfect yet, but in most cases it works very well. Does the .NET webservice have the wsdl? If yes, then, for example, using Axis2 you can generate all the client code you need, from the wsdl, in order to use that .NET web service. -- View this message in context: http://www.nabble.com/.NET-Web-Service-is-accessed-by-java-program-tp20716776p20728135.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
