Jax-ws wsdl did not create the given method

I created a web service based on wsdl, and for some reason, one of my elements does not have a set method, only a get method.

<xs:element name="Request"> <xs:complexType> <xs:sequence> <xs:element ref="ns1:source_system"/> <xs:element ref="ns1:target_system"/> <xs:element ref="ns1:message_id"/> <xs:element ref="ns1:message_send_timestamp"/> <xs:element ref="ns1:request_type"/> <xs:element ref="ns1:crm_customer_id"/> <xs:element ref="ns1:crm_request_id"/> <xs:element ref="ns1:donor_id"/> <xs:element ref="ns1:identification_value"/> <xs:element ref="ns1:identification_value_2" minOccurs="0"/> <xs:element ref="ns1:identification_value_3" minOccurs="0"/> <xs:element ref="ns1:dn_number_item" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> 

now in my program I have request.getDnNumberItem () and I don't have request.setDnNumberItem (). for all other parameters, I have both set and get.

it happened to me before and somehow fixed itself.

+4
source share
1 answer

The installer was not created for the dnNumberItem property because it is a collection property ( maxOccurs="unbounded" ), while others are not. You can change the List by accessing it via getter.

+3
source

Source: https://habr.com/ru/post/1485416/


All Articles