Willem,

I did not remove those unit tests, I just moved those to systests,
ws-a is required by jaxws2.1, so now jaxws depend on it, so i have to move those tests to systests, otherwise will have cyclic dependency.
Does it make sense to you?

The API approach is not working as i discovered yesterday, if you know how to enable it by API, just let me know.

Regards,
James


Hi  James,

You can use java code or spring to enable the WSAddressing Feature.
Here used to be some unit tests of the WSAddressing Feature setup test in the ws-address module but you remove it earlier this week. :(

Removed:
incubator/cxf/trunk/rt/ws/addr/src/test/java/org/apache/cxf/ws/addressing/spring/

My question is why did you remove them?

Willem.

James Mao wrote:
Hi,

I'm trying to enable the ws-a through the API approach which described in the doc [1], but the message i captured told me that the ws-a is definitely not working.

Client side code:

       JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
       factory.setServiceClass(Greeter.class);
       factory.setAddress("http://localhost:8080/SoapContext/SoapPort";);
       factory.getFeatures().add(new WSAddressingFeature());
       Greeter port = (Greeter) factory.create();

Service side code:

       EndpointImpl ep = (EndpointImpl) Endpoint.create(implementor);
       ep.getFeatures().add(new WSAddressingFeature());
       ep.publish(address);

Am I miss anything?

Or

We have to use the Spring config to enable to ws-a?


Thanks in advance!
James



[1]http://cwiki.apache.org/CXF20DOC/ws-addressing.html


Reply via email to