Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 24829 invoked from network); 5 Nov 2007 05:22:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2007 05:22:17 -0000 Received: (qmail 55152 invoked by uid 500); 5 Nov 2007 05:21:59 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 55087 invoked by uid 500); 5 Nov 2007 05:21:58 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 55076 invoked by uid 99); 5 Nov 2007 05:21:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Nov 2007 21:21:58 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amilasuriarachchi@gmail.com designates 209.85.198.191 as permitted sender) Received: from [209.85.198.191] (HELO rv-out-0910.google.com) (209.85.198.191) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2007 05:21:59 +0000 Received: by rv-out-0910.google.com with SMTP id c24so1173590rvf for ; Sun, 04 Nov 2007 21:21:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=YmXDy+FdPukwktjmvykT2Os+Q6H32GQIdiL5sjBM8N4=; b=jTC++Jwm04i/I2DpQdhEQcBSXbcKWjqE8iuCvDVoCsm2AlGbfqpI7qUNdyqS3HKTLD0JYr6lq+DEeoydvexTldCVP5DGbJTpMqZ05aPmaJo+bL0QgWFKlCb86+EHr8e7ZEZrjJcbEPJ/tHX3Q+gK5ZazXWVYE5qrkQ8YmRU9ajI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Z6H89BqIxWULYZSxaT/tsvX9G17jpk7EUSBsD1Tfw8HP62+pU/RxrNEE395ljh5/9aHAOfIIVbdv0mchko2oLNpv6gcWmRnQIqitMr7o71hX6xCSZd5dkJTma2owa1dqNnxlhwZGlGb3Yk87FTCFYLng0+V+HbTi+zGguclbpMM= Received: by 10.141.79.12 with SMTP id g12mr2147497rvl.1194240097618; Sun, 04 Nov 2007 21:21:37 -0800 (PST) Received: by 10.140.131.2 with HTTP; Sun, 4 Nov 2007 21:21:37 -0800 (PST) Message-ID: <60708f4b0711042121j7930c83exdef708c5451dcb19@mail.gmail.com> Date: Mon, 5 Nov 2007 10:51:37 +0530 From: "Amila Suriarachchi" To: axis-dev@ws.apache.org Subject: Re: Creating Stub from WSDL on HTTPS In-Reply-To: <472B69BA.4050303@mystrands.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13137_3314093.1194240097623" References: <472B69BA.4050303@mystrands.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_13137_3314093.1194240097623 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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. ------=_Part_13137_3314093.1194240097623 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> 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
For additional commands, e-mail: axis-dev-help@ws.apache.org




--
Amila Suriarachchi,
WSO2 Inc. ------=_Part_13137_3314093.1194240097623--