[ https://issues.apache.org/jira/browse/AXIS2-2292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas updated AXIS2-2292: ------------------------------------ Assignee: Amila Chinthaka Suriarachchi > wsdl2java produces a stub that cannot be compiled, when the wsdl file > contains an element defined as a restriction on a duration type > ------------------------------------------------------------------------------------------------------------------------------------- > > Key: AXIS2-2292 > URL: https://issues.apache.org/jira/browse/AXIS2-2292 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: adb, codegen > Environment: nightly build as of 3/2/07 > Reporter: Carmen Checa > Assigned To: Amila Chinthaka Suriarachchi > > This is the sample wsdl: > <?xml version="1.0" encoding="UTF-8"?> > < 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:duration "> > < > xsd:minInclusive value =" P0Y0M0DT0H0M0S "/> > </ > 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 > > This is the compilation error: > [javac] > C:\sdk\axis2build\generatedClient\src\mynamespace\MyServiceStub.java:686: > cannot find symbol > [javac] symbol : method > compare(org.apache.axis2.databinding.types.Duration,java.lang.String) > [javac] location: class org.apache.axis2.databinding.utils.ConverterUtil > [javac] if > (org.apache.axis2.databinding.utils.ConverterUtil.compare(param, "") >= 0){ > [javac] > ^ -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]