Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("lib/nusoap.php");
- $server = new nusoap_server();
- $server->configureWSDL("urn:Servidor");
- $server->wsdl->schemaTargetNameSpace = "urn:Servidor";
- function info() {
- $retorno = array("x"=>"Exemplo");
- return $retorno;
- }
- $server->register("info",
- array(),
- array("x"=>"xsd:string"),
- "urn:Servidor.info",
- "urn:Servidor.info",
- "rpc",
- "encoded",
- "Operacoes matematicas"
- );
- $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA)
- ? $HTTP_RAW_POST_DATA
- : file_get_contents("php://input");
- $server->service($HTTP_RAW_POST_DATA);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement