<?php
include("nb_easyxml_lite.php");
include("nb_soapfuncs.php");
/********* Data structures used by this web service *********
*
* type GetHitResult{
* ['factor']=>{
* }
* ['value']=>{
* }
* }
*
*/
class service extends service_nbSOAP
{
var $Url;
/**
* web service provider method GetHit
*
* @param timeout : unsigned
* @return GetHitResult
*/
function GetHit($timeout)
{
return new nbSOAPFault("unimplemented", "The GetHitservice has not been implemented yet", "");
// Fill in web method fuctionality here.
// return a GetHitResult
}
}
/********************* Do not alter the generated code below ************************/
if($_SERVER['REQUEST_METHOD']=="GET")
{
echo "information call, front page, WSDL or function info. ";
echo "All this functionality still has to be written...";
}
else
{
$in = file_get_contents("php://input");
$action = $_SERVER['HTTP_SOAPACTION'];
$action = str_replace("\\\"","",$action);
$SoapClass = new service();
$soapXML = $SoapClass->PerformSoapAction($in, $action);
$soapXML = nbSOAP_Envelope($soapXML);
header("Content-Type: text/xml; charset=utf-8");
echo $soapXML;