• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ronnie Spike
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic