Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 15230 invoked from network); 24 Nov 2009 13:09:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Nov 2009 13:09:04 -0000 Received: (qmail 19098 invoked by uid 500); 24 Nov 2009 13:09:03 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 18994 invoked by uid 500); 24 Nov 2009 13:09:02 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 18985 invoked by uid 99); 24 Nov 2009 13:09:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 13:09:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Nov 2009 13:08:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC427234C1EE for ; Tue, 24 Nov 2009 05:08:39 -0800 (PST) Message-ID: <1411940834.1259068119704.JavaMail.jira@brutus> Date: Tue, 24 Nov 2009 13:08:39 +0000 (UTC) From: "Sbremal (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4060) wsdl2java is unable to retrieve a WSDL when basic authentication is required In-Reply-To: <1080745297.1222890224321.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-4060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12781901#action_12781901 ] Sbremal commented on AXIS2-4060: -------------------------------- Is this issue going to be fixed? Is there any workaround? In enterprise environments it is quite common that the WSDL is stored at a password protected HTTP location. Would be good not to discurage people to use AXIS2 in business environments... Can someone give a boost to the fix of this incident? Hotfix would also be fine... Cheers, Balazs > wsdl2java is unable to retrieve a WSDL when basic authentication is required > ---------------------------------------------------------------------------- > > Key: AXIS2-4060 > URL: https://issues.apache.org/jira/browse/AXIS2-4060 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.4.1, 1.4 > Reporter: Jorge Medina > Assignee: Dimuthu Leelarathne > > When access to the WSDL requires basic authentication, wsdl2java fails to send the credentials in version 1.4.1 > while version 1.3 works fine. > Using version 1.4.1: > > wsdl2java -uri http://ssmith:password@myapp.example.com:8080/webservices/mywsdl.wsdl -s -uw -u > you will get HTTP error 401 as shown below, while the same command works fine when using version 1.3. > ------ ---- --- --- --- --- --- --- > Retrieving document at 'http://ssmith:password@myapp.example.com:8080/company-webservices/mywsdl.wsdl'. > Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException > : Error parsing WSDL > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerat > ionEngine.java:156) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Unabl > e to resolve imported document at 'http://ssmith:password@myapp.example.com:8 > 080/webservices/mywsdl.wsdl'.: java.io.IOException: Server retu > rned HTTP response code: 401 for URL: http://ssmith:password@sdk.eng.e-dialog.co > m:8080/webservices/mywsdl.wsdl > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile( > CodeGenerationEngine.java:288) > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerat > ionEngine.java:111) > ... 2 more > Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: > http://ssmith:password@myapp.example.com:8080/webservices/mailingCru > dWsdl.wsdl > at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon > nection.java:1241) > at java.net.URL.openStream(URL.java:1009) > at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source) > > ... 6 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.