• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic