MIOLO20
Toggle main menu visibility
Página principal
Estruturas de dados
Estruturas de dados
Hierarquia de classes
Campos de dados
Tudo
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Funções
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variáveis
$
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Ficheiros
Lista de ficheiros
Globais
Tudo
$
_
a
c
d
e
f
g
i
l
m
o
p
r
s
u
Funções
Variáveis
$
_
c
e
f
l
m
o
p
s
Exemplos
▼
MIOLO20
►
Estruturas de dados
▼
Ficheiros
▼
Lista de ficheiros
▼
classes
▼
contrib
▼
phpWsdl
►
class.complextypedemo.php
►
class.phpwsdl.php
►
class.phpwsdlclient.php
►
class.phpwsdlcomplex.php
►
class.phpwsdlelement.php
►
class.phpwsdlformatter.php
►
class.phpwsdlhash.php
►
class.phpwsdlmethod.php
►
class.phpwsdlobject.php
►
class.phpwsdlparam.php
►
class.phpwsdlparser.php
►
class.phpwsdlproxy.php
►
class.soapdemo.php
►
demo.php
►
demo2.php
►
demo3.php
►
demo4.php
►
demo5.php
►
demo6.php
►
teste.php
testewsdl.php
►
TSCounter
►
barcode.class
►
dbug.class
►
EasyDownload.class
►
webServicesServer.class
►
database
►
doc
►
extensions
►
ezpdf
►
flow
►
interfaces
►
model
►
persistence
►
pslib
►
security
►
services
►
tests
►
ui
►
utils
►
compatibility.class
►
miolo.class
►
Globais
►
Exemplos
•
Tudo
Estruturas de dados
Namespaces
Ficheiros
Funções
Variáveis
Carregando...
Procurando...
Nenhuma entrada encontrada
demo.php
Ir para a documentação deste ficheiro.
1
<?php
2
3
// This bootstrapper may serve any SOAP webservice with PhpWsdl,
4
// if your methods and classes are commented. I developed and
5
// tested with Visual Studio 2010 and SoapUI 4.0.0. It seems to
6
// work pretty good...
7
8
// Include the demonstration classes
9
require_once(
'class.soapdemo.php'
);
10
require_once(
'class.complextypedemo.php'
);
11
12
// Initialize the PhpWsdl class
13
require_once(
'class.phpwsdl.php'
);
14
$soap
=
PhpWsdl::CreateInstance
(
15
null
,
// PhpWsdl will determine a good namespace
16
null
,
// Change this to your SOAP endpoint URI (or keep it NULL and PhpWsdl will determine it)
17
'./cache'
,
// Change this to a folder with write access
18
Array(
// All files with WSDL definitions in comments
19
'class.soapdemo.php'
,
20
'class.complextypedemo.php'
21
),
22
null
,
// The name of the class that serves the webservice will be determined by PhpWsdl
23
null
,
// This demo contains all method definitions in comments
24
null
,
// This demo contains all complex types in comments
25
false
,
// Don't send WSDL right now
26
false
);
// Don't start the SOAP server right now
27
28
// Disable caching for demonstration
29
ini_set(
'soap.wsdl_cache_enabled'
,0);
// Disable caching in PHP
30
PhpWsdl::$CacheTime
=0;
// Disable caching in PhpWsdl
31
32
// Run the SOAP server
33
if
(
$soap
->IsWsdlRequested())
// WSDL requested by the client?
34
$soap
->Optimize=
false
;
// Don't optimize WSDL to send it human readable to the browser
35
//$soap->ParseDocs=false; // Uncomment this line to disable the whole documentation features
36
//$soap->IncludeDocs=false; // Uncomment this line to disable writing the documentation in WSDL XML
37
//$wsdl=$soap->CreateWsdl(); // This would save the WSDL XML string in $wsdl
38
//$php=$soap->OutputPhp(false,false); // This would save a PHP SOAP client as PHP source code string in $php
39
//$html=$soap->OutputHtml(false,false); // This would save the HTML documentation string in $html
40
$soap
->RunServer();
// Finally, run the server
PhpWsdl\$CacheTime
static $CacheTime
Definição
class.phpwsdl.php:256
PhpWsdl\CreateInstance
static CreateInstance( $nameSpace=null, $endPoint=null, $cacheFolder=null, $file=null, $name=null, $methods=null, $types=null, $outputOnRequest=false, $runServer=false)
Definição
class.phpwsdl.php:532
$soap
$soap
Definição
demo.php:14
classes
contrib
phpWsdl
demo.php
Gerado por
1.10.0