Dan,
Yes, that's exactly what i mean, it should be set to true by default,
I've found the problem when i debug the ws-a systests yesterday,
Hope I can fix it soon,
And BTW, it's the jaxws 2.1 things, so we probably will have couples
ways to enable ws-a,
Thanks to clarify this, just make sure I'm not missing anything
Gracias
James
*
*
James,
This is one of the things of the ws-addressing feature that I personally
think is totally broken.
If you do:
WSAddressingFeature feature = new WSAddressingFeature();
feature.setUsingAddressingAdvisory(true);
factory.getFeatures().add(feature);
it probably will work. IMO, the "true" flag should be the DEFAULT when
using the WSAddressingFeature.
Dan
On Wednesday 07 November 2007, 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