You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Xilai Dai (Created) (JIRA)" <ji...@apache.org> on 2011/11/08 06:52:51 UTC
[jira] [Created] (CAMEL-4640) Camel-cxf with WS-Adressing: No
headers and null Body
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
[jira] [Resolved] (CAMEL-4640) Camel-cxf with WS-Adressing: No
headers and null Body
Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-4640.
---------------------------------
Resolution: Invalid
> 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
> Assignee: Willem Jiang
> Priority: Critical
> Attachments: testcamelcxf.zip
>
>
> 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
[jira] [Updated] (CAMEL-4640) Camel-cxf with WS-Adressing: No
headers and null Body
Posted by "Willem Jiang (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang updated CAMEL-4640:
--------------------------------
Priority: Major (was: Critical)
> 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
> Assignee: Willem Jiang
> Attachments: testcamelcxf.zip
>
>
> 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
[jira] [Commented] (CAMEL-4640) Camel-cxf with WS-Adressing: No
headers and null Body
Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146209#comment-13146209 ]
Willem Jiang commented on CAMEL-4640:
-------------------------------------
It looks like a WSClient issue instead of camel-cxf issue.
I just did some enhancement on the WSAddressingTest of camel-cxf, let it also run the tests with CXFEndpoint with PAYLOAD datafromat, every thing looks good.
> 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
> Attachments: testcamelcxf.zip
>
>
> 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
[jira] [Updated] (CAMEL-4640) Camel-cxf with WS-Adressing: No
headers and null Body
Posted by "Xilai Dai (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated CAMEL-4640:
-----------------------------
Attachment: testcamelcxf.zip
> 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
> Attachments: testcamelcxf.zip
>
>
> 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
[jira] [Commented] (CAMEL-4640) Camel-cxf with WS-Adressing: No
headers and null Body
Posted by "Xilai Dai (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146097#comment-13146097 ]
Xilai Dai commented on CAMEL-4640:
----------------------------------
Reproduce steps:
1. goto testcamelcxf/, run: mvn clean install
2. put the testcamelcxf-0.1-SNAPSHOT.jar into OSGI container (e.g. Karaf), with the dependency bundles, camel 2.8.2, cxf 2.5.0 ...
3. send request from SoapUI
> 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
[jira] [Assigned] (CAMEL-4640) Camel-cxf with WS-Adressing: No
headers and null Body
Posted by "Willem Jiang (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-4640:
-----------------------------------
Assignee: Willem Jiang
> 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
> Assignee: Willem Jiang
> Priority: Critical
> Attachments: testcamelcxf.zip
>
>
> 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
[jira] [Issue Comment Edited] (CAMEL-4640) Camel-cxf with
WS-Adressing: No headers and null Body
Posted by "Willem Jiang (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146209#comment-13146209 ]
Willem Jiang edited comment on CAMEL-4640 at 11/8/11 10:39 AM:
---------------------------------------------------------------
It looks like a WSClient issue instead of camel-cxf issue. There is no soap header on the request message.
I just did some enhancement on the WSAddressingTest of camel-cxf, let it also run the tests with CXFEndpoint with PAYLOAD datafromat, every thing looks good.
http://svn.apache.org/viewvc?rev=1199177&view=rev
was (Author: njiang):
It looks like a WSClient issue instead of camel-cxf issue.
I just did some enhancement on the WSAddressingTest of camel-cxf, let it also run the tests with CXFEndpoint with PAYLOAD datafromat, every thing looks good.
> 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
> Attachments: testcamelcxf.zip
>
>
> 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