27.01.2014 Views

WS-I Basic Profile Version 1.1 - instructional media + magic

WS-I Basic Profile Version 1.1 - instructional media + magic

WS-I Basic Profile Version 1.1 - instructional media + magic

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Requiring a targetNamespace on all xsd:schema elements that are children of wsdl:types<br />

is a good practice, places a minimal burden on authors of <strong>WS</strong>DL documents, and<br />

avoids the cases that are not as clearly defined as they might be.<br />

R2105 All xsd:schema elements contained in a wsdl:types element of a DESCRIPTION<br />

MUST have a targetNamespace attribute with a valid and non-null value, UNLESS the<br />

xsd:schema element has xsd:import and/or xsd:annotation as its only child element(s).<br />

4.3.3 soapenc:Array<br />

The recommendations in <strong>WS</strong>DL <strong>1.1</strong> Section 2.2 for declaration of array types have<br />

been interpreted in various ways, leading to interoperability problems. Further, there are<br />

other clearer ways to declare arrays.<br />

R2110 In a DESCRIPTION, declarations MUST NOT extend or restrict the soapenc:Array<br />

type.<br />

R2111 In a DESCRIPTION, declarations MUST NOT use wsdl:arrayType attribute in the<br />

type declaration.<br />

R2112 In a DESCRIPTION, elements SHOULD NOT be named using the convention<br />

ArrayOfXXX.<br />

R2113 An ENVELOPE MUST NOT include the soapenc:arrayType attribute.<br />

For example,<br />

INCORRECT:<br />

Given the <strong>WS</strong>DL Description:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

The envelope would serialize as (omitting namespace declarations for clarity):<br />

From www.ws-i.org/<strong>Profile</strong>s/<strong>Basic</strong><strong>Profile</strong>-<strong>1.1</strong>.html 33 8 February 2008

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!