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 "Chris McClelland (JIRA)" <ji...@apache.org> on 2006/10/18 04:05:39 UTC

[jira] Created: (AXIS2-1437) CTypeInfo maps XSD primitives to Java primitives, but code generator assumes types are objects

CTypeInfo maps XSD primitives to Java primitives, but code generator assumes types are objects
----------------------------------------------------------------------------------------------

                 Key: AXIS2-1437
                 URL: http://issues.apache.org/jira/browse/AXIS2-1437
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.1
            Reporter: Chris McClelland
            Priority: Minor


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

        

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


[jira] Commented: (AXIS2-1437) wsdl2java -d jaxbri generated code does not compile

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502641 ] 

Davanum Srinivas commented on AXIS2-1437:
-----------------------------------------

New failure is as follows:

compile.src:
    [javac] Compiling 6 source files to C:\axis2-SNAPSHOT\samples\jaxbri\build\classes
    [javac] C:\axis2-SNAPSHOT\samples\jaxbri\src\com\foo\wsns\axis2\test01\Test01Stub.java:329: <identifier> expected
    [javac]                 private static final javax.xml.bind.JAXBContext int;
    [javac]                                                                 ^
    [javac] C:\axis2-SNAPSHOT\samples\jaxbri\src\com\foo\wsns\axis2\test01\Test01Stub.java:359: not a statement
    [javac]                         int = jc;
    [javac]                         ^
    [javac] C:\axis2-SNAPSHOT\samples\jaxbri\src\com\foo\wsns\axis2\test01\Test01Stub.java:359: ';' expected
    [javac]                         int = jc;
    [javac]                             ^
    [javac] C:\axis2-SNAPSHOT\samples\jaxbri\src\com\foo\wsns\axis2\test01\Test01Stub.java:398: '.class' expected
    [javac]                         javax.xml.bind.JAXBContext context = int;
    [javac]                                                                 ^
    [javac] 4 errors

BUILD FAILED
C:\axis2-SNAPSHOT\samples\jaxbri\build.xml:48: Compile failed; see the compiler error output for details.

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


[jira] Resolved: (AXIS2-1437) wsdl2java -d jaxbri generated code does not compile

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-1437.
-------------------------------------------------

    Resolution: Fixed

now this compiles fine

> 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


[jira] Updated: (AXIS2-1437) wsdl2java -d jaxbri generated code does not compile

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-1437:
------------------------------------

    Summary: wsdl2java -d jaxbri generated code does not compile  (was: CTypeInfo maps XSD primitives to Java primitives, but code generator assumes types are objects)

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


[jira] Commented: (AXIS2-1437) CTypeInfo maps XSD primitives to Java primitives, but code generator assumes types are objects

Posted by "Chris McClelland (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1437?page=comments#action_12443393 ] 
            
Chris McClelland commented on AXIS2-1437:
-----------------------------------------

Actually this problem only occurs for the JAXB RI binding, so it should probably be in the databindings subproject. Apologies.

> CTypeInfo maps XSD primitives to Java primitives, but code generator assumes types are objects
> ----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1437
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1437
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>            Reporter: Chris McClelland
>            Priority: Minor
>
> 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.
-
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

        

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


[jira] Commented: (AXIS2-1437) wsdl2java -d jaxbri generated code does not compile

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509705 ] 

Davanum Srinivas commented on AXIS2-1437:
-----------------------------------------

Fixed in svn revision 552617

thanks,
dims

> 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
>             Fix For: 1.3
>
>
> 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


[jira] Reopened: (AXIS2-1437) wsdl2java -d jaxbri generated code does not compile

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi reopened AXIS2-1437:
-------------------------------------------------


closed a wrong issue

> 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


[jira] Resolved: (AXIS2-1437) wsdl2java -d jaxbri generated code does not compile

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-1437.
-------------------------------------

    Resolution: Fixed

> 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
>             Fix For: 1.3
>
>
> 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


[jira] Updated: (AXIS2-1437) wsdl2java -d jaxbri generated code does not compile

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Updated: (AXIS2-1437) CTypeInfo maps XSD primitives to Java primitives, but code generator assumes types are objects

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-1437:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> CTypeInfo maps XSD primitives to Java primitives, but code generator assumes types are objects
> ----------------------------------------------------------------------------------------------
>
>                 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
>         Assigned To: Amila Chinthaka Suriarachchi
>            Priority: Minor
>
> 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