Advertisement
diegomrodrigues

Untitled

Jan 6th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php
  2. require_once("lib/nusoap.php");
  3.  
  4. $server = new nusoap_server();
  5.  
  6. $server->configureWSDL("urn:Servidor");
  7. $server->wsdl->schemaTargetNameSpace = "urn:Servidor";
  8.  
  9. function info() {
  10.     $retorno = array("x"=>"Exemplo");
  11.     return $retorno;
  12. }
  13.  
  14. $server->register("info",
  15.     array(),
  16.     array("x"=>"xsd:string"),
  17.     "urn:Servidor.info",
  18.     "urn:Servidor.info",
  19.     "rpc",
  20.     "encoded",
  21.     "Operacoes matematicas"
  22. );
  23.  
  24. $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA)
  25.     ? $HTTP_RAW_POST_DATA
  26.     : file_get_contents("php://input");
  27.  
  28. $server->service($HTTP_RAW_POST_DATA);
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement