You sent a single string instead of a valid xml. You need to send a valid XML-object.
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "contentType", propOrder = {
"senderPerson"
})
public class ContentType{
@XmlElement(required = true)
protected String senderPerson;
/**
* Returns the senderPerson.
* @return the senderPerson
*/
public String getSenderPerson() {
return senderPerson;
}
/**
* Sets the sender person.
* @param senderPerson the senderPerson to set
*/
public void setSenderPerson(String senderPerson) {
this.senderPerson = senderPerson;
}
With this you create a valid response. Change the senderPerson to your field of choice and your fine.fine.
First you need to specify how your request looks. So Ivy understands the incoming request and can validate the fields. You can create such specification in creating a plain java class inserting the code above. The first line defines the name of the request in this case contentType. Followed by properties. You add them in correct order separated by comma. I added a single field called senderPerson.
The Java class itself maps the xmltype field to Java fields and provides getter and Setters.
You can use this class now as Parameter type in your webservice call.