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 Gul Onural <on...@nortel.com> on 2006/09/14 02:07:27 UTC
WSDL2Java for a wsdl file with multiple porttypes
How do I use WSDL2Java to generate code for a wsdl file with multiple
portTypes in it?
Both eclipse plug-in and command line versions of the WSDL2Java tool
seem to
generate code for only one of the port types in my wsdl. I don't see how
I generate code
for all the port types in my wsdl file.
Thanks,
Gul
Re: Blocker for Axis2 v.1.1: WSDL2Java for a wsdl file with multiple porttypes
Posted by Davanum Srinivas <da...@gmail.com>.
Also FYI, WSDL2AxisServiceBuilder is not in the current axis2 svn
code. So you are using 1.0 and not the nightly. It may help if you
tested the same with WSDL2Java command line with the nightly.
-- dims
On 9/16/06, Davanum Srinivas <da...@gmail.com> wrote:
> you could start by filing a bug report with *your* wsdl. the problem
> may be something else other than what you think it is...
>
> -- dims
>
> On 9/16/06, Gul Onural <on...@nortel.com> wrote:
> >
> >
> > I believe this is a blocker for Axis2 v1.1, unless somebody can help me
> > understand if there is another way (other than using the wsdl2java).
> >
> > Gul
> >
> > ________________________________
> > From: Onural, Gul (CAR:SI12)
> > Sent: Wednesday, September 13, 2006 8:20 PM
> > To: axis-user@ws.apache.org
> > Subject: RE: WSDL2Java for a wsdl file with multiple porttypes
> >
> >
> >
> > I have also tried invoking the wsdl2java with -pn option to see what it does
> > for a wsdl file with multiple portTypes.
> > But got the following exception.
> >
> > Any suggestions ?
> >
> > Gul
> >
> > D:\axis2-std-1.0-bin\bin>WSDL2Java.bat -uri <wsdl location> -o <output> -p
> > <package_name> -ss -sd -g -ssi -pn <port_name>
> >
> > Using AXIS2_HOME: D:\axis2-std-1.0-bin
> > Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_08
> > log4j:WARN No appenders could be found for logger
> > (org.apache.axis2.i18n.ProjectResourceBundle).
> > log4j:WARN Please initialize the log4j system properly.
> > Exception in thread "main"
> > org.apache.axis2.wsdl.codegen.CodeGenerationException:
> > Error parsing WSDL
> > at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
> > at
> > org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > at
> > org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > Caused by: org.apache.axis2.AxisFault: Cannot Determine the MEP; nested
> > exception is:
> > java.lang.Exception: Cannot Determine the MEP
> > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
> > at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
> > ... 2 more
> > Caused by: java.lang.Exception: Cannot Determine the MEP
> > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.getMEP(WSDL2AxisServiceBuilder.java:1365)
> > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateOperations(WSDL2AxisServiceBuilder.java:389)
> > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSDL2AxisServiceBuilder.java:377)
> > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:299)
> > at
> > org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:238)
> > ... 3 more
> >
> > ________________________________
> > From: Onural, Gul (CAR:SI12)
> > Sent: Wednesday, September 13, 2006 8:07 PM
> > To: axis-user@ws.apache.org
> > Subject: WSDL2Java for a wsdl file with multiple porttypes
> >
> >
> >
> >
> >
> > How do I use WSDL2Java to generate code for a wsdl file with multiple
> > portTypes in it?
> >
> > Both eclipse plug-in and command line versions of the WSDL2Java tool seem to
> > generate code for only one of the port types in my wsdl. I don't see how I
> > generate code
> > for all the port types in my wsdl file.
> >
> > Thanks,
> >
> > Gul
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Blocker for Axis2 v.1.1: WSDL2Java for a wsdl file with multiple porttypes
Posted by Davanum Srinivas <da...@gmail.com>.
you could start by filing a bug report with *your* wsdl. the problem
may be something else other than what you think it is...
-- dims
On 9/16/06, Gul Onural <on...@nortel.com> wrote:
>
>
> I believe this is a blocker for Axis2 v1.1, unless somebody can help me
> understand if there is another way (other than using the wsdl2java).
>
> Gul
>
> ________________________________
> From: Onural, Gul (CAR:SI12)
> Sent: Wednesday, September 13, 2006 8:20 PM
> To: axis-user@ws.apache.org
> Subject: RE: WSDL2Java for a wsdl file with multiple porttypes
>
>
>
> I have also tried invoking the wsdl2java with -pn option to see what it does
> for a wsdl file with multiple portTypes.
> But got the following exception.
>
> Any suggestions ?
>
> Gul
>
> D:\axis2-std-1.0-bin\bin>WSDL2Java.bat -uri <wsdl location> -o <output> -p
> <package_name> -ss -sd -g -ssi -pn <port_name>
>
> Using AXIS2_HOME: D:\axis2-std-1.0-bin
> Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_08
> log4j:WARN No appenders could be found for logger
> (org.apache.axis2.i18n.ProjectResourceBundle).
> log4j:WARN Please initialize the log4j system properly.
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> Error parsing WSDL
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
> at
> org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at
> org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: org.apache.axis2.AxisFault: Cannot Determine the MEP; nested
> exception is:
> java.lang.Exception: Cannot Determine the MEP
> at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
> ... 2 more
> Caused by: java.lang.Exception: Cannot Determine the MEP
> at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.getMEP(WSDL2AxisServiceBuilder.java:1365)
> at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateOperations(WSDL2AxisServiceBuilder.java:389)
> at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSDL2AxisServiceBuilder.java:377)
> at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:299)
> at
> org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:238)
> ... 3 more
>
> ________________________________
> From: Onural, Gul (CAR:SI12)
> Sent: Wednesday, September 13, 2006 8:07 PM
> To: axis-user@ws.apache.org
> Subject: WSDL2Java for a wsdl file with multiple porttypes
>
>
>
>
>
> How do I use WSDL2Java to generate code for a wsdl file with multiple
> portTypes in it?
>
> Both eclipse plug-in and command line versions of the WSDL2Java tool seem to
> generate code for only one of the port types in my wsdl. I don't see how I
> generate code
> for all the port types in my wsdl file.
>
> Thanks,
>
> Gul
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: WSDL2Java for a wsdl file with multiple porttypes
Posted by Ali Sadik Kumlali <as...@yahoo.com>.
Hi Gul,
Please have a look at http://issues.apache.org/jira/browse/AXIS2-965?page=all ?
If this change also affects the generator, then, you need to use nightly built of Axis2.
Regards,
Ali Sadik Kumlali
----- Original Message ----
From: Gul Onural <on...@nortel.com>
To: axis-user@ws.apache.org
Sent: Thursday, September 14, 2006 3:19:40 AM
Subject: RE: WSDL2Java for a wsdl file with multiple porttypes
WSDL2Java for a wsdl file with multiple porttypes I have also tried invoking the wsdl2java with -pn option to see what it does for a wsdl file with multiple portTypes.
But got the following exception.
Any suggestions ?
Gul
D:\axis2-std-1.0-bin\bin>WSDL2Java.bat -uri <wsdl location> -o <output> -p <package_name> -ss -sd -g -ssi -pn <port_name>
Using AXIS2_HOME: D:\axis2-std-1.0-bin
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_08
log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: Cannot Determine the MEP; nested exception is:
java.lang.Exception: Cannot Determine the MEP
at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
... 2 more
Caused by: java.lang.Exception: Cannot Determine the MEP
at org.apache.axis2.description.WSDL2AxisServiceBuilder.getMEP(WSDL2AxisServiceBuilder.java:1365)
at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateOperations(WSDL2AxisServiceBuilder.java:389)
at org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSDL2AxisServiceBuilder.java:377)
at org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:299)
at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:238)
... 3 more
From: Onural, Gul (CAR:SI12)
Sent: Wednesday, September 13, 2006 8:07 PM
To: axis-user@ws.apache.org
Subject: WSDL2Java for a wsdl file with multiple porttypes
How do I use WSDL2Java to generate code for a wsdl file with multiple portTypes in it?
Both eclipse plug-in and command line versions of the WSDL2Java tool seem to
generate code for only one of the port types in my wsdl. I don't see how I generate code
for all the port types in my wsdl file.
Thanks,
Gul
Blocker for Axis2 v.1.1: WSDL2Java for a wsdl file with multiple porttypes
Posted by Gul Onural <on...@nortel.com>.
I believe this is a blocker for Axis2 v1.1, unless somebody can help me
understand if there is another way (other than using the wsdl2java).
Gul
________________________________
From: Onural, Gul (CAR:SI12)
Sent: Wednesday, September 13, 2006 8:20 PM
To: axis-user@ws.apache.org
Subject: RE: WSDL2Java for a wsdl file with multiple porttypes
I have also tried invoking the wsdl2java with -pn option to see what it
does for a wsdl file with multiple portTypes.
But got the following exception.
Any suggestions ?
Gul
D:\axis2-std-1.0-bin\bin>WSDL2Java.bat -uri <wsdl location> -o <output>
-p <package_name> -ss -sd -g -ssi -pn <port_name>
Using AXIS2_HOME: D:\axis2-std-1.0-bin
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_08
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:94)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: Cannot Determine the MEP; nested
exception is:
java.lang.Exception: Cannot Determine the MEP
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSD
L2AxisServiceBuilder.java:243)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:87)
... 2 more
Caused by: java.lang.Exception: Cannot Determine the MEP
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.getMEP(WSDL2AxisSer
viceBuilder.java:1365)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateOperations(
WSDL2AxisServiceBuilder.java:389)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSD
L2AxisServiceBuilder.java:377)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL
2AxisServiceBuilder.java:299)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSD
L2AxisServiceBuilder.java:238)
... 3 more
________________________________
From: Onural, Gul (CAR:SI12)
Sent: Wednesday, September 13, 2006 8:07 PM
To: axis-user@ws.apache.org
Subject: WSDL2Java for a wsdl file with multiple porttypes
How do I use WSDL2Java to generate code for a wsdl file with multiple
portTypes in it?
Both eclipse plug-in and command line versions of the WSDL2Java tool
seem to
generate code for only one of the port types in my wsdl. I don't see how
I generate code
for all the port types in my wsdl file.
Thanks,
Gul
RE: WSDL2Java for a wsdl file with multiple porttypes
Posted by Gul Onural <on...@nortel.com>.
I have also tried invoking the wsdl2java with -pn option to see what it
does for a wsdl file with multiple portTypes.
But got the following exception.
Any suggestions ?
Gul
D:\axis2-std-1.0-bin\bin>WSDL2Java.bat -uri <wsdl location> -o <output>
-p <package_name> -ss -sd -g -ssi -pn <port_name>
Using AXIS2_HOME: D:\axis2-std-1.0-bin
Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_08
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:94)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: org.apache.axis2.AxisFault: Cannot Determine the MEP; nested
exception is:
java.lang.Exception: Cannot Determine the MEP
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSD
L2AxisServiceBuilder.java:243)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
Engine.java:87)
... 2 more
Caused by: java.lang.Exception: Cannot Determine the MEP
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.getMEP(WSDL2AxisSer
viceBuilder.java:1365)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateOperations(
WSDL2AxisServiceBuilder.java:389)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSD
L2AxisServiceBuilder.java:377)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL
2AxisServiceBuilder.java:299)
at
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSD
L2AxisServiceBuilder.java:238)
... 3 more
________________________________
From: Onural, Gul (CAR:SI12)
Sent: Wednesday, September 13, 2006 8:07 PM
To: axis-user@ws.apache.org
Subject: WSDL2Java for a wsdl file with multiple porttypes
How do I use WSDL2Java to generate code for a wsdl file with multiple
portTypes in it?
Both eclipse plug-in and command line versions of the WSDL2Java tool
seem to
generate code for only one of the port types in my wsdl. I don't see how
I generate code
for all the port types in my wsdl file.
Thanks,
Gul