You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Sagnwoo Kim <sa...@gmail.com> on 2007/06/22 17:42:21 UTC

WSDL2Java pn option issue

Hi all, I am newbie at Axis2 and having some issue here

Now Im trying to generate skeleton files using WSDL2Java out of my wsdl
file. My wsdl file has currently 3 ports. If I just go thru the WSDL2Java
with the wsdl file it only generates skeleton file which has only one port.
This is something intended by the Axis2 developer team as far as I know. So
for the solution of that I can use "-pn" option which port I will chose. But
it doesn't work for me.

When I generate the skeleton file I use "java
org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb -s
-wv 1.2 -ss -sd -pn urn:my_service:I_Port". But this gives me skeleton file
which contains only methods defined under "S_Port". The S_Port is the
default port generated when I don't use "-pn" option. It seems like "-pn"
doesn't work. Can anyone address me how to solve this issue?

The following is the my_service.wsdl file I have.

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/ "
    xmlns:api_binding="urn:api_binding"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    targetNamespace="urn:my_service">

    <import namespace="urn:api_binding"
        location="api_binding.wsdl" />

    <service name="My_Service">

        <port name="I_Port" binding="api_binding:I_SoapBinding">
            <soap:address location="http://localhost/axis2/services
/urn:api:i" />
        </port>

        <port name="S_Port" binding="api_binding:S_SoapBinding">
            <soap:address location="
http://localhost/axis2/services/urn:api:s" />
        </port>

        <port name="P_Port" binding="api_binding:P_SoapBinding">
            <soap:address location="
http://localhost/axis2/services/urn:api:p" />
        </port>

    </service>

</definitions>

Thank you
Sangwoo Kim

Re: WSDL2Java pn option issue

Posted by Sagnwoo Kim <sa...@gmail.com>.
Thank you for your timely response.

Sangwoo Kim

On 6/22/07, Alexey Zavizionov <al...@exoplatform.com.ua> wrote:
>
> Do you use Axis2 version 1.2?
> I ahve faced with same problem. Try to use Axis2 version 1.1, seems it
> works.
>
> Regards,
> Alexey
>
>
> On 6/22/07, Sagnwoo Kim <sa...@gmail.com> wrote:
> > Hi all, I am newbie at Axis2 and having some issue here
> >
> > Now Im trying to generate skeleton files using WSDL2Java out of my wsdl
> > file. My wsdl file has currently 3 ports. If I just go thru the
> WSDL2Java
> > with the wsdl file it only generates skeleton file which has only one
> port.
> > This is something intended by the Axis2 developer team as far as I know.
> So
> > for the solution of that I can use "-pn" option which port I will chose.
> But
> > it doesn't work for me.
> >
> > When I generate the skeleton file I use "java
> > org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb
> -s
> > -wv 1.2 -ss -sd -pn urn:my_service:I_Port". But this gives me skeleton
> file
> > which contains only methods defined under "S_Port". The S_Port is the
> > default port generated when I don't use "-pn" option. It seems like
> "-pn"
> > doesn't work. Can anyone address me how to solve this issue?
> >
> > The following is the my_service.wsdl file I have.
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <definitions xmlns=" http://schemas.xmlsoap.org/wsdl/ "
> >     xmlns:api_binding="urn:api
> > _binding"
> >     xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/"
> >     targetNamespace="urn:my_service">
> >
> >     <import namespace="urn:api_binding"
> >         location="api_binding.wsdl" />
> >
> >     <service name="My_Service">
> >
> >         <port name="I_Port"
> > binding="api_binding:I_SoapBinding">
> >             <soap:address
> > location="http://localhost/axis2/services/urn:api:i" />
> >         </port>
> >
> >         <port name="S_Port"
> > binding="api_binding:S_SoapBinding">
> >             <soap:address
> > location="http://localhost/axis2/services/urn:api:s" />
> >         </port>
> >
> >         <port name="P_Port"
> > binding="api_binding:P_SoapBinding">
> >             <soap:address
> > location="http://localhost/axis2/services/urn:api:p" />
> >         </port>
> >
> >     </service>
> >
> > </definitions>
> >
> > Thank you
> > Sangwoo Kim
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

Re: WSDL2Java pn option issue

Posted by Alexey Zavizionov <al...@exoplatform.com.ua>.
Do you use Axis2 version 1.2?
I ahve faced with same problem. Try to use Axis2 version 1.1, seems it works.

Regards,
Alexey


On 6/22/07, Sagnwoo Kim <sa...@gmail.com> wrote:
> Hi all, I am newbie at Axis2 and having some issue here
>
> Now Im trying to generate skeleton files using WSDL2Java out of my wsdl
> file. My wsdl file has currently 3 ports. If I just go thru the WSDL2Java
> with the wsdl file it only generates skeleton file which has only one port.
> This is something intended by the Axis2 developer team as far as I know. So
> for the solution of that I can use "-pn" option which port I will chose. But
> it doesn't work for me.
>
> When I generate the skeleton file I use "java
> org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb -s
> -wv 1.2 -ss -sd -pn urn:my_service:I_Port". But this gives me skeleton file
> which contains only methods defined under "S_Port". The S_Port is the
> default port generated when I don't use "-pn" option. It seems like "-pn"
> doesn't work. Can anyone address me how to solve this issue?
>
> The following is the my_service.wsdl file I have.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions xmlns=" http://schemas.xmlsoap.org/wsdl/ "
>     xmlns:api_binding="urn:api
> _binding"
>     xmlns:soap=" http://schemas.xmlsoap.org/wsdl/soap/"
>     targetNamespace="urn:my_service">
>
>     <import namespace="urn:api_binding"
>         location="api_binding.wsdl" />
>
>     <service name="My_Service">
>
>         <port name="I_Port"
> binding="api_binding:I_SoapBinding">
>             <soap:address
> location="http://localhost/axis2/services/urn:api:i" />
>         </port>
>
>         <port name="S_Port"
> binding="api_binding:S_SoapBinding">
>             <soap:address
> location="http://localhost/axis2/services/urn:api:s" />
>         </port>
>
>         <port name="P_Port"
> binding="api_binding:P_SoapBinding">
>             <soap:address
> location="http://localhost/axis2/services/urn:api:p" />
>         </port>
>
>     </service>
>
> </definitions>
>
> Thank you
> Sangwoo Kim
>

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


RE: axis1.4 with https

Posted by Johan Roch <jr...@hotmail.com>.
It should be a file in JKS format. It can be cacerts or another one. You can 
use keytool but I personaly use SSKeytool to easily create a keystore...

>From: "Mark Babcock" <ma...@cormineid.com>
>Reply-To: axis-user@ws.apache.org
>To: <ax...@ws.apache.org>
>Subject: RE: axis1.4 with https
>Date: Fri, 22 Jun 2007 13:10:33 -0400
>
>Is my keystore the cacerts file or the .cer file I exported?
>
>-----Original Message-----
>From: Johan Roch [mailto:jroch@hotmail.com]
>Sent: Friday, June 22, 2007 1:04 PM
>To: axis-user@ws.apache.org
>Subject: Re: axis1.4 with https
>
>
>If you generate code with WSDL2Java, add the parameter
>-Djavax.net.ssl.trustStore in the command line:
>
>java -Djavax.net.ssl.trustStore="...\myKeyStore" -cp %AXISCLASSPATH%
>org.apache.axis.wsdl.WSDL2Java ...
>
> >From: Doug Davis <du...@us.ibm.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Re: axis1.4 with https
> >Date: Fri, 22 Jun 2007 12:53:21 -0400
> >
> >I usually have to add something like this:
> >   System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");
> >
> >to my client code to get it to load the keystore.
> >
> >thanks
> >-Doug
> >______________________________________________________
> >STSM  |  Web Services Architect  |  IBM Software Group
> >(919) 254-6905  |  IBM T/L 444-6905  |  dug@us.ibm.com
> >
> >
> >
> >"Chau, Hoang" <Ho...@adp.com>
> >06/22/2007 12:21 PM
> >Please respond to
> >axis-user@ws.apache.org
> >
> >
> >To
> >axis-user@ws.apache.org
> >cc
> >
> >Subject
> >axis1.4 with https
> >
> >
> >
> >
> >
> >
> >HI all,
> >
> >I have problem in generating code in axis1.4 with https.  Basically, the
> >jdk can not find path to the certificate.  Anybody ran into this problem
> >before and knew how to solve it, I appreciate it.
> >
> >
> >Hoang
> >
> >
> >This message and any attachments are intended only for the use of the
> >addressee and may contain information that is privileged and 
>confidential.
> >If the reader of the message is not the intended recipient or an
> >authorized representative of the intended recipient, you are hereby
> >notified that any dissemination of this communication is strictly
> >prohibited. If you have received this communication in error, notify the
> >sender immediately by return email and delete the message and any
> >attachments from your system.
>
>_________________________________________________________________
>Saviez-vous que Windows Live Messenger est disponible dès maintenant sur
>votre GSM ? http://get.live.com/messenger/mobile
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>

_________________________________________________________________
A la recherche d'un ami d'enfance ? Peut-être est-il dans la liste d'amis de 
vos amis ! http://spaces.live.com/default.aspx?page=Ed01&ss=True


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


RE: axis1.4 with https

Posted by Mark Babcock <ma...@cormineid.com>.
Is my keystore the cacerts file or the .cer file I exported?

-----Original Message-----
From: Johan Roch [mailto:jroch@hotmail.com] 
Sent: Friday, June 22, 2007 1:04 PM
To: axis-user@ws.apache.org
Subject: Re: axis1.4 with https


If you generate code with WSDL2Java, add the parameter 
-Djavax.net.ssl.trustStore in the command line:

java -Djavax.net.ssl.trustStore="...\myKeyStore" -cp %AXISCLASSPATH% 
org.apache.axis.wsdl.WSDL2Java ...

>From: Doug Davis <du...@us.ibm.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: axis1.4 with https
>Date: Fri, 22 Jun 2007 12:53:21 -0400
>
>I usually have to add something like this:
>   System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");
>
>to my client code to get it to load the keystore.
>
>thanks
>-Doug
>______________________________________________________
>STSM  |  Web Services Architect  |  IBM Software Group
>(919) 254-6905  |  IBM T/L 444-6905  |  dug@us.ibm.com
>
>
>
>"Chau, Hoang" <Ho...@adp.com>
>06/22/2007 12:21 PM
>Please respond to
>axis-user@ws.apache.org
>
>
>To
>axis-user@ws.apache.org
>cc
>
>Subject
>axis1.4 with https
>
>
>
>
>
>
>HI all,
>
>I have problem in generating code in axis1.4 with https.  Basically, the
>jdk can not find path to the certificate.  Anybody ran into this problem
>before and knew how to solve it, I appreciate it.
>
>
>Hoang
>
>
>This message and any attachments are intended only for the use of the
>addressee and may contain information that is privileged and confidential.
>If the reader of the message is not the intended recipient or an
>authorized representative of the intended recipient, you are hereby
>notified that any dissemination of this communication is strictly
>prohibited. If you have received this communication in error, notify the
>sender immediately by return email and delete the message and any
>attachments from your system.

_________________________________________________________________
Saviez-vous que Windows Live Messenger est disponible dès maintenant sur 
votre GSM ? http://get.live.com/messenger/mobile


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


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


RE: axis1.4 with https

Posted by "Chau, Hoang" <Ho...@adp.com>.
Thank you very much John and Doug.


Hoang

-----Original Message-----
From: Johan Roch [mailto:jroch@hotmail.com] 
Sent: Friday, June 22, 2007 10:04 AM
To: axis-user@ws.apache.org
Subject: Re: axis1.4 with https



If you generate code with WSDL2Java, add the parameter 
-Djavax.net.ssl.trustStore in the command line:

java -Djavax.net.ssl.trustStore="...\myKeyStore" -cp %AXISCLASSPATH% 
org.apache.axis.wsdl.WSDL2Java ...

>From: Doug Davis <du...@us.ibm.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: axis1.4 with https
>Date: Fri, 22 Jun 2007 12:53:21 -0400
>
>I usually have to add something like this:
>   System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");
>
>to my client code to get it to load the keystore.
>
>thanks
>-Doug
>______________________________________________________
>STSM  |  Web Services Architect  |  IBM Software Group
>(919) 254-6905  |  IBM T/L 444-6905  |  dug@us.ibm.com
>
>
>
>"Chau, Hoang" <Ho...@adp.com>
>06/22/2007 12:21 PM
>Please respond to
>axis-user@ws.apache.org
>
>
>To
>axis-user@ws.apache.org
>cc
>
>Subject
>axis1.4 with https
>
>
>
>
>
>
>HI all,
>
>I have problem in generating code in axis1.4 with https.  Basically, 
>the jdk can not find path to the certificate.  Anybody ran into this 
>problem before and knew how to solve it, I appreciate it.
>
>
>Hoang
>
>
>This message and any attachments are intended only for the use of the 
>addressee and may contain information that is privileged and 
>confidential. If the reader of the message is not the intended 
>recipient or an authorized representative of the intended recipient, 
>you are hereby notified that any dissemination of this communication is 
>strictly prohibited. If you have received this communication in error, 
>notify the sender immediately by return email and delete the message 
>and any attachments from your system.

_________________________________________________________________
Saviez-vous que Windows Live Messenger est disponible dès maintenant sur 
votre GSM ? http://get.live.com/messenger/mobile


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



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


Re: axis1.4 with https

Posted by Johan Roch <jr...@hotmail.com>.
If you generate code with WSDL2Java, add the parameter 
-Djavax.net.ssl.trustStore in the command line:

java -Djavax.net.ssl.trustStore="...\myKeyStore" -cp %AXISCLASSPATH% 
org.apache.axis.wsdl.WSDL2Java ...

>From: Doug Davis <du...@us.ibm.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: axis1.4 with https
>Date: Fri, 22 Jun 2007 12:53:21 -0400
>
>I usually have to add something like this:
>   System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");
>
>to my client code to get it to load the keystore.
>
>thanks
>-Doug
>______________________________________________________
>STSM  |  Web Services Architect  |  IBM Software Group
>(919) 254-6905  |  IBM T/L 444-6905  |  dug@us.ibm.com
>
>
>
>"Chau, Hoang" <Ho...@adp.com>
>06/22/2007 12:21 PM
>Please respond to
>axis-user@ws.apache.org
>
>
>To
>axis-user@ws.apache.org
>cc
>
>Subject
>axis1.4 with https
>
>
>
>
>
>
>HI all,
>
>I have problem in generating code in axis1.4 with https.  Basically, the
>jdk can not find path to the certificate.  Anybody ran into this problem
>before and knew how to solve it, I appreciate it.
>
>
>Hoang
>
>
>This message and any attachments are intended only for the use of the
>addressee and may contain information that is privileged and confidential.
>If the reader of the message is not the intended recipient or an
>authorized representative of the intended recipient, you are hereby
>notified that any dissemination of this communication is strictly
>prohibited. If you have received this communication in error, notify the
>sender immediately by return email and delete the message and any
>attachments from your system.

_________________________________________________________________
Saviez-vous que Windows Live Messenger est disponible dès maintenant sur 
votre GSM ? http://get.live.com/messenger/mobile


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


Re: axis1.4 with https

Posted by Doug Davis <du...@us.ibm.com>.
I usually have to add something like this:
  System.setProperty("javax.net.ssl.trustStore", "d:\mycert.jks");

to my client code to get it to load the keystore.

thanks
-Doug
______________________________________________________
STSM  |  Web Services Architect  |  IBM Software Group
(919) 254-6905  |  IBM T/L 444-6905  |  dug@us.ibm.com



"Chau, Hoang" <Ho...@adp.com> 
06/22/2007 12:21 PM
Please respond to
axis-user@ws.apache.org


To
axis-user@ws.apache.org
cc

Subject
axis1.4 with https






HI all,
 
I have problem in generating code in axis1.4 with https.  Basically, the 
jdk can not find path to the certificate.  Anybody ran into this problem 
before and knew how to solve it, I appreciate it.
 
 
Hoang
 

This message and any attachments are intended only for the use of the 
addressee and may contain information that is privileged and confidential. 
If the reader of the message is not the intended recipient or an 
authorized representative of the intended recipient, you are hereby 
notified that any dissemination of this communication is strictly 
prohibited. If you have received this communication in error, notify the 
sender immediately by return email and delete the message and any 
attachments from your system. 

axis1.4 with https

Posted by "Chau, Hoang" <Ho...@adp.com>.
HI all,
 
I have problem in generating code in axis1.4 with https.  Basically, the
jdk can not find path to the certificate.  Anybody ran into this problem
before and knew how to solve it, I appreciate it.
 
 
Hoang

	 




-----------------------------------------
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended
recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.