Ensure that complex type generated from Data Object is correct.
324 if ($this->isSingleService) {
325 $referencedType = <<< RESPONSE_TYPE
326 <xsd:complexType
name=
"TestModule5V2EntityAllSoapAndRest">
328 <xsd:documentation>Some Data Object
short description. Data Object
long multi line description.</xsd:documentation>
329 <xsd:appinfo xmlns:inf=
"{$this->_soapUrl}"/>
332 <xsd:element
name=
"price" minOccurs=
"1" maxOccurs=
"1" type=
"xsd:int">
334 <xsd:documentation></xsd:documentation>
335 <xsd:appinfo xmlns:inf=
"{$this->_soapUrl}">
339 <inf:callName>testModule5AllSoapAndRestV2Item</inf:callName>
340 <inf:callName>testModule5AllSoapAndRestV2Create</inf:callName>
341 <inf:callName>testModule5AllSoapAndRestV2Update</inf:callName>
342 <inf:callName>testModule5AllSoapAndRestV2Delete</inf:callName>
343 <inf:returned>Always</inf:returned>
346 <inf:callName>testModule5AllSoapAndRestV2Create</inf:callName>
347 <inf:callName>testModule5AllSoapAndRestV2Update</inf:callName>
348 <inf:requiredInput>Yes</inf:requiredInput>
357 $referencedType = <<< RESPONSE_TYPE
358 <xsd:complexType
name=
"TestModule5V1EntityAllSoapAndRest">
360 <xsd:documentation>Some Data Object
short description. Data Object
long multi line description.</xsd:documentation>
361 <xsd:appinfo xmlns:inf=
"{$this->_soapUrl}"/>
364 <xsd:element
name=
"entityId" minOccurs=
"1" maxOccurs=
"1" type=
"xsd:int">
366 <xsd:documentation>Item ID</xsd:documentation>
367 <xsd:appinfo xmlns:inf=
"{$this->_soapUrl}">
371 <inf:callName>testModule5AllSoapAndRestV1Item</inf:callName>
372 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
373 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
374 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
375 <inf:returned>Always</inf:returned>
378 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
379 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
380 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
381 <inf:requiredInput>Yes</inf:requiredInput>
386 <xsd:element
name=
"name" minOccurs=
"0" maxOccurs=
"1" type=
"xsd:string">
388 <xsd:documentation>Item
name</xsd:documentation>
389 <xsd:appinfo xmlns:inf=
"{$this->_soapUrl}">
392 <inf:callName>testModule5AllSoapAndRestV1Item</inf:callName>
393 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
394 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
395 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
396 <inf:returned>Conditionally</inf:returned>
399 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
400 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
401 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
402 <inf:requiredInput>No</inf:requiredInput>
407 <xsd:element
name=
"enabled" minOccurs=
"1" maxOccurs=
"1" type=
"xsd:boolean">
409 <xsd:documentation>If entity is enabled</xsd:documentation>
410 <xsd:appinfo xmlns:inf=
"{$this->_soapUrl}">
411 <inf:
default>
false</inf:
default>
413 <inf:callName>testModule5AllSoapAndRestV1Item</inf:callName>
414 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
415 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
416 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
417 <inf:returned>Conditionally</inf:returned>
420 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
421 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
422 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
423 <inf:requiredInput>No</inf:requiredInput>
428 <xsd:element
name=
"orders" minOccurs=
"1" maxOccurs=
"1" type=
"xsd:boolean">
430 <xsd:documentation>If current entity has a
property defined</xsd:documentation>
431 <xsd:appinfo xmlns:inf=
"{$this->_soapUrl}">
432 <inf:
default>
false</inf:
default>
434 <inf:callName>testModule5AllSoapAndRestV1Item</inf:callName>
435 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
436 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
437 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
438 <inf:returned>Conditionally</inf:returned>
441 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
442 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
443 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
444 <inf:requiredInput>No</inf:requiredInput>
449 <xsd:element
name=
"customAttributes" type=
"tns:ArrayOfFrameworkAttributeInterface" minOccurs=
"0">
451 <xsd:documentation>Custom attributes values.</xsd:documentation>
452 <xsd:appinfo xmlns:inf=
"{$this->_soapUrl}">
453 <inf:natureOfType>array</inf:natureOfType>
455 <inf:callName>testModule5AllSoapAndRestV1Item</inf:callName>
456 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
457 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
458 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
459 <inf:returned>Conditionally</inf:returned>
462 <inf:callName>testModule5AllSoapAndRestV1Create</inf:callName>
463 <inf:callName>testModule5AllSoapAndRestV1Update</inf:callName>
464 <inf:callName>testModule5AllSoapAndRestV1NestedUpdate</inf:callName>
465 <inf:requiredInput>No</inf:requiredInput>
475 $this->assertContains(
478 'Declaration of complex type generated from Data Object, which is referenced in response, is invalid'
_convertXmlToString($xml)