axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-1437) wsdl2java -d jaxbri generated code does not compile
Date Mon, 11 Jun 2007 19:37:27 GMT

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

Deepal Jayasinghe updated AXIS2-1437:
-------------------------------------

    Priority: Blocker  (was: Minor)

Amila , 
Let's try to fix this for 1.3

> wsdl2java -d jaxbri generated code does not compile
> ---------------------------------------------------
>
>                 Key: AXIS2-1437
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1437
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>            Reporter: Chris McClelland
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>
> org/apache/axis2/schema/typemap/JavaTypeMap.java maps XSD primitive types to Java primitive
types (e.g, "xs:int" to "int"), but org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl
assumes Object-like semantics.
> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
>              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>              xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>              xmlns:tns="http://wsns.foo.com/axis2/test01"
>              xmlns:typ="http://xmlns.foo.com/axis2/test01"
>              xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ http://www.foo.com/wsdl.xsd"
>              targetNamespace="http://wsns.foo.com/axis2/test01"
>              name="Test01">
>   <types>
>     <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
>                targetNamespace="http://xmlns.foo.com/axis2/test01"
>                elementFormDefault="qualified">
>       <xs:element name="Add">
>         <xs:complexType>
>           <xs:sequence>
>             <xs:element name="Arg1" type="xs:int"/>
>             <xs:element name="Arg2" type="xs:int"/>
>           </xs:sequence>
>         </xs:complexType>
>       </xs:element>
>       <xs:element name="AddReturn" type="xs:int"/>
>     </xs:schema>
>   </types>
>   <message name="Add">
>     <part name="params" element="typ:Add"/>
>   </message>
>   <message name="AddResponse">
>     <part name="result" element="typ:AddReturn"/>
>   </message>
>   <portType name="Test01PortType">
>     <operation name="Add">
>       <input name="Add" message="tns:Add"/>
>       <output name="AddResponse" message="tns:AddResponse"/>
>     </operation>
>   </portType>
>   <binding name="Test01PortBinding" type="tns:Test01PortType">
>     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>     <operation name="Add">
>       <soap:operation soapAction="Add" style="document"/>
>       <input>
>         <soap:body use="literal" namespace="http://wsns.foo.com/axis2/test01"/>
>       </input>
>       <output>
>         <soap:body use="literal" namespace="http://wsns.foo.com/axis2/test01"/>
>       </output>
>     </operation>
>   </binding>
>   <service name="Test01">
>     <port name="Axis2SampleDocLitPort" binding="tns:Test01PortBinding">
>       <soap:address location="http://requiem.foo.com:8080/axis2/services/Test01"/>
>     </port>
>   </service>
> </definitions>
>     [javac] /home/chris/eclipseWorkspace/wsdl2Service/src/com/foo/axis2/test01/Test01MessageReceiverInOut.java:46:
incompatible types
>     [javac] found   : <nulltype>
>     [javac] required: int
>     [javac]             int param3 = null;
>     [javac]                          ^
>     [javac] /home/chris/eclipseWorkspace/wsdl2Service/src/com/foo/axis2/test01/Test01MessageReceiverInOut.java:159:
incomparable types: int and <nulltype>
>     [javac]                     if (param != null){

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


Mime
View raw message