Hello,

I have this WSDL:

...
   <wsdl:binding name="XXXAsyncReqRepExampleBinding"
type="tns:XXXAsyncReqRepExample">
       <soap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"; />
       <wsdl:operation name="XXXAsyncReqRepExample">
           <soap:operation />      <!-- OVER HERE -->
           <wsdl:input>
               <soap:body use="literal" />
           </wsdl:input>
           <wsdl:output>
               <soap:body use="literal" />
           </wsdl:output>
           <wsdl:fault name="TechnicalExceptionFault">
               <soap:fault name="TechnicalExceptionFault" use="literal" />
           </wsdl:fault>
       </wsdl:operation>
   </wsdl:binding>
...

When I try WSDL2IDL tool I get exception:

java.lang.ClassCastException:
javax.wsdl.extensions.UnknownExtensibilityElement cannot be cast to
org.apache.schemas.yoko.bindings.corba.OperationType
at org.apache.yoko.tools.processors.wsdl.WSDLToIDLAction.addOperation(
WSDLToIDLAction.java:230)
at org.apache.yoko.tools.processors.wsdl.WSDLToIDLAction.collectIdlDefns(
WSDLToIDLAction.java:217)
at org.apache.yoko.tools.processors.wsdl.WSDLToIDLAction.generateIDL(
WSDLToIDLAction.java:198)
at org.apache.yoko.tools.processors.wsdl.WSDLToIDLAction.generateIDL(
WSDLToIDLAction.java:133)
at org.apache.yoko.tools.processors.wsdl.WSDLToCorbaProcessor.process(
WSDLToCorbaProcessor.java:87)
at org.apache.yoko.tools.WSDLToIDL.execute(WSDLToIDL.java:83)
at org.objectweb.celtix.tools.common.toolspec.ToolRunner.runTool(
ToolRunner.java:50)
at org.objectweb.celtix.tools.common.toolspec.ToolRunner.runTool(
ToolRunner.java:19)
at org.apache.yoko.tools.WSDLToIDL.main(WSDLToIDL.java:141) 15:52

The error is in the WSDLToIDLAction.addOperation:

...
org.apache.schemas.yoko.bindings.corba.OperationType opType =
               (org.apache.schemas.yoko.bindings.corba.OperationType)i
               .next();
...

Its thrown on the line marked in XML comment ("OVER HERE"). It seems YOKO do
not understand it while WSDL2JAVA does. Is this a bug?

Thanks for help

--
Lukas Zapletal
http://lukas.zapletalovi.com

Reply via email to