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 web services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "web services" Watch "web services" New topic
Author

web services

Sanjeev Jha
Greenhorn

Joined: Jun 26, 2003
Posts: 2
Does anyone knows how to call a .Net web service from a JSP Page.
NB: I have a .Net web Service running on a box and i have a seperate appilication(JSp Pages)running on weblogic server on a different box. My problem here is that i dont know how to accessthis web service from my JSp page. Can anyone help.
[ August 13, 2003: Message edited by: Sanjeev Jha ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
First of all, the whole point of web services standards is that you don't need to care whether the service you're calling is implemented in .NET, Java, PHP or what not. Second, you call web services from a JSP exactly like you would from a servlet, or any other plain old Java class.
Anyway, here are some JSP-related samples:
http://www.macromedia.com/support/jrun/extend/using_web_services/using_web_services04.html (not JRun specific despite the source)
http://otn.oracle.com/sample_code/tech/java/codesnippet/webservices/wstags/content.html (requires Oracle9iAS)
http://www.servletsuite.com/servlets/soaptag.htm (another SOAP taglib)


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Billy Fence
Greenhorn

Joined: Jul 17, 2003
Posts: 17
Lasse, your explaination works in an ideal world. I'm starting to look into webservices so I can't speak too much but having heard from experts in our place there's a lot not right because of soap 1.1. I've seen wsdl's that work fine with wasp 4.5 or 4.6 and weblogic 6.1 and .net but when you use the same wsdl and weblogic 7, axis etc. etc. it all doesn't work anymore. Client calls simply do not what you'd expect. So in theory it works. In practice with a lot of vendors and a not fully matured soap definition, as a developer, you're bound to find trouble.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
True, there's always complications. Fortunately, there are solutions as well. Personally, I would just go ahead trusting that it will work (and that you'll overcome any problems you encounter on the way). Ofcourse, assuming that what you're doing is supposed to work in the first place...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web services