You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ferry Sumendap <fe...@yahoo.com> on 2008/12/01 04:17:15 UTC

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 <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, José Ferreiro <jo...@gmail.com> wrote:
From: José Ferreiro <jo...@gmail.com>
Subject: Re: .NET Web Service is accessed by java program
To: axis-user@ws.apache.org
Date: Thursday, November 27, 2008, 5:40 AM

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 <ib...@yahoo.com> 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 <fe...@yahoo.com>
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.