Menu

ComplexType

Anonymous

Introduction

A WSDL complex type.

Details

Currently PhpWsdl supports complex types with sequenced elements of mixed types. PhpWsdl also supports simple arrays.

To create a complex type:

/**
 * The description
 * 
 * @pw_element string $name An element with type "string"
 * @pw_element string $email Another element with type "string"
 * @pw_complex SampleComplex End the definition+
 */

To create an array simply add "Array" to the type name:

/**
 * The description
 * 
 * @pw_complex stringArray An array of string
 */
/**
 * The description
 * 
 * @pw_complex arrayOfInt[] int An array of int
 */
/**
 * The description
 * 
 * @pw_complex SampleComplexArray An array of SampleComplex
 */

Related

Wiki: PhpWsdl

Discussion

  • Anonymous

    Anonymous - 2012-10-25

    Originally posted by: barbushin

    I'm sorry, but it sucks... What is the problem to use standart PhpDoc? properties like @var? What is the problem to use PHP Reflection methods?

     
  • Anonymous

    Anonymous - 2013-07-17

    Originally posted by: Paizo.ga...@gmail.com

    on github I found a project that extends this using reflection and document/literal instead of rpc/encoded. The problem with the reflection is loding classes with namespace definition.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.