You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Matthew Good (JIRA)" <ax...@ws.apache.org> on 2007/02/23 02:14:05 UTC

[jira] Updated: (AXIS-1828) wsdl2java extension base issue

     [ https://issues.apache.org/jira/browse/AXIS-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthew Good  updated AXIS-1828:
--------------------------------

             Priority: Blocker  (was: Major)
    Affects Version/s:     (was: 1.2RC2)
                       1.4

I'm upping the priority and version.
I am using an ECMA standard and there's no way I change the schema.  This blocks usage of the schema by Axis based clients.

> wsdl2java extension base issue
> ------------------------------
>
>                 Key: AXIS-1828
>                 URL: https://issues.apache.org/jira/browse/AXIS-1828
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Mac OS X, JDK 1.4.2
>            Reporter: Greg Lappen
>            Priority: Blocker
>         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.
-
You can reply to this email to add a comment to the issue online.


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