Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need a simple to follow example for building a web service  RSS feed

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need a simple example of how to build a webservice for the weblogic environment using a odinary class as the example.

The weblogic example given in C:\bea\weblogic81\samples\server\examples\src\examples\webservices\basic\javaclass\package-summary.html

is wrong in that it uses the servicegen WebLogic Ant task that automatically generates:

a client JAR file in a waf file that is not under web-inf/lib/ and so causing a NoClassDefFoundError.

So it looks as if I will need to create the webservice by hand , but do not have much experince in this fiels.

Thanks for any help

Tony
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find some step-by-step tutorials linked in the Web Servicces FAQ. Those are not Weblogic-specific, though.

But I'm confused over what you write: The client jar file wouldn't go into the WEB-INF/lib directory; it can be whereever the client is installed. It's strange that it is inside a war file, though. But if the only problem is a NoClassDefFoundError, it shouldn't be too hard to take care of that by rearranging the classes, no?
 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying, I am afraid that I got confused, Monday morning and not understanding the example properly, the client jar which contained the calling stubs was not needed in the war file, but was needed in the ear with the program calling the web service. This has now been sorted out. Thansk again

Tony
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!