aspose file tools*
The moose likes Web Services and the fly likes How is it determined what web service artifacts are Published to data/wsdl? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How is it determined what web service artifacts are Published to data/wsdl?" Watch "How is it determined what web service artifacts are Published to data/wsdl?" New topic
Author

How is it determined what web service artifacts are Published to data/wsdl?

Ronnie Spike
Greenhorn

Joined: Oct 29, 2009
Posts: 2
I'm deploying a group of web services to JBoss. I used NetBeans to generate the java code from wsdl. The following annotation is in the impl class:

wsdlLocation = "WEB-INF/wsdl/BrokeredNotification/brw-2Wrapper.wsdl"

When the server is started and JBoss logs

INFO [org.jboss.wsf.stack.jbws.WSDLFilePublisher] WSDL published to: /server//data/wsdl/.war/BrokeredNotification/brw-2Wrapper.wsdl

not all .xsd artifacts are being placed in said directory. They DO exist in the .war file under WEB-INF/wsdl/BrokeredNotification.

I first tried deploying with the artifacts in a directory hierarchy, then with a flattened directory.

This causes an exception when a client calls the web service because the artifacts can't be found. Don't have that exception before me, but if it's needed to answer my question, I can provide.

Thanks!

Spike
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Have you tried to put the WSDL and the XML schemas in WEB-INF/wsdl/ of the WAR and also changing the wsdlLocation in the @WebService annotation accordingly?
Best wishes!
Ronnie Spike
Greenhorn

Joined: Oct 29, 2009
Posts: 2
Thanks, Ivan.

Yes, the annotation has the property

wsdlLocation = "WEB-INF/wsdl/BrokeredNotification/brw-2Wrapper.wsdl

and all the .xsds and .wsdls are at WEB-INF/wsdl/BrokeredNotification in the .war file.

All refs are local, e.g. schemaLocation="dilCacheFaults.xsd"

I have another web service deployed using the same wsdl, except the xsd refs use a directory hierarchy. Presently I'm going to focus on getting the client to not ask for the artifacts, as all the classes it needs are already available. I believe I already do this somewhere else....

Spike
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I meant to ask if you have tried putting the WSDL and XML schemas directly in the WEB-INF/wsdl directory, without the nested BrokeredNotification directory?
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How is it determined what web service artifacts are Published to data/wsdl?