Camel-cxf with WS-Adressing: No headers and null Body
-----------------------------------------------------

                 Key: CAMEL-4640
                 URL: https://issues.apache.org/jira/browse/CAMEL-4640
             Project: Camel
          Issue Type: Bug
          Components: camel-cxf
    Affects Versions: 2.8.2
         Environment: Win7, JDK1.6
            Reporter: Xilai Dai
            Priority: Critical


with this setting in the beans.xml:

    <cxf:cxfEndpoint xmlns:ns="http://airportsoap.sopera.de"; 
                                        
serviceClass="org.talend.test.testcamelcxf.AirportImpl"
                                        
address="http://localhost:8201/airport.service";
                                        endpointName="ns:airportSoap"
                                        id="cxfEndpoint1"
                                        serviceName="ns:airport"
                                        wsdlURL="wsdl/airport.service.wsdl">
        <cxf:properties>
            <entry key="dataFormat" value="PAYLOAD"/>
        </cxf:properties>
                <cxf:features>
                        <bean 
class="org.apache.cxf.ws.addressing.WSAddressingFeature"/>
                        <bean class="org.apache.cxf.feature.LoggingFeature"/>
                </cxf:features>
    </cxf:cxfEndpoint>

What we expected is WS-Addressing elements should be with the Soap header. but 
from the log, got:

13:39:04,401 | INFO  | qtp953071151-147 | eptor.AbstractLoggingInterceptor  178 
|  -  -  | Inbound Message
----------------------------
ID: 2
Address: http://localhost:8201/airport.service
Encoding: UTF-8
Http-Method: POST
Content-Type: text/xml;charset=UTF-8
Headers: {accept-encoding=[gzip,deflate], Content-Length=[301], 
content-type=[text/xml;charset=UTF-8], Host=[localhost:8201], 
SOAPAction=["http://airportsoap.sopera.de/getAirportInformationByISOCountryCode";],
 User-Agent=[Jakarta Commons-HttpClient/3.1]}
Payload: <soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:air="http://airportsoap.sopera.de";>
   <soapenv:Header/>
   <soapenv:Body>
      
<air:getAirportInformationByISOCountryCodeInput>Fr</air:getAirportInformationByISOCountryCodeInput>
   </soapenv:Body>
</soapenv:Envelope>
--------------------------------------
13:39:04,420 | WARN  | qtp953071151-147 | ache.cxf.common.logging.LogUtils  372 
|  -  -  | WS-Addressing - failed to retrieve Message Addressing Properties 
from context
13:39:04,441 | INFO  | qtp953071151-147 | ache.camel.processor.CamelLogger   87 
| 158 - org.apache.camel.camel-core - 2.8.2 | Exchange[ExchangePattern:InOut, 
BodyType:org.apache.camel.component.cxf.CxfPayload, 
Body:<air:getAirportInformationByISOCountryCodeInput 
xmlns:air="http://airportsoap.sopera.de";>Fr</air:getAirportInformationByISOCountryCodeInput>]
13:39:04,446 | WARN  | qtp953071151-147 | ache.cxf.common.logging.LogUtils  372 
|  -  -  | WS-Addressing - failed to retrieve Message Addressing Properties 
from context
13:39:04,447 | WARN  | qtp953071151-147 | ache.cxf.common.logging.LogUtils  372 
|  -  -  | WS-Addressing - failed to retrieve Message Addressing Properties 
from context
13:39:04,448 | WARN  | qtp953071151-147 | ache.cxf.common.logging.LogUtils  372 
|  -  -  | WS-Addressing - failed to retrieve Message Addressing Properties 
from context
13:39:04,450 | INFO  | qtp953071151-147 | eptor.AbstractLoggingInterceptor  178 
|  -  -  | Outbound Message
---------------------------
ID: 2
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: <soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body/></soap:Envelope>

"PAYLOAD", "MESSAGE", and "POJO" none of them works.

and why we got <soap:Body/>? 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to