Hi,

I'm using CXF in combination with Apache Camel to bridge between XML/MQ and
SOAP/HTTP and back.

When I get a SOAP fault back from the service provider the XML
representation generated by CXF is incomplete.

For example, this fault (XML escaped to get it through nabble)

[?xml version="1.0" encoding="UTF-8"?]
[env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";]
  [env:Body]
    [env:Fault]
      [faultcode]0x0012345[/faultcode]
      [faultstring]Rejected.[/faultstring]
      [detail]
        [service]SERVICE_WS[/service]
        [transaction]123456789[/transaction]
        [operation]/services/ws/test[/operation]
        [result status="ERROR"][message]error message[/message][/result]
      [/detail]
    [/env:Fault]
  [/env:Body]
[/env:Envelope]

comes out as

[ns1:XMLFault xmlns:ns1="http://cxf.apache.org/bindings/xformat";]
  [ns1:faultstring
xmlns:ns1="http://cxf.apache.org/bindings/xformat]Rejected.[/ns1:faultstring]
  [ns1:detail xmlns:ns1="http://cxf.apache.org/bindings/xformat";]
    [service]SERVICE_WS[/service]
  [/ns1:detail]
[/ns1:XMLFault]

Much of the important info is missing here.

This is with CXF 2.4.4.

Regards,
Jens



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Faults-in-XML-binding-tp5713940.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to