File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes accessing a .NET webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "accessing a .NET webservice" Watch "accessing a .NET webservice" New topic

accessing a .NET webservice

Natalia Lopez
Ranch Hand

Joined: Feb 17, 2005
Posts: 41
I have a client application in Java and I need to connect to a webservice done in .NET, the service send 2 parameters and return 3 parameters as a response.
I haven't got experience with webservice on .net I was trying without success some examples with axis library. Anybody can send me some tutorials or examples with web services using multiple parameters?
Thanks in advance

Rahul Ravikumar

Joined: Dec 01, 2005
Posts: 6
Since you already have a web service up and running in .NET, it should be very easy to create the client that consumes the service. I would suggest that you start with Axis 1.* series. Axis is a SOAP Toolkit, that automates a lot of the tasks that you do normally with Web services, including WSDL2Java.

Download the latest version of Eclipse for J2EE Developers from (

You need a WSDL file that exposes what services have been implemented in the .NET web service. Once you have the WSDL file, just create a new Dynamic Web Project in Eclipse, and then copy the WSDL to your workspace.

Right click on the WSDL file and then go to Webservices->Generate Client.

Once the generation of the client is done, you should be able to see all the client proxies that are required for consuming the web service. You can then use these proxies in a Java Program / Servlet.

--<br />Rahul
Natalia Lopez
Ranch Hand

Joined: Feb 17, 2005
Posts: 41
Nice, yes you are right I'm using JBuilder but is the same exist a class called ServiceTestCase with all the code I was needed.
I couldn't remmembered that the last web service I developed was 2 years before!!!
Thanks a lot

I agree. Here's the link:
subject: accessing a .NET webservice
jQuery in Action, 3rd edition