axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4585) xs:int with minOccurs="0" or nillable="true" could not be mapping to Integer in Java in xmlbeans mode
Date Sat, 25 Dec 2010 10:27:46 GMT

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

Amila Chinthaka Suriarachchi resolved AXIS2-4585.
-------------------------------------------------

    Resolution: Won't Fix

There is no parameter in XML beans to do this. if so we can add a parameter to set it.

> xs:int with minOccurs="0" or nillable="true" could not be mapping to Integer in Java
in xmlbeans mode
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4585
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4585
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.1
>         Environment: Jdk:1.5.0_07-b03
> Axis2.0: 1.1
>            Reporter: Forrest Dong
>
> I have define a xs:int parameter in my schema as follows to generate an optional parameter.
> <xs:element name="age" type="xs:int" minOccurs="0"/>
> It can not be generate Integer param in Java. And the commandline is :
> wsdl2java -d xmlbeans -uri *.wsdl -s -ss -ssi -sd
> And I have attempted to append -Euwc and -wv 1.1 behind the command. And I could not
get the Integer param.
> The wsdl file is attached as following:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:intf="http://www.sample.com/mySample"
xmlns:impl="http://www.sample.com/mySample" xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.sample.com/mySample">
> 	<wsdl:types>
> 		<schema elementFormDefault="qualified" targetNamespace="http://www.sample.com/mySample"
xmlns="http://www.w3.org/2001/XMLSchema">
> 			<element name="getUserRequest">
> 				<complexType>
> 					<sequence>
> 						<element name="userID" type="xsd:int"/>
> 						<element name="age" minOccurs="0" type="xsd:int"/>
> 					</sequence>
> 				</complexType>
> 			</element>
> 			<element name="getUserResponse">
> 				<complexType>
> 					<sequence>
> 						<element name="returnFlag" type="xsd:int"/>
> 					</sequence>
> 				</complexType>
> 			</element>
> 		</schema>
> 	</wsdl:types>
> 	<wsdl:message name="getUserRequestMsg">
> 		<wsdl:part name="parameters" element="intf:getUserRequest"/>
> 	</wsdl:message>
> 	<wsdl:message name="getUserResponseMsg">
> 		<wsdl:part name="parameters" element="intf:getUserResponse"/>
> 	</wsdl:message>
> 	<wsdl:portType name="mySampleService">
> 		<wsdl:operation name="getUser">
> 			<wsdl:input name="getUserRequest" message="intf:getUserRequestMsg"/>
> 			<wsdl:output name="getUserResponse" message="intf:getUserResponseMsg"/>
> 		</wsdl:operation>
> 	</wsdl:portType>
> 	<wsdl:binding name="mySampleSoapBinding" type="intf:mySampleService">
> 		<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
> 		<wsdl:operation name="getUser">
> 			<wsdlsoap:operation/>
> 			<wsdl:input>
> 				<wsdlsoap:body parts="parameters" use="literal"/>
> 			</wsdl:input>
> 			<wsdl:output>
> 				<wsdlsoap:body parts="parameters" use="literal"/>
> 			</wsdl:output>
> 		</wsdl:operation>
> 	</wsdl:binding>
> 	<wsdl:service name="mySampleService">
> 		<wsdl:port name="mySampleService" binding="intf:mySampleSoapBinding">
> 			<wsdlsoap:address location="http://www.sample.com/mySample"/>
> 		</wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message