by default axis2 generates the stub only to the first soap12 binding it finds. in this case it has found the ApiSOAP12port_http1
if you want to generate it to any other pirticular port use -sn and -pn options eg. -sn Api -pn ApiSOAP12port_https amila. On 11/2/07, Leon Hwang <[EMAIL PROTECTED]> wrote: > > I created a stub from wsdl from HTTPS port but the uri in the stub shows > http with port 80. > Am I doing something wrong or do I have to make changes in tomcat settings > or axis settings? > > I am using axis2 1.3 with tomcat 6. > > > set JAVA_OPTS=-Djavax.net.ssl.trustStore="c:/program > files/java/jre1.6.0_01/lib/security/cacerts" > wsdl2java.bat -or -uw --noBuildXML -uri > https://openapi.strands.com:443/services/Api?wsdl > > > > * Default Constructor > */ > public ApiStub( > org.apache.axis2.context.ConfigurationContextconfigurationContext) > throws org.apache.axis2.AxisFault { > this(configurationContext, " > http://openapi.strands.com:80/services/Api"); > } > > /** > * Default Constructor > */ > public ApiStub() throws org.apache.axis2.AxisFault { > this("http://openapi.strands.com:80/services/Api"); > } > > > - Leon > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Amila Suriarachchi, WSO2 Inc.
