• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

accessing a .NET webservice

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic