File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

INVOKE A .NET WEB SERVICE FROM JAVA

 
yara becker
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Manhar Puri
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic