axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: wsdl:include is not recognized by wsdl2java
Date Fri, 02 Mar 2007 21:14:22 GMT
There is no such element as <include> defined in the WSDL namepsace.
Use <wsdl:import>.

Anne

On 3/2/07, Yadav, Yogendra (IT) <Yogendra.Yadav@morganstanley.com> wrote:
>
>
>
> Hi,
> WSDL2Java does not recognize <wsdl:include>, when I tried I get this error,
> please tell me what is wrong in the way I am using it ?
>
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> Error parsing WSDL
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:114)
>         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
> /definitions/include): faultCode=INVALID_WSDL: Encountered illegal extension
> element '{htt
> p://schemas.xmlsoap.org/wsdl/}include' in the context of a
> 'javax.wsdl.Definition'. Extension elements must be in a namespace other
> than WSDL's.
>         at
> com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityElement(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(CodeGenerationEngine.java:276)
>         at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:97)
>         ... 2 more
>
> WSDL snippet:
>  <include location="DocumentService_abstract.wsdl"/>
>
> <wsdl:import> works
>  <import namespace="urn:abs_con"
> location="DocumentService_abstract.wsdl"/>
>
> thanx
> -yogen
>
>  ________________________________
>
>
> NOTICE: If received in error, please destroy and notify sender. Sender does
> not intend to waive confidentiality or privilege. Use of this email is
> prohibited when received in error.
>

---------------------------------------------------------------------
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