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 <[EMAIL PROTECTED]> 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: [email protected]
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: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to