• Post Reply Bookmark Topic Watch Topic
  • New Topic

Null value Problam

 
siraj baig
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am also facing null value problem.can you suggest me a solution.
in my wsdl file i have

<xsd:simpleType name="VehicleType" >
<xsd:annotation>
<xsd ocumentation>Defines the available vehicle types</xsd ocumentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="sedan"/>
<xsd:enumeration value="suv"/>
<xsd:enumeration value="van"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:complexType name="Reservation">
<xsd:element maxOccurs="1" minOccurs="0" name="vehicleType" type="xsd1:VehicleType" nillable="true"/>
</xsd:complexType>

And in my ws-application.xml file:

<mapping>
<schemaType>VehicleType</schemaType>
<javaType>....model.VehicleType</javaType>
<holder>....model.VehicleTypeHolder</holder>
</mapping>

I have placed nillble="true" in wsdl file.
But where can i place xsi:nil="true".
How can i give null.

Awaiting for your reply,
siraj.
 
siraj baig
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How Can i Skip restrictions to allow null value

Any Ideas will be appreciated
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!