Hi guys, Could you help me with this issue. Is there anyway that we can validate the required field in Ivy Webservice? Example add the property required = true, But it's only not generate the comment optional in Webservice request. It still can pass if I leave it empty. @XmlElement(name = "ProcessType", required = true) alt text

I also try to add nillable = true but it did not help.

If any body have the idea please give me a hand. Thanks

asked 10.10.2016 at 05:11

Tinh%20Nguyen's gravatar image

Tinh Nguyen
accept rate: 0%

we're you able to reach your goal with the answers below! please rate or accept the given answers or drive the thread ...

(18.10.2016 at 08:47) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

Normally the @XmlElement(required=true) annotation should be sufficient. See http://answers.axonivy.com/questions/925/how-can-i-make-a-parameter-of-a-webservice-process-required

Can you share your WSDL?


answered 10.10.2016 at 16:51

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
accept rate: 70%

Actually, I declared like this in my project:


public class WSInputParamModel {

private Date reportStartDate;

private BigDecimal mainProjectKey;

@XmlElement(required = true)
public BigDecimal getMainProjectKey() {
    return mainProjectKey;
public void setMainProjectKey(BigDecimal mainProjectKey) {
    this.mainProjectKey = mainProjectKey;

@XmlElement(required = true)
public Date getReportStartDate() {
    return reportStartDate;

public void setReportStartDate(Date reportStartDate) {
    this.reportStartDate = reportStartDate;



answered 11.10.2016 at 04:22

Hap%20Em's gravatar image

Hap Em
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 10.10.2016 at 05:11

Seen: 4,582 times

Last updated: 18.10.2016 at 08:47