• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

webservices in web.xml

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a full working web service in my existing application. It is decalred in web.xml as follows

<servlet>
<servlet-name>IntegrationDelegate</servlet-name>
<servlet-class>org.jboss.webservice.server.ServiceEndpointServletJSE</servlet-class>
<init-param>
<param-name>WebServiceID</param-name>
<param-value>r911.ear/r911.war#PortComponent</param-value>
</init-param>
<init-param>
<param-name>ServiceEndpointImpl</param-name>
<param-value>com.r911.core.delegate.IntegrationDelegateImpl</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

In my jboss I have a folder called jboss-ws4ee.sar which seems to contain axis. Can someone explain how this web service is created because I would like to create a new one the same way.
Thanks
Imad
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that's more of a question for the JBoss forum, because what you have there is an ordinary servlet declaration with a few parameters. If it somehow does Web Service stuff, then that's due to what the servlet does, which should (hopefully) be explained in the JBoss documentation.
 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figure that out. You are right it was a jboss thing. I have one more question though. In my jboss I have axis-ws4ee.jar which is apparently the same as axis.jar. This jar file also has a java2wsdl class. I have seen a example online which shows using this class from ant build. But In my application where a web service is running and everything in place I dont see anything in build.xml that is using this Java2WSDL class to create wsdl document. How can I create a wsdl using this Java2WSDL class but not from build.xml.

Thanks a lot
Imad
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Ant task is just a wrapper around the classes that implement java2wsdl. If you look at the source code of the task you should be able to figure out which classes are needed and which parameters they require. With that information you can invoke those classes directly.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic