See

https://cwiki.apache.org/confluence/display/CXF20DOC/Bus+Configuration

(just updated the page to mention that 'properties' can be set on cxf:bus beans). So add cxf:properties under cxf:bus and set the entries

Sergey
On 29/07/13 12:21, Mitchell, Jermaine wrote:
Really don't have a clue how to set the contextual properties according to our 
issue. Could you please tell us exactly how this must be set. Appreciate your 
help very much!

Cxf.xml dump:
...
<http-conf:conduit 
name="{http://user.service.server}UserServicePort.http-conduit";>
        <http-conf:client AutoRedirect="true" />
</http-conf:conduit>
        
<bean id="cxf" class="org.apache.cxf.bus.spring.SpringBus"/>
        
<bean id="org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor"  
class="org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor"/>
<bean id="org.apache.cxf.bus.spring.Jsr250BeanPostProcessor"  
class="org.apache.cxf.bus.spring.Jsr250BeanPostProcessor"/>
<bean id="org.apache.cxf.bus.spring.BusExtensionPostProcessor" 
class="org.apache.cxf.bus.spring.BusExtensionPostProcessor"/>
                
<bean id="discoveryService" 
class="org.apache.cxf.ws.discovery.internal.WSDiscoveryServiceImpl">
        <constructor-arg index="0">
                <ref bean="cxf"/>
        </constructor-arg>
        <constructor-arg index="1">
                <map>
                        entry key="org.apache.cxf.service.ws-discovery.address" 
value="https://localhost:9443/services/DiscoveryProxy"/>
                </map>
        </constructor-arg>
</bean>
        
<bean id="userServiceImpl" class="tia.server.service.UserService" />
<jaxws:endpoint id="userService" implementor="#userServiceImpl" 
address="/userService" />
...



-----Ursprüngliche Nachricht-----
Von: Sergey Beryozkin [mailto:[email protected]]
Gesendet: Montag, 29. Juli 2013 11:45
An: [email protected]
Betreff: Re: AW: redirect with relative Location

On 29/07/13 08:18, Mitchell, Jermaine wrote:
Many thanks for your reply Sergey!!

But could you please give us an example how this must be configured in cxf.xml 
according to the WSDiscoveryServiceImpl (SoapEnvelope, XAddrs)!?


The contextual properties can be set on a per-client basis, example, in 
WS-Discovery case, they would be set in jaxws:client/jaxws:properties,

or in cxf.xml, inside cxf:bus/properties, that should do it

Cheers, Sergey

Thanks again

-----Ursprüngliche Nachricht-----
Von: Sergey Beryozkin [mailto:[email protected]]
Gesendet: Freitag, 26. Juli 2013 12:07
An: [email protected]
Betreff: Re: redirect with relative Location

On 18/04/13 17:46, onranoord wrote:
yeah. succes. i implemented a customtransportfactory that
instantiates a customhttpconduit.
by overriding the aforementioned method the redirect succeeds.


FYI, in CXF 2.7.7-SNAPSHOT you can configure HTTPConduit to
auto-follow redirects (this property has always been supported) and
then add a "http.redirect.relative.uri" contextual property, and that
will do it for you, and then this can further be secured by validating
that we still get the same host redirection (we don't use URL resolve
function so virtually no chance to somehow produce a diff host URL
from a rel
redirect) by setting a "http.redirect.same.host.only" property - the latter 
should probably be set to true in most auto-redirect cases...

Cheers, Sergey

--
View this message in context:
http://cxf.547215.n5.nabble.com/redirect-with-relative-Location-tp572
6 345p5726508.html Sent from the cxf-user mailing list archive at
Nabble.com.






--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to