You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by cb9 <c_...@hotmail.com> on 2012/10/13 12:21:34 UTC
ws-addressing beginner's questions.
I am trying to learn ws-addressing using apache-cxf but I am facing some
problems.
1) First I went through http://cxf.apache.org/docs/ws-addressing.html
Using xml configuration , how can I force client to enable ws-addressing? I
know I can do this with annotation Addressing(enabled=true, required=true).
But can I do this using xml configuration?
2) Then I went through http://cxf.apache.org/docs/wsaconfiguration.html. Is
it that I have to make changes in wsdl?
What is most preferred way to configure ws-addressing in cxf #1 and #2 or
using annotations or java code ?
3) What I want to try is set replyto/fault headers.
--
View this message in context: http://cxf.547215.n5.nabble.com/ws-addressing-beginner-s-questions-tp5716565.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: ws-addressing beginner's questions.
Posted by cb9 <c_...@hotmail.com>.
Thank you.
--
View this message in context: http://cxf.547215.n5.nabble.com/ws-addressing-beginner-s-questions-tp5716565p5716883.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: ws-addressing beginner's questions.
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
My comment inline
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042
On 2012-10-13, at 下午6:21, cb9 wrote:
> I am trying to learn ws-addressing using apache-cxf but I am facing some
> problems.
>
> 1) First I went through http://cxf.apache.org/docs/ws-addressing.html
>
> Using xml configuration , how can I force client to enable ws-addressing? I
> know I can do this with annotation Addressing(enabled=true, required=true).
> But can I do this using xml configuration?
You can use addressing feature for the client, Just like the way already mentioned in the docs
<jaxws: client id="{your.service.namespace}YourPortName">
<jaxws:features>
<wsa:addressing xmlns:wsa="http://cxf.apache.org/ws/addressing"/>
</jaxws:features>
</jaxws:client>
Or manually adding all necessary interceptors
<cxf:bus>
<cxf:inInterceptors>
<ref bean="mapAggregator"/>
<ref bean="mapCodec"/>
</cxf:inInterceptors>
<cxf:inFaultInterceptors>
<ref bean="mapAggregator"/>
<ref bean="mapCodec"/>
</cxf:inFaultInterceptors>
<cxf:outInterceptors>
<ref bean="mapAggregator"/>
<ref bean="mapCodec"/>
</cxf:outInterceptors>
<cxf:outFaultInterceptors>
<ref bean="mapAggregator"/>
<ref bean="mapCodec"/>
</cxf:outFaultInterceptors>
</cxf:bus>
>
> 2) Then I went through http://cxf.apache.org/docs/wsaconfiguration.html. Is
> it that I have to make changes in wsdl?
>
Generally no, you needn't change the wsdl
> What is most preferred way to configure ws-addressing in cxf #1 and #2 or
> using annotations or java code ?
No preference IMO, just pick up a way you want. In some cases, you may not want change the source code, so use xml configuration is good.
>
>
> 3) What I want to try is set replyto/fault headers.
>
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/ws-addressing-beginner-s-questions-tp5716565.html
> Sent from the cxf-user mailing list archive at Nabble.com.