[
https://issues.apache.org/jira/browse/CXF-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769347#action_12769347
]
Scott Hilterbrick commented on CXF-2494:
----------------------------------------
I guess a bit more information may be helpful. I've written a CXF service which
receives a SOAP request from an SDK utility. My SOAP response contains the
results within the body and also utilizes WS-Security (Timestamp & Signature).
I need to also include a wsa:MessageID within the SOAP header and thus have
configured my servlet-cxf.xml file as follows:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:soap="http://cxf.apache.org/bindings/soap"
xmlns:wsa="http://cxf.apache.org/ws/addressing"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd">
<jaxws:endpoint
id="search"
implementor="gov.ices.webservice.service.SearchMessageReceiverImpl"
wsdlLocation="WEB-INF/wsdl/sws.wsdl"
address="/search">
<jaxws:outInterceptors>
<bean class="org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor" />
<ref bean="TimestampSign_Response"/>
</jaxws:outInterceptors>
<jaxws:features>
<wsa:addressing/>
</jaxws:features>
</jaxws:endpoint>
<!--
WSS4JOutInterceptor for signing the SOAP response.
-->
<bean id="TimestampSign_Response"
class="org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor">
<constructor-arg>
<map>
<entry key="action" value="Timestamp Signature" />
<entry key="user" value="key"/>
<entry key="signaturePropFile"
value="serviceKeystore.properties"/>
<entry key="signatureKeyIdentifier" value="DirectReference"/>
<entry key="passwordCallbackClass"
value="com.mycompany.webservice.service.ServiceKeystorePasswordCallback"/>
<entry key="signatureParts"
value="{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp;{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body"/>
</map>
</constructor-arg>
</bean>
</beans>
The resultant SOAP response contains the body and WS-Security within the header
but the WS-Addressing is missing. The only indication of a problem is found
within the tomcat logs as a WARNING. Any suggestions?
Oct 23, 2009 1:55:26 PM org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
WARNING: WS-Addressing - failed to retrieve Message Addressing Properties from
context
Thanks,
Scott
> Follow-Up to bug CXF-1591
> -------------------------
>
> Key: CXF-2494
> URL: https://issues.apache.org/jira/browse/CXF-2494
> Project: CXF
> Issue Type: Bug
> Components: WS-* Components
> Affects Versions: 2.2.2
> Environment: Windows XP, Tomcat 5.5,
> Reporter: Scott Hilterbrick
>
> I'm having the identical problem as reported in CXF-1591. I've tried using
> CXF v2.2.2, v2.2.3 & v2.2.4 but obtain the same errors as reported in
> CXF-1591. Any help you can provide would be greatly appreciated.
> Regards,
> Scott
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.