axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yadong (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5577) axis2 caches the wsdl file when accessed by http or https
Date Mon, 27 May 2013 06:48:20 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

yadong updated AXIS2-5577:
--------------------------

    Description: 
I used the following command to generate the client code for my webservice, 
but I got the same code for http and https.

C:\share\axis2-1.6.2\bin>wsdl2java.bat -or --noBuildXML -p test.webservice -o . -uri https://localhost:8080/axis2/services/Version?wsdl


C:\share\axis2-1.6.2\bin>wsdl2java.bat -or --noBuildXML -p test.webservice -o . -uri http://localhost:8080/axis2/services/Version?wsdl

when I run the https:.....?wsdl first,
the  http:......?wsdl will get the same output stub java files.
and the address is as following(https??why,):
----------------generated source file for http and https (they are the same one) ---------------------------
   /**
     * Default Constructor
     */
    public VersionStub(org.apache.axis2.context.ConfigurationContext configurationContext)
throws org.apache.axis2.AxisFault {
        
                    this(configurationContext,"https://localhost:8443/axis2/services/Version.VersionHttpsSoap12Endpoint/"
);
                
    }

    /**
     * Default Constructor
     */
    public VersionStub() throws org.apache.axis2.AxisFault {
        
                    this("https://localhost:8443/axis2/services/Version.VersionHttpsSoap12Endpoint/"
);
                
    }
------------- end of generated source file ----------------------

and I found that the wsdl file is the same one, when I used the https or http to access the
same web services's wsdl

  was:
I used the following command to generate the client code for my webservice, 
but I got the same code for http and https.

C:\share\axis2-1.6.2\bin>wsdl2java.bat -or --noBuildXML -p test.webservice -o . -uri https://localhost:8080/axis2/services/Version?wsdl


C:\share\axis2-1.6.2\bin>wsdl2java.bat -or --noBuildXML -p test.webservice -o . -uri http://localhost:8080/axis2/services/Version?wsdl

when I run the https:.....?wsdl first,
the  http:......?wsdl will get the same output stub java files.
and the address is as following(https??why,):
----------------generated source file for http and https (they are the same one) ---------------------------
   /**
     * Default Constructor
     */
    public VersionStub(org.apache.axis2.context.ConfigurationContext configurationContext)
throws org.apache.axis2.AxisFault {
        
                    this(configurationContext,"https://localhost:8443/axis2/services/Version.VersionHttpsSoap12Endpoint/"
);
                
    }

    /**
     * Default Constructor
     */
    public VersionStub() throws org.apache.axis2.AxisFault {
        
                    this("https://localhost:8443/axis2/services/Version.VersionHttpsSoap12Endpoint/"
);
                
    }
------------- end of generated source file ----------------------


    
> axis2 caches the  wsdl file when accessed by http or https
> ----------------------------------------------------------
>
>                 Key: AXIS2-5577
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5577
>             Project: Axis2
>          Issue Type: Bug
>         Environment: win7, jdk 1.7.09 axis2-1.6.2
>            Reporter: yadong
>
> I used the following command to generate the client code for my webservice, 
> but I got the same code for http and https.
> C:\share\axis2-1.6.2\bin>wsdl2java.bat -or --noBuildXML -p test.webservice -o . -uri
https://localhost:8080/axis2/services/Version?wsdl
> C:\share\axis2-1.6.2\bin>wsdl2java.bat -or --noBuildXML -p test.webservice -o . -uri
http://localhost:8080/axis2/services/Version?wsdl
> when I run the https:.....?wsdl first,
> the  http:......?wsdl will get the same output stub java files.
> and the address is as following(https??why,):
> ----------------generated source file for http and https (they are the same one)
---------------------------
>    /**
>      * Default Constructor
>      */
>     public VersionStub(org.apache.axis2.context.ConfigurationContext configurationContext)
throws org.apache.axis2.AxisFault {
>         
>                     this(configurationContext,"https://localhost:8443/axis2/services/Version.VersionHttpsSoap12Endpoint/"
);
>                 
>     }
>     /**
>      * Default Constructor
>      */
>     public VersionStub() throws org.apache.axis2.AxisFault {
>         
>                     this("https://localhost:8443/axis2/services/Version.VersionHttpsSoap12Endpoint/"
);
>                 
>     }
> ------------- end of generated source file ----------------------
> and I found that the wsdl file is the same one, when I used the https or http to access
the same web services's wsdl

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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