Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E51D99F6D for ; Fri, 13 Apr 2012 13:43:41 +0000 (UTC) Received: (qmail 94953 invoked by uid 500); 13 Apr 2012 13:43:40 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 94808 invoked by uid 500); 13 Apr 2012 13:43:40 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 94798 invoked by uid 99); 13 Apr 2012 13:43:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 13:43:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 13:43:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AD2BA36900D for ; Fri, 13 Apr 2012 13:43:16 +0000 (UTC) Date: Fri, 13 Apr 2012 13:43:16 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: java-dev@axis.apache.org Message-ID: <1237779283.21942.1334324596711.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AXIS2-4060) wsdl2java is unable to retrieve a WSDL when basic authentication is required 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=13253369#comment-13253369 ] Hudson commented on AXIS2-4060: ------------------------------- Integrated in Axis2 #1346 (See [https://builds.apache.org/job/Axis2/1346/]) Fixed AXIS2-4060. Introduced two new command line parameters as http-proxy-user and http-proxy-password. (Revision 1325736) Result = SUCCESS sagara : Files : * /axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/WSDL2Code.java * /axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/i18n/resource.properties * /axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/util/WSDL2JavaOptionsValidator.java * /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/util/CommandLineOptionConstants.java > 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: Axis2 > Issue Type: Bug > Components: codegen > Affects Versions: 1.4, 1.4.1 > Reporter: Jorge Medina > Assignee: Sagara Gunathunga > Fix For: 1.7.0 > > > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org