Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web services

 
Sanjeev Jha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Billy Fence
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic