[ 
https://issues.apache.org/jira/browse/CXF-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760620#action_12760620
 ] 

Dennis Kieselhorst commented on CXF-2443:
-----------------------------------------

username:passw...@url also results in 401.

Created a cxf.xml with:
<http:conduit name="{targetNamespace}Portname.http-conduit">
        <http:authorization>
                <sec:UserName>username</sec:UserName>
                <sec:Password>password</sec:Password>
        </http:authorization>
</http:conduit>

Doesn't work either. What do you mean with id? If I set the bean id to the URL, 
I get a xml error:
cvc-attribute.3: The value 'http://myurl' of attribute 'id' on element 
'http:conduit' is not valid with respect to its type, 'ID'.

> Dynamic client cannot be used if WSDL requires basic authentication
> -------------------------------------------------------------------
>
>                 Key: CXF-2443
>                 URL: https://issues.apache.org/jira/browse/CXF-2443
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2.3
>            Reporter: Dennis Kieselhorst
>
> The following snippet fails, if wsdlUri requires basic authentication:
> JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
> Client client = dcf.createClient(wsdlUri);
> org.apache.cxf.service.factory.ServiceConstructionException: Could not 
> resolve URL "XXXX".
>       at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.composeUrl(DynamicClientFactory.java:606)
>       at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:251)
>       at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:196)
>       at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:189)
>       at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:144)
>       at 
> com.atanion.activation.target.executor.CxfSoapExecutor.execute(CxfSoapExecutor.java:63)
>       at 
> com.atanion.activation.target.executor.CxfSoapExecutor.main(CxfSoapExecutor.java:279)
> Caused by: java.io.IOException: Server returned HTTP response code: 401 for 
> URL: XXXX
>       at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
>       at 
> org.apache.cxf.resource.URIResolver.tryFileSystem(URIResolver.java:161)
>       at org.apache.cxf.resource.URIResolver.<init>(URIResolver.java:90)
>       at 
> org.apache.cxf.endpoint.dynamic.DynamicClientFactory.composeUrl(DynamicClientFactory.java:598)
>       ... 6 more

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

Reply via email to