• 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

INVOKE A .NET WEB SERVICE FROM JAVA

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone!!

I have done a simple web service using microsoft visual studio 2005 and now I need to call this web service from a web aplication develop with eclipse and jboss. I would like to know what tools I need and what I have do for invoke the web service. Is the first time I work with web service so I really need help.

Thanks in advance and sorry for my bad english
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello yara,

I have never implemented web services using .NET but I think this should work.

Obtain the wsdl of ur .NET service then using Apache Axis (refer to Apache axis website for installing, configuring, using etc etc) wsdl2java tool u can create the stubs.

Write a simple java program to call ur service and that it.

Apache Axis website has good documentation and code examples on its usage.
 
yara becker
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply!

I have used wsdl2java to create the java classes but when I copy this classes to a package of my web application, build faild and I don't know how to call the service
 
Manhar Puri
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this link

http://ws.apache.org/axis/java/user-guide.html

Let me know if you still have questions
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It may be helpful to have a full example of a working Java client generated partly by wsdl2java; this article provides that. Just ignore the part about the writing of the service itself, and concentrate on the WSDL being gotten for purposes of running wsdl2java.
 
yara becker
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks again.

I could manage to call the service, there is a problem with a redirection but the .NET web service is responsible not me :-).

As always, thanks
reply
    Bookmark Topic Watch Topic
  • New Topic