You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Durgaprasad Guduguntla (JIRA)" <ji...@apache.org> on 2008/05/29 03:48:44 UTC

[jira] Created: (CXF-1617) Basic Authentication failure

Basic Authentication failure
----------------------------

                 Key: CXF-1617
                 URL: https://issues.apache.org/jira/browse/CXF-1617
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.0.3
            Reporter: Durgaprasad Guduguntla


I have tried the following options to send username and password with basic authentication credentials.  But I realized  from the server SOAP logs that the basic authentication header is not passing to the server from the client in both the cases.  I see the username and password attributes are available in the XSD and used them in configuration of client in spring application context.  I am using CXF-2.0.3 version.  

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"/> 



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1617) Basic Authentication failure

Posted by "Durgaprasad Guduguntla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601003#action_12601003 ] 

Durgaprasad Guduguntla commented on CXF-1617:
---------------------------------------------

The temporary workaround is described in the following post 
http://www.nabble.com/Basic-authentication-with-Spring-configured-client-td17500802.html

> Basic Authentication failure
> ----------------------------
>
>                 Key: CXF-1617
>                 URL: https://issues.apache.org/jira/browse/CXF-1617
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0.3
>            Reporter: Durgaprasad Guduguntla
>
> I have tried the following options to send username and password with basic authentication credentials.  But I realized  from the server SOAP logs that the basic authentication header is not passing to the server from the client in both the cases.  I see the username and password attributes are available in the XSD and used them in configuration of client in spring application context.  I am using CXF-2.0.3 version.  
> 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"/> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1617) Basic Authentication failure

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CXF-1617.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.8
                   2.1.2

Applied the patch into CXF trunk[1] and 2.0.x branch[2]
[1]  http://svn.apache.org/viewvc?rev=669396&view=rev
[2]  http://svn.apache.org/viewvc?rev=669398&view=rev

> Basic Authentication failure
> ----------------------------
>
>                 Key: CXF-1617
>                 URL: https://issues.apache.org/jira/browse/CXF-1617
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0.3
>            Reporter: Durgaprasad Guduguntla
>            Assignee: Willem Jiang
>             Fix For: 2.1.2, 2.0.8
>
>
> I have tried the following options to send username and password with basic authentication credentials.  But I realized  from the server SOAP logs that the basic authentication header is not passing to the server from the client in both the cases.  I see the username and password attributes are available in the XSD and used them in configuration of client in spring application context.  I am using CXF-2.0.3 version.  
> 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"/> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CXF-1617) Basic Authentication failure

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CXF-1617:
---------------------------------

    Assignee: Willem Jiang

> Basic Authentication failure
> ----------------------------
>
>                 Key: CXF-1617
>                 URL: https://issues.apache.org/jira/browse/CXF-1617
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0.3
>            Reporter: Durgaprasad Guduguntla
>            Assignee: Willem Jiang
>
> I have tried the following options to send username and password with basic authentication credentials.  But I realized  from the server SOAP logs that the basic authentication header is not passing to the server from the client in both the cases.  I see the username and password attributes are available in the XSD and used them in configuration of client in spring application context.  I am using CXF-2.0.3 version.  
> 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"/> 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.