tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: JAX-WS: Reading WSDL file from JAR file
Date Tue, 01 Jul 2014 19:00:05 GMT
Hi

should be the resource path (classloader.getResource).


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-07-01 19:58 GMT+02:00 Chris Owens <ctag+openejb@chris-owens.com>:
> Using tomee-plus, I have a contract-first deployment of some jax-ws web
> services. (i.e. I'm providing the WSDL file, rather than asking the server
> to create one on the fly.)
>
> I have a singleton class and an interface, both annotated with @WebService.
>
> I am trying to provide the WSDL file location as part of the annotation.
>
> This works, assuming that I've put the wsdl file in the right place in the
> .war
>
>
>
> But what I would really like to do is read the WSDL file from a .jar file
> which has been included in the .war
>
> In other words, the wsdl is in, say, META-INF/wsdl/foo.wsdl within
> fooService.jar
>
> I have seen numerous web queries and answers on this, including the use of
> "classpath:wsdl/foo.wsdl" and variants, to invoke a resource loader that
> reads files from the classpath. I have not been able to get any of them to
> work.  The code that parses the wsdlLocation (string? URL? URI?) seems to be
> buried somewhere that I can't find it.
>
> Can I do this?  How?
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/JAX-WS-Reading-WSDL-file-from-JAR-file-tp4670256.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message