[Again, Thunderbird threw away my message text.   Here is the message that should have appeared.]

I ran "wsdl2java -all" on the attached wsdl using the apache-cxf-2.0.2-incubator release.

The generated server driver runs fine.

However, if I write my own server driver using a ServerFactoryBean (see attached) and if I set its DataBinding to a new AegisDatabinding, then I get this error:

INFO: Creating Service {http://efile.streamlinedsalestax.org/}EFileServiceSoapImpl from class org.streamlinedsalestax.efile.EFileServiceSoapImpl
java.lang.RuntimeException: Schema for namespace 'http://efile.streamlinedsalestax.org' already contains type 'Acknowledgement
    at org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:229)
    at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:139)
    at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:315)
    at org.apache.cxf.aegis.databinding.AegisDatabinding.createSchemas(AegisDatabinding.java:332)
    at org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDatabinding.java:170)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:244)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:272)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:146)
    at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:83)
    at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:107)
    at test.My_EFileService_Server.<init>(My_EFileService_Server.java:33)
    at test.My_EFileService_Server.main(My_EFileService_Server.java:16)

No error if the Databinding is defaulted, or is explicitly set to JAXBDatabinding.



Reply via email to