Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

//apache459.rssing.com/chan-14627410/article1640-live.html

$
0
0
We programmatically create jaxws client proxies in our code similiar to the
example below:

RetrieveAccountService retrieveAccountService = new
RetrieveAccountService(wsdlURL, serviceQName);
port = retrieveAccountService.getHttpBindingRetrieveAccount();
BindingProvider bp = (BindingProvider)port;
Map<String, Object> context = bp.getRequestContext();
context.put("thread.local.request.context", "true");

we also, in a cxf.xml file configure additional interceptors like the
following:

<jaxws:client
name="{http://www.csgsystems.com/slbos}HttpBinding_RetrieveAccount"
createdFromAPI="true">
<jaxws:inInterceptors>
<ref bean="logInboundWithMasking"/>
<ref bean="logUserSpecificInboundWithMasking"/>
</jaxws:inInterceptors>
<jaxws:outInterceptors>
<ref bean="logOutboundWithMasking"/>
</jaxws:outInterceptors>
<jaxws:inFaultInterceptors>
<ref bean="InboundFaultLogger"/>
</jaxws:inFaultInterceptors>
<jaxws:outFaultInterceptors>
<ref bean="logOutboundWithMasking"/>
</jaxws:outFaultInterceptors>
<jaxws:dataBinding>
<bean class="org.apache.cxf.jaxb.JAXBDataBinding">
<property name="unmarshallerListener" ref="SlbosUnmarshalListener"
/>
</bean>
</jaxws:dataBinding>
</jaxws:client>

This worked fine in 2.6.1. However, we upgraded to 3.0.0-milestone2 and
those interceptors are no longer added to the chain. Also, using
3.0.0-milestone1 they are not added either.

Here is the final outbound interceptor chain (enabling cxf to debug
logging):
14:30:31.923 [task-scheduler-1] DEBUG
org.apache.cxf.phase.PhaseInterceptorChain - Chain
org.apache.cxf.phase.PhaseInterceptorChain [ at ] 1c7daa72 was modified. Current
flow:
setup [PolicyOutInterceptor]
pre-logical [HolderOutInterceptor, SwAOutInterceptor,
WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor]
post-logical [SoapPreProtocolOutInterceptor]
prepare-send [MessageSenderInterceptor]
pre-stream [AttachmentOutInterceptor, StaxOutInterceptor]
write [SoapOutInterceptor]
marshal [BareOutInterceptor]
write-ending [SoapOutEndingInterceptor]
pre-stream-ending [StaxOutEndingInterceptor]
prepare-send-ending [MessageSenderEndingInterceptor]

I can programmatically add the interceptors in my code; but we would really
prefer to configure them more dynamically.

Viewing all articles
Browse latest Browse all 5648

Trending Articles