aspose file tools*
The moose likes Web Services and the fly likes webservices in web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "webservices in web.xml" Watch "webservices in web.xml" New topic
Author

webservices in web.xml

Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
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
Marshal

Joined: Mar 22, 2005
Posts: 41461
    
  51
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.


Ping & DNS - my free Android networking tools app
Muhammad Imad Qureshi
Ranch Hand

Joined: Sep 13, 2005
Posts: 238
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
Marshal

Joined: Mar 22, 2005
Posts: 41461
    
  51
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
 
subject: webservices in web.xml