[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
