axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: wsdl2java crushes
Date Wed, 06 Jun 2007 13:12:14 GMT
This means that that this is an abstract wsdl and not a concrete wsdl.

-- dims

On 6/6/07, Denis Kishenko <dkishenko@gmail.com> wrote:
> I am sorry for confusion, my previous example was incorrect because of
> I skipped -wv, but this crushes too
>
> C:\axis2-1.2\bin>wsdl2java.bat -uri
> C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl -wv 2.0
> Using AXIS2_HOME:   C:\axis2-1.2
> Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> WSDL
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:137)
>         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: No wsdlService found in the WSDL
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:227)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:93)
>         ... 2 more
> Caused by: org.apache.axis2.AxisFault: No wsdlService found in the WSDL
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.processService(WSDL20ToAxisServiceBuilder.java:276)
>         at org.apache.axis2.description.WSDL20ToAxisServiceBuilder.populateService(WSDL20ToAxisServiceBuilder.java:224)
>         ... 3 more
>
>
> 2007/6/6, Lukichev, Alexander S <alexander.s.lukichev@intel.com>:
> > Maybe because it expects WSDL v1, not v2?
> >
> > Alexander
> >
> > >-----Original Message-----
> > >From: Denis Kishenko [mailto:dkishenko@gmail.com]
> > >Sent: Wednesday, June 06, 2007 4:53 PM
> > >To: axis-user@ws.apache.org
> > >Subject: wsdl2java crushes
> > >
> > >Hi all
> > >
> > >I am really interested in wsdl2java tool but have some problems.
> > >
> > >On the following link you can find a lot of *good* wsdl files
> > >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > >unfortunately wsdl2java crushes on the most of them (about 70%) with
> > exceptions
> > >
> > >For example, see
> > >http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/index.html
> > >
> > >getBalance.wsdl
> > ><?xml version="1.0" encoding="UTF-8"?>
> > ><wsdl:description xmlns:tns="http://example.org/getBalance/"
> > >       xmlns:wsdl="http://www.w3.org/ns/wsdl"
> > >       xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > >       targetNamespace="http://example.org/getBalance/">
> > >
> > >       <wsdl:documentation>
> > >               This test shows how to use elements from an included
> > no-target
> > >               namespace xsd (i.e. chameleon include)
> > >       </wsdl:documentation>
> > >
> > >       <wsdl:types>
> > >               <xsd:schema
> > targetNamespace="http://example.org/getBalance/"
> > >                       xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> > >                       <xsd:include schemaLocation="getBalance.xsd" />
> > >               </xsd:schema>
> > >       </wsdl:types>
> > >
> > >       <wsdl:interface name="getBalanceInf">
> > >               <wsdl:operation name="getBalance"
> > >                       pattern="http://www.w3.org/ns/wsdl/in-out">
> > >                       <wsdl:input element="tns:custInfo" />
> > >                       <wsdl:output element="tns:accInfo" />
> > >               </wsdl:operation>
> > >       </wsdl:interface>
> > ></wsdl:description>
> > >
> > >C:\axis2-1.2\bin>wsdl2java.bat -uri
> > >C:\wsdl-test-suite\documents\good\Chameleon-1G\getBalance.wsdl
> > >Using AXIS2_HOME:   C:\axis2-1.2
> > >Using JAVA_HOME:    C:\Program Files\Java\jdk1.6.0
> > >Exception in thread "main"
> > >org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
> > >WSDL
> > >        at
> > >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneratio
> > nEngine.java:140)
> > >        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> > >        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> > >Caused by: javax.wsdl.WSDLException: WSDLException (at
> > >/wsdl:description): faultCode=INVALID_WSDL: Expected element
> > >'{http://schemas.xmlsoap.org/wsdl/
> > >}definitions'.
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown
> > Source)
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> > Source)
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >        at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > >        at
> > >org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(Co
> > deGenerationEngine.java:308
> > >)
> > >        at
> > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration
> > Engine.java:97)
> > >        ... 2 more
> > >
> > >Why this tool doesn't understand this file?
> > >
> > >Thanks,
> > >Denis
> > >
> > >---------------------------------------------------------------------
> > >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
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

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


Mime
View raw message