File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

webservices in web.xml

 
Muhammad Imad Qureshi
Ranch Hand
Posts: 238
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic