I have created a simple type
<xsd:simpleType name="IntOrBlank"> <xsd:union memberTypes="xsd:int"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value=""/> </xsd:restriction> </xsd:simpleType> </xsd:union> </xsd:simpleType>
I then create stubs using wsdl2java from axis2, the sending works and receiving seemed to work until I try to obtain the integer value from this type. My code is as such:
IntOrBlank get_part_custom_field7 = each_record[0].get_part_custom_field7(); Object object = get_part_custom_field7.getObject();
The object is null now. eventhough the SOAP message is coming in as
<bm:_part_custom_field7>9</bm:_part_custom_field7>