Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3421

HTTP conduit settigs not used fro downloading WSDL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 2.3.3
    • Invalid
    • Transports
    • None
    • CXF client on Jetty, Java 6. WS server in .NET NTLM secured.

    Description

      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>

      Attachments

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              frantisek.kocun@gmail.com frantisek.kocun@gmail.com
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: