シンプルなタイプを作りました
<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>
次に、axis2 から wsdl2java を使用してスタブを作成します。この型から整数値を取得しようとするまで、送信と受信が機能しているように見えました。私のコードは次のとおりです。
IntOrBlank get_part_custom_field7 = each_record[0].get_part_custom_field7(); オブジェクト object = get_part_custom_field7.getObject();
現在、オブジェクトは null です。SOAPメッセージは
<bm:_part_custom_field7>9</bm:_part_custom_field7>