You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Max Pimm <ma...@gmail.com> on 2013/05/24 22:42:31 UTC

Inline schemas in WSDL

We are using CXF provided by JBoss AS 7 to publish our webservices.

We have a requirement that our WSDL cannot contain schema imports, the WSDL
must contain all our types in one file.

The java types representing the schemas that are being imported are Apache
XML Beans generated classes and we are using the CXF XML Beans binding
libraries to generate JAXB anotated classes that use these types.

How can we coerce CXF into inlining these schemas?

If it is not possible, could we do it by regenerated the schemas using JAXB
and playing with the @XMLSchema annotations?

Thanks
Max

Re: Inline schemas in WSDL

Posted by iris ding <ir...@gmail.com>.
you can set "org.apache.cxf.wsdl.create.imports=false" to do this. 



--
View this message in context: http://cxf.547215.n5.nabble.com/Inline-schemas-in-WSDL-tp5728393p5729538.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Inline schemas in WSDL

Posted by Jason Pell <ja...@pellcorp.com>.
In java first the WSDL schemas are inlined by default, you have actually
have to 'coerce' CXF to do otherwise with a property.

As for what JBOSS is doing in this regard, I am not sure.




On Sat, May 25, 2013 at 6:42 AM, Max Pimm <ma...@gmail.com> wrote:

> We are using CXF provided by JBoss AS 7 to publish our webservices.
>
> We have a requirement that our WSDL cannot contain schema imports, the WSDL
> must contain all our types in one file.
>
> The java types representing the schemas that are being imported are Apache
> XML Beans generated classes and we are using the CXF XML Beans binding
> libraries to generate JAXB anotated classes that use these types.
>
> How can we coerce CXF into inlining these schemas?
>
> If it is not possible, could we do it by regenerated the schemas using JAXB
> and playing with the @XMLSchema annotations?
>
> Thanks
> Max
>