axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Lappen (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Updated: (AXIS-1828) wsdl2java extension base issue
Date Tue, 22 Feb 2005 21:05:48 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1828?page=history ]

Greg Lappen updated AXIS-1828:
------------------------------

    Attachment: lightpaper.wsdl

> wsdl2java extension base issue
> ------------------------------
>
>          Key: AXIS-1828
>          URL: http://issues.apache.org/jira/browse/AXIS-1828
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC2
>  Environment: Mac OS X, JDK 1.4.2
>     Reporter: Greg Lappen
>  Attachments: lightpaper.wsdl
>
> Hello,
> I believe I have found a bug in wsdl2java.  I am trying to convert some SOAP code to
AXIS and I'm using our existing schema elements.  In my schema section I have this (full wsdl
file attached):
> 			
>         <simpleType name="fileContentType">
> 		<union memberTypes="base64Binary anyURI"/>
> 	</simpleType>
> 			
>         <complexType name="file">
> 		<simpleContent>
> 			<extension base="lp:fileContentType">
>                         <attribute name="fileType" type="lp:fileType" use="required"/>
>                         <attribute name="fileExtension" type="string" use="optional"/>
> 		        </extension>
> 		</simpleContent>
>         </complexType>
> 			
> wsdl2java bombs with this error:  
> java.lang.RuntimeException: Unknown element _value
>         at org.apache.axis.wsdl.toJava.JavaBeanWriter.getBinaryTypeEncoderName(JavaBeanWriter.java:397)
>         at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeSimpleTypeGetter(JavaBeanWriter.java:770)
>         at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeAccessMethods(JavaBeanWriter.java:944)
>         at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileBody(JavaBeanWriter.java:224)
>         at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:130)
>         at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
>         at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:424)
>         at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:540)
>         at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:427)
>         at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:44)
>         at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:357)
>         at java.lang.Thread.run(Thread.java:552)
> Changing to <extension base="string"> in the "file" complexType allows it to compile,
but I lose the schema validation.
> Is my schema valid?  It is working fine with our current schema solution which is xmlbeans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message