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 "jim (JIRA)" <ax...@ws.apache.org> on 2006/03/28 04:24:46 UTC

[jira] Commented: (AXIS-2226) bad online-generated wsdl for derivatives of simple types

    [ http://issues.apache.org/jira/browse/AXIS-2226?page=comments#action_12372054 ] 

jim commented on AXIS-2226:
---------------------------

I have a copy of what I believe is the 1.3 baseline from the maven site and still see issues with this when obtaining online WSDL from my application. The source code in the 1.3 download still has the unpatched code in it, but my error is slightly different and more fatal.

Fault - Bean attribute _value is of type java.lang.String, which is not a simple type


The WSDL we are using is fairly complex and I haven't boiled it down to a simple test case yet but will attach a zip file if anyone wants a test case. I used wsdl2java to create and implementation and then immediately called ?WSDL when the skeleton was the implementation and got the fault.

> bad online-generated wsdl for derivatives of simple types
> ---------------------------------------------------------
>
>          Key: AXIS-2226
>          URL: http://issues.apache.org/jira/browse/AXIS-2226
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.2.1
>  Environment: fedora core 2
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
>     Reporter: toby cabot
>  Attachments: axis-simpleType-patch.txt
>
> I have a WSDL that includes types that are derived from string, e.g.:
>     <xsd:complexType name="ECTrigger">
>         <xsd:simpleContent>
>             <xsd:extension base="xsd:string"/>
>         </xsd:simpleContent>
>     </xsd:complexType>
> If I run this through wsdl2java and deploy it everything works fine, except that when I try to use the online wsdl (i.e. from the *ServicePort?wsdl URL) it contains:
>    <complexType name="ECTrigger">
>     <simpleContent>
>      <extension>
>       <attribute name="_value" type="xsd:string"/>
>      </extension>
>     </simpleContent>
>    </complexType>
> which is invalid.
> It looks like the problem is in org.apache.axis.encoding.ser.SimpleSerializer#writeSchema().  It's looking for a property descriptor name called "value" but the descriptor is called "_value".  I'll attach a patch that fixes this.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira