Normally the definition in the WSDL says minOccurs="0" which means optional, how can this be changed. See example part of a WSDL:

<xs:sequence>
  <xs:element minOccurs="0" name="param" type="xs:string"/>
</xs:sequence>

asked 18.08.2014 at 16:33

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
1.4k102118122
accept rate: 77%


To make a whole parameter required is not possible in Ivy, because you have to change the generated webservice class. This is not recommended because ivy has to regenerated the class if something changes int the associated webservice process.

To make an field of an complex attribute required you have to create an own Java class which you then use as parameter. See example Java class below which makes the field param required.

public class MyWsBean {
    @javax.xml.bind.annotation.XmlElement(required=true)
    private String param;
    ...
}

The generated WSDL looks like this:

<xs:sequence>
  <xs:element name="param" type="xs:string"/>
</xs:sequence>
link

answered 18.08.2014 at 16:41

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338
accept rate: 88%

edited 18.08.2014 at 16:43

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×48
×37

Asked: 18.08.2014 at 16:33

Seen: 2,699 times

Last updated: 02.06.2015 at 15:10