axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D'costa (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-4060) wsdl2java is unable to retrieve a WSDL when basic authentication is required
Date Thu, 02 Feb 2012 19:20:55 GMT

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

John D'costa commented on AXIS2-4060:
-------------------------------------

Is this problem solved?  This is really required for the Enterprise services.  We are also
stuck with this issue.  Trying to figure how I can bypass the live check of the schema.  Looked
into almost all of the code base and could not figure out where it is coming from.  

axis2-wsdl2code-maven-plugin:1.4:wsdl2code (default) @ accessmanagerclient ---
Retrieving document at 'src/main/resources/AMServices.wsdl'.
Retrieving schema at 'http://localhost:8001/am-services/AMServices?xsd=1', relative to 'file:/C:/ws/sso/accessmanagerclient/src/main/resources/AMServices.wsdl'.
java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8001/am-services/AMServices?xsd=1

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1290)
at java.net.URL.openStream(URL.java:1009)
at com.ibm.wsdl.util.StringUtils.getContentAsInputStream(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
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.<init>(CodeGenerationEngine.java:111)
at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:558)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.141s
[INFO] Finished at: Thu Feb 02 10:53:34 PST 2012
[INFO] Final Memory: 5M/9M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.axis2:axis2-wsdl2code-maven-plugin:1.4:wsdl2code
(default) on project accessmanagerclient: Error parsing WSDL: WSDLException (at /definitions/types/xsd:schema[1]):
faultCode=OTHER_ERROR: An error occurred trying to resolve schema referenced at 'http://localhost:8001/am-services/AMServices?xsd=1',
relative to 'file:/C:/ws/sso/accessmanagerclient/src/main/resources/AMServices.wsdl'.: java.io.IOException:
Server returned HTTP response code: 401 for URL: http://localhost:8001/am-services/AMServices?xsd=1
-> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
 

                
> 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: 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.<init>(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.<init>(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


Mime
View raw message