I am using XFire web services. I tried with aegis binding xml to change minOccurs of required property, but it is not working.
Here is my aegis xml **********LogonInTO.aegis.xml********* <mappings xmlns:np="http://singularity.co.uk/webservices/spp"> <mapping name="np:LogonInTO"> <property name="password" minOccurs="1" nillable="false"/> <property name="userId" minOccurs="1" nillable="false"/> </mapping> </mappings> ******************* The LogonInTO complex type in wsdl before applying aegis was as below ******************** <xsd:complexType name="LogonInTO"> <xsd:sequence> <xsd:element minOccurs="0" name="logonProtocol" type="xsd:short"/> <xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/> <xsd:element minOccurs="0" name="unConditional" type="xsd:boolean"/> <xsd:element minOccurs="0" name="userId" nillable="true" type="xsd:string"/> </xsd:sequence> </xsd:complexType> ******************** And after applying aegis, LogonInTO complex type in wsdl is as below **************** <xsd:complexType name="LogonInTO"> <xsd:sequence> <xsd:element minOccurs="0" name="logonProtocol" type="xsd:short"/> <xsd:element name="password" type="xsd:string"/> <xsd:element minOccurs="0" name="unConditional" type="xsd:boolean"/> <xsd:element name="userId" type="xsd:string"/> </xsd:sequence> </xsd:complexType> **************** Is this the right way of changing minOccurs, otherwise please let me know, how to do it. Thanks & Regards, Srinivas. gdprao wrote: > > I remember that I too have faced the same problem once. When I changed > that element in XSD with minoccurs=1, it generated String type correctly > instead of JAXBElement. > > Thanks, > Durga > > > velidandas wrote: >> >> I am getting the String parameter types being set as JAXBElement type. >> >> How to send String type parameter types here. >> >> Srinivas. >> >> > > -- View this message in context: http://www.nabble.com/JAXBElement-tf4207085.html#a11978580 Sent from the cxf-user mailing list archive at Nabble.com.
