[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2106) javax.xml.ws.addressing package not available in JBossWS-CXF

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Tue Feb 10 11:08:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBWS-2106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12452003#action_12452003 ] 

Alessio Soldano commented on JBWS-2106:
---------------------------------------

Hi Andrew,
given the current jbossws-cxf leverages apache cxf 2.1.3, I've taken a look at its sources and think it has its own implementation of what you need.
In particular I've successfully tried setting the FaultTo in an outgoing message with this:

import static org.apache.cxf.ws.addressing.JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES;
import org.apache.cxf.ws.addressing.AddressingProperties;
import org.apache.cxf.ws.addressing.AddressingPropertiesImpl;
import org.apache.cxf.wsdl.EndpointReferenceUtils;
...
Service service = Service.create(wsdlURL, serviceName);
proxy = (ServiceIface)service.getPort(ServiceIface.class);
Map<String, Object> requestContext = ((BindingProvider)proxy).getRequestContext();
AddressingProperties maps = new AddressingPropertiesImpl();
maps.setFaultTo(EndpointReferenceUtils.getEndpointReference("http://localhost:9999/decoupled_endpoint"));
requestContext.put(CLIENT_ADDRESSING_PROPERTIES, maps);
proxy.sayHello();

Would this be fine for your usecase when using the cxf stack integration? Can you take a look? Thanks.


>  javax.xml.ws.addressing package not available in JBossWS-CXF
> -------------------------------------------------------------
>
>                 Key: JBWS-2106
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2106
>             Project: JBoss Web Services
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-cxf
>    Affects Versions: jbossws-cxf-3.0.1
>            Reporter: Andrew Dinn
>            Assignee: Alessio Soldano
>             Fix For: jbossws-cxf-3.1.0
>
>
> The AddressingProperties and related API classes in the javax.xml.ws.addressing package are not available in JBossWS-CXF. These are needed for the Web Services Transactions 1.1 implementation to operate over the CXF stack.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list