[
https://issues.apache.org/jira/browse/CXF-1480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-1480.
------------------------------
Resolution: Fixed
Fix Version/s: 2.1.5
Assignee: Daniel Kulp
With CXF 2.1.5, we added the ability to configure conduits based on URL instead
of portName. Thus, it can be used to retrieve wsdls (which occurs before the
serviceName/portName stuff is resolved since much of that is in the wsdl).
You should be able to do:
<http:conduit id="http://localhost:8080/cassa-server/server/.*">
<http:client AutoRedirect="true" Connection="Keep-Alive" />
<http:authorization>
<sec:UserName>cassa</sec:UserName>
<sec:Password>xxx</sec:Password>
</http:authorization>
</http:conduit>
And have it be used for the wsdl and the service (note the .* wildcard at the
end of the URL)
> Basic authentication header missing while accessing WSDL URL
> ------------------------------------------------------------
>
> Key: CXF-1480
> URL: https://issues.apache.org/jira/browse/CXF-1480
> Project: CXF
> Issue Type: Bug
> Components: Transports
> Affects Versions: 2.0.4
> Environment: Max os, Leopard, jetty, spring 2.5.2
> Reporter: Andrea Chiodoni
> Assignee: Daniel Kulp
> Fix For: 2.1.5
>
>
> While accessing the wsdl URL I get a 401. Service + WLS protected with basic
> auth.
> Here my client context:
> <bean id="cassaService"
> class="ch.chiodoni.cassa.server.service.CassaService"
> factory-bean="clientFactory" factory-method="create" />
> <bean id="clientFactory"
> class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
> <property name="serviceClass"
> value="ch.chiodoni.cassa.server.service.CassaService" />
> <!--
> <property name="address"
>
> value="http://cassa:ca...@localhost:8080/cassa-server/server/cassa?wsdl" />
> <property name="address"
> value="http://localhost:8080/cassa-server/cassa.wsdl" />
> -->
> <property name="wsdlURL"
>
> value="http://localhost:8080/cassa-server/server/cassa?wsdl" />
> <property name="username" value="cassa" />
> <property name="password" value="xxx" />
> </bean>
> <http:conduit
>
> name="{http://chiodoni.ch/cassa/server}CassaServiceImplPort.http-conduit">
> <http:client AutoRedirect="true" Connection="Keep-Alive" />
> <http:authorization>
> <sec:UserName>cassa</sec:UserName>
> <sec:Password>xxx</sec:Password>
> </http:authorization>
> </http:conduit>
> Would be basic auth HTTP header sent with the provided context or I'm
> configuring something wrong?
> Thanks
> Andrea
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.