Ejemplo n.º 1
0
<?php

require_once "php2wsdl/WSDLCreator.php";
$test = new WSDLCreator("NEWT-RTLS", "http://rtls.gg/ws/");
$test->addFile("lib/RTLSSOAP.class.php");
$test->setClassesGeneralURL("http://rtls.gg/ws/");
$test->addURLToClass("RTLSSOAP", "http://rtls.gg/ws/");
$test->addURLToTypens("Person[]", "http://rtls.gg/ws/");
$test->addURLToTypens("Event[]", "http://rtls.gg/ws/");
$test->addURLToTypens("Tag[]", "http://rtls.gg/ws/");
$test->createWSDL();
$test->saveWSDL("/home/labadmin/eclipse-workspace/newt-rtls/ws.wsdl", true);
Ejemplo n.º 2
0
<?php

// php2wsdl from phpclasses.org
require "php2wsdl/WSDLCreator.php";
$wsdlgen = new WSDLCreator("LibraryWSDL", "http://localhost/ws/intro/wsdl");
$wsdlgen->addFile("library2.php");
$wsdlgen->addURLToClass("Library", "http://localhost/ws/intro/soap-server2.php");
$wsdlgen->createWSDL();
$wsdlgen->saveWSDL("wsdl");
Ejemplo n.º 3
0
<?php

require_once "../WSDLCreator.php";
header("Content-Type: application/xml");
$test = new WSDLCreator("WSDLExample1", "http://www.yousite.com/wsdl");
$test->includeMethodsDocumentation(false);
$test->addFile("example_class.php");
$test->addFile("example_class2.php");
$test->setClassesGeneralURL("http://protung.ro");
$test->addURLToClass("example1", "http://protung.ro/examplewsdl");
$test->addURLToTypens("XMLCreator", "http://localhost/php2swdl");
$test->ignoreMethod(array("example1_1" => "getEx"));
$test->createWSDL();
$test->printWSDL(true);
// print with headers
print $test->getWSDL();
$test->downloadWSDL();
$test->saveWSDL(dirname(__FILE__) . "/test.wsdl", false);