1 Reply Latest reply on Jul 24, 2011 7:53 PM by njiang

    Missing namespace prefixes from xml-tags when using CXF

    sakkew

      We're using CXF (not as camel endpoint) to send soap messages to a web service.

      When running the client code as a unit test, namespace prefixes are added to xml tags in the soap message.

      When running the same code in Fuse, there are no prefixes added to the xml tags. Otherwise the soap message is identical, including namespace declarations.

       

      The package including the classes that the soap message consists of, includes the file package-info.java, and has the annotation "@javax.xml.bind.annotation.XmlSchema(namespace = "http://xxx", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)"

       

      I understand this annotation is needed for the prefixes to be added to the soap message, but how can it be it is not working when running as a bundle in Fuse?