Hi,

I have tried following other options as well but I don't see the basic
authentication header is not passing to the server from the client.  I see
the username and password attributes are available in the XSD.  I am using
CXF-2.0.3 version.  Please help.

Front end approach:

<bean id="searchClientFactory" 
                class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean"> 
     <property name="serviceClass" 
                        value="com.client.service.SearchService" /> 
     <property name="address"
value="${webservice.host.url}/${soapservice.url}" /> 
     <property name="username" value="uname"/>
      <property name="password" value="pword"/>
 </bean> 

jaxws approach:
        <jaxws:client id="searchClient"
        serviceClass="com.client.service.SearchService"
        address="${webservice.host.url}/${soapservice.url}"  username="uname"
password="pword"/>


-- 
View this message in context: 
http://www.nabble.com/Basic-authentication-with-Spring-configured-client-tp17500802p17504751.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to