Skip to content

Commit 0b17077

Browse files
VERSION 1.0
git-svn-id: http://php-wsdl-creator.googlecode.com/svn/trunk@2 502c9374-d6e3-3b03-70e3-5bb7e65db109
1 parent c4a0e83 commit 0b17077

16 files changed

+2668
-0
lines changed

cache/info.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This is a sample cache folder. This file may be deleted. You may also delete
2+
this folder, if you wish to use another location for caching your WSDL files.
3+
If you want to use this folder as cache folder, you should ensure that it is
4+
writeable (chmod 777 ...) for PhpWsdl in your webserver user context.

class.complextypedemo.php

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
if(basename($_SERVER['SCRIPT_FILENAME'])==basename(__FILE__))
4+
exit;
5+
6+
// The @pw_element and @pw_complex are non-standard keywords for documentaion
7+
// I had to define to support those complex types for WSDL generation. The
8+
// "pw" stands for "PhpWsdl". But who cares?
9+
10+
/**
11+
* This is how to define a complex type f.e.
12+
*
13+
* @pw_element string $StringA A string with a value
14+
* @pw_element string $StringB A string with a NULL value
15+
* @pw_set nillable=false Not NULL
16+
* @pw_element int $Integer An integer
17+
* @pw_set nillable=false Not NULL
18+
* @pw_element boolean $Boolean A boolean
19+
* @pw_complex ComplexTypeDemo The complex type name definition
20+
*/
21+
class ComplexTypeDemo{
22+
public $StringA='String A';
23+
public $StringB=null;
24+
public $Integer=123;
25+
public $Boolean=true;
26+
}
27+
28+
/**
29+
* You can also create array types as complex type. Here for the string type and the ComplexTypeDemo complex type.
30+
* As you can see you simply need to add "Array" to the name of the type. Not one line of code.
31+
*
32+
* @pw_complex stringArray Defines a string array type
33+
* @pw_complex ComplexTypeDemoArray Defines an array of ComplexTypeDemo
34+
*/

0 commit comments

Comments
 (0)