File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes INVOKE A .NET WEB SERVICE FROM JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "INVOKE A .NET WEB SERVICE FROM JAVA" Watch "INVOKE A .NET WEB SERVICE FROM JAVA" New topic
Author

INVOKE A .NET WEB SERVICE FROM JAVA

yara becker
Greenhorn

Joined: Apr 29, 2006
Posts: 9
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

Joined: Aug 23, 2005
Posts: 41
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

Joined: Apr 29, 2006
Posts: 9
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

Joined: Aug 23, 2005
Posts: 41
Try this link

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

Let me know if you still have questions
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42944
    
  68
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

Joined: Apr 29, 2006
Posts: 9
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
 
subject: INVOKE A .NET WEB SERVICE FROM JAVA