You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Leon Hwang <hw...@mystrands.com> on 2007/11/02 19:17:30 UTC

Creating Stub from WSDL on HTTPS

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.ConfigurationContext configurationContext)
         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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Creating Stub from WSDL on HTTPS

Posted by Leon Hwang <hw...@mystrands.com>.
Thanks Amila,

But Java2WSDL creates following WSDL services.
Why does it generate so many port and why the port 80(for HTTPS) and 8080(HTTP) is added to the location?
We have servers running on 80 for HTTP and 443 for HTTPS.
Is there some way I can for the port addresses?
Thanks,

- Leon

Amila Suriarachchi wrote:
> 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* <hwang@mystrands.com 
> <ma...@mystrands.com>> 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.ConfigurationContext
>     configurationContext)
>              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: axis-dev-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-dev-help@ws.apache.org
>     <ma...@ws.apache.org>
> 
> 
> 
> 
> -- 
> Amila Suriarachchi,
> WSO2 Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Creating Stub from WSDL on HTTPS

Posted by Amila Suriarachchi <am...@gmail.com>.
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 <hw...@mystrands.com> 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: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.