cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3421) HTTP conduit settigs not used fro downloading WSDL
Date Fri, 25 Mar 2011 13:11:05 GMT

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

Daniel Kulp commented on CXF-3421:
----------------------------------


The "{WSDL Namespace}portName" for would never work for downloading the wsdl as the portName
is unknown at that point.

Use:

{code:xml}
<http-conf:conduit name="http://172.16.55.55:555/WebServices/WebServiceABC.asmx.*"
{code}

The "name" is a regex that needs to match the full url of what is being asked.   The ".*"
at the end would allow it to match the ?wsdl as well.   You could also do:

{code:xml}
<http-conf:conduit name="http://172.16.55.55:555/.*"
{code}

To make it match all URL's at that host/port.


> HTTP conduit settigs not used fro downloading WSDL
> --------------------------------------------------
>
>                 Key: CXF-3421
>                 URL: https://issues.apache.org/jira/browse/CXF-3421
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.3.3
>         Environment: CXF client on Jetty, Java 6. WS server in .NET NTLM secured.
>            Reporter: frantisek.kocun@gmail.com
>            Priority: Critical
>
> I have WS on server with NTLM secured HTTP connection. If wsdlLocation is set, CXF tries
to download WSDL but does not take HTTP conduit settings into account. Server returned HTTP
response code: 401 for URL: http://172.16.55.55:555/WebServices/WebServiceABC.asmx?wsdl
> WSDL is on location
> <jaxws:client  wsdlLocation="http://172.16.55.55:555/WebServices/WebServiceABC.asmx?wsdl"
> And I use service address as http-conduit name like 
> <http-conf:conduit name="http://172.16.55.55:555/WebServices/WebServiceABC.asmx"
> This does not work
>     <jaxws:client id="SERVICE_NAME"
>                 serviceClass="SERVICE_CLASS"
>                 wsdlLocation="WSDL_LOCATION"
>                 serviceName="s:SERVICE_NAME"
>                 xmlns:s="SERVICE_NAMESPACE"
>                 >
>         </jaxws:client>
>         <http-conf:conduit
>                 name="SERVICE_ADDRESS">
>                 <http-conf:client AllowChunking="false" ConnectionTimeout="31234"
/>
>                 <http-conf:authorization>
>                         <sec:UserName>NAME</sec:UserName>
>                         <sec:Password>PASSWORD</sec:Password>
>                 </http-conf:authorization>
>         </http-conf:conduit>
> This works (but does not try to download WSDL)
>     <jaxws:client id="SERVICE_NAME"
>                 name="SERVICE_NAME"
>                 address="SERVICE_ADDRESS"
>                 serviceClass="SERVICE_CLASS"
>                 >
>         </jaxws:client>
>         <http-conf:conduit
>                 name="SERVICE_ADDRESS">
>                 <http-conf:client AllowChunking="false" ConnectionTimeout="31234"
/>
>                 <http-conf:authorization>
>                         <sec:UserName>NAME</sec:UserName>
>                         <sec:Password>PASSWORD</sec:Password>
>                 </http-conf:authorization>
>         </http-conf:conduit>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message