axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carmen Checa (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-2337) wsdl2java produces a stub that cannot be compiled, when the wsdl file contains an element defined as a restriction on a dateTimetype
Date Fri, 16 Mar 2007 17:09:09 GMT
wsdl2java produces a stub that cannot be compiled, when the wsdl file contains an element defined
as a restriction on a dateTimetype
------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-2337
                 URL: https://issues.apache.org/jira/browse/AXIS2-2337
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
         Environment: Nightly build from 3/15
            Reporter: Carmen Checa


This is the sample wsdl: 
<wsdl:definitions 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:ns="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:myns="http://MyNamespace" targetNamespace="http://MyNamespace"> 
           <wsdl:types> 
                        <xsd:schema elementFormDefault="qualified" version="1.0.0.3" targetNamespace="http://MyNamespace">

                          <xsd:element name="Operation1Content"> 
				 		   <xsd:simpleType> 
						    <xsd:restriction base="xsd:dateTime"> 
						      <xsd:minInclusive value="0001-01-01T00:00:00"/> 
						    </xsd:restriction> 
						   </xsd:simpleType>
            			</xsd:element> 
                        </xsd:schema> 
            </wsdl:types> 
            <wsdl:message name="Operation1Msg"> 
                        <wsdl:part name="body" element="myns:Operation1Content"/> 
            </wsdl:message> 
            <wsdl:portType name="MyPortType"> 
                        <wsdl:operation name="Operation1"> 
                                    <wsdl:input message="myns:Operation1Msg"/> 
                                    <wsdl:output message="myns:Operation1Msg"/> 
                        </wsdl:operation> 
            </wsdl:portType> 
            <wsdl:binding name="MyBinding" type="myns:MyPortType"> 
                        <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

                        <wsdl:operation name="Operation1"> 
                                    <wsdlsoap:operation soapAction="MyOperation"/> 
                                    <wsdl:input> 
                                                <wsdlsoap:body use="literal"/> 
                                    </wsdl:input> 
                                    <wsdl:output> 
                                                <wsdlsoap:body use="literal"/> 
                                    </wsdl:output> 
                        </wsdl:operation> 
            </wsdl:binding> 
            <wsdl:service name="MyService"> 
                        <wsdl:port name="MyPort" binding="myns:MyBinding"> 
                                    <wsdlsoap:address location="http://localhost:8080/MyService"/>

                        </wsdl:port> 
            </wsdl:service> 
</wsdl:definitions> 

and this is the compiler error

  [javac] C:\projects\sdk\axis2build\generatedClient\src\mynamespace\MyServiceMyPortStub.java:375:
cannot find symbol
    [javac] symbol  : method compare(java.util.Calendar,java.lang.String)
    [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil
    [javac] if (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "0001-01-01T00:00:00")
>= 0){
    [javac] ^
    [javac] Note: C:\projects\sdk\axis2build\generatedClient\src\mynamespace\MyServiceMyPortStub.java
uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

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