This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I've a wsimport generated class from a WSDL as follows:
I'm pasting the schema from the comments in the generated class.
Obviously as you can see from the above schema, the element name is Errors and it will contain sub elements of type of ArrayOfErrorDetail which is nothing but a List<ErrorDetail>. The ErrorDetail is POJO which has a errorCode, errorType and errorMessage.
SOAPUI generates the request as :
while the JAXWS client generates the request as:
I'm creating the ArrayOfErrorDetail object as follows in my code: