I am using Apache CXF 2.4.2 for implementing a SOAP webservice. I followed/adapted the tutorial (see next link) to create a webservice by a contract.
In this example, you can see a wsdl and a xsd file which contains the data model. This datamodel is imported by the wsdl file. After that I generate the code with the Maven cxf-codegen-plugin (v. 2.4.2). Everything seem OK. I can compile my project and also I can consume the webservice on my local maschine by using the Eclipse Webservices Explorer.
But on another computer there I can see only the webservice opererations. The wsdl contains no datamodel (http://***:18080/webservice/Test?wsdl) and another consumer is not able to generate a client.
I tested another case where I put the data type declarations directly into the wsdl but the effect is the same :-(. It seems so that Apache CXF creates internally a new wsdl on the fly.
write a wsdl -> generate code -> apache cxf generates wsdl on the fly
Are there any switches where I can change this behavior?
Thanks
~Chris