Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing a .NET webservice

 
Natalia Lopez
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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

Natalia
 
Rahul Ravikumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 (http://www.eclipse.org/downloads/).

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.
 
Natalia Lopez
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

Natalia
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic