RE: .NET Web Service is accessed by java program
I've generated java proxy classes by just using eclipse. From the java perspective go to FILE>NEW>OTHER>WEB SERVICES> WEB SERVICE CLIENT. Then the wizard will ask you for the location of the wsdl, give it that and then it will generate all the proxy classes for you. That's what I would do. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] g] On Behalf Of Ferry Sumendap Sent: Sunday, November 30, 2008 10:27 PM To: axis-user@ws.apache.org Subject: Re: .NET Web Service is accessed by java program 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 where [options] include: -o output directory -of output file name for the WSDL -sn 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 where [options] include: -o output directory -of output file name for the WSDL -sn service name -laddress of the port for the WSDL -cp list of classpath entries - (urls) -tn 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: axis-user@ws.apache.org 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-tp207 16776p20728135.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]
RE: .NET Web Service is accessed by java program
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] g] On Behalf Of Ferry Sumendap Sent: Sunday, November 30, 2008 10:27 PM To: axis-user@ws.apache.org Subject: Re: .NET Web Service is accessed by java program 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 where [options] include: -o output directory -of output file name for the WSDL -sn 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 where [options] include: -o output directory -of output file name for the WSDL -sn service name -laddress of the port for the WSDL -cp list of classpath entries - (urls) -tn 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: axis-user@ws.apache.org 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-tp207 16776p20728135.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]
Re: .NET Web Service is accessed by java program (updated)
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: axis-user@ws.apache.org 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: axis-user@ws.apache.org 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 where [options] include: -o output directory -of output file name for the WSDL -sn 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 where [options] include: -o output directory -of output file name for the WSDL -sn service name -laddress of the port for the WSDL -cp list of classpath entries - (urls) -tn 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: axis-user@ws.apache.org 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]
Re: .NET Web Service is accessed by java program
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]
Re: .NET Web Service is accessed by java program
Hello Ferry, You need to generate the proxy with the tool wsdl.exe that is in the dotnet framework 2.0 After you generate the proxy you need to write your client. See an example here. Hope this helps. Warmest regards, José Ferreiro On Thu, Nov 27, 2008 at 12:16 PM, ibrahim demir <[EMAIL PROTECTED]>wrote: > Hi; > > No matter if it is .net or in other language. If you can reach the wsdl > file you can generate the code with wsdl2java or Axis2 codegen eclipse > plugin. > > And use the ganareted stub for that: http://wso2.org/library/1719 > > Also you can use the RPC style : > http://ws.apache.org/axis2/1_1/pojoguide.html#servicedef > > Yours > > Ibrahim DEMIR > CyberSoft Yazilim Muh. > http://www.ibrahimdemir.org > > > > > > -- > *From:* Ferry Sumendap <[EMAIL PROTECTED]> > *To:* axis-user@ws.apache.org > *Sent:* Thursday, November 27, 2008 12:32:48 PM > *Subject:* .NET Web Service is accessed by java program > > > 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 > > > > -- José Ferreiro MSc in Communication Systems, EPFL.
Re: .NET Web Service is accessed by java program
Hi; No matter if it is .net or in other language. If you can reach the wsdl file you can generate the code with wsdl2java or Axis2 codegen eclipse plugin. And use the ganareted stub for that: http://wso2.org/library/1719 Also you can use the RPC style : http://ws.apache.org/axis2/1_1/pojoguide.html#servicedef Yours Ibrahim DEMIR CyberSoft Yazilim Muh. http://www.ibrahimdemir.org From: Ferry Sumendap <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Thursday, November 27, 2008 12:32:48 PM Subject: .NET Web Service is accessed by java program 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
.NET Web Service is accessed by java program
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