|
|
soap_server
nusoap_base | +-- soap_server
|
public class soap_server extends nusoap_base
soap_server allows the user to create a SOAP server
that is capable of receiving messages and returning responses
NOTE: WSDL functionality is experimental
|
|
|
Methods inherited from nusoap_base |
nusoap_base, debug, geterror, seterror, serialize_val, soapclient, call, getoperationdata, send, parseresponse, setheaders, getheaders, sethttpproxy, setcredentials, getproxy, soapval, serialize, decode, soap_parser, start_element, end_element, character_data, get_response, decode_entities, buildval, buildsoapval, soap_transport_http, setsoapaction, setproxy, sendhttps, xmlschema, parsefile, parsestring, schemastartelement, schemaendelement, schemacharacterdata, serializeschema, expandqname, xdebug, getphptype, getlocalpart, getprefix, getnamespacefromprefix, getprefixfromnamespace, gettypedef, serializetypedef, typetoform, wsdl, parsewsdl, getoperations, serializerpcparameters, serializetype, soap_fault, timestamp_to_iso8601, iso8601_to_timestamp, formatdump, getbindingdata, getmessagedata |
|
Public Method Summary |
void |
soap_server([ boolean $wsdl ]) constructorWarning: documentation is missing.
|
void |
service(string $data) processes request and returns responseWarning: documentation is missing.
|
void |
add_to_map(string $methodname, string $in, string $out) add a method to the dispatch mapWarning: documentation is missing.
|
void |
register(string $name, [ boolean $in, boolean $out, boolean $namespace, boolean $soapaction, boolean $style ]) register a service with the serverWarning: documentation is missing.
|
void |
fault(string $faultcode, string $faultactor, [ string $faultstring, string $faultdetail ]) create a fault. this also acts as a flag to the server that a fault has occured.Warning: documentation is missing.
|
|
|
Fields inherited from nusoap_base |
$soap_defencoding, $namespaces, $typemap, $xmlentities, $title, $version, $error_str, $username, $password, $requestheaders, $endpoint, $portname, $url, $faultcode, $faultactor, $faultstring, $faultdetail |
|
|
|
Public Method Details |
soap_server |
public void soap_server([ boolean $wsdl ])
|
|
constructor
Warning: documentation is missing.
|
Parameter |
|
boolean |
$wsdl |
= >>false<< |
|
path or URL to a WSDL file |
|
Returns |
void |
|
service |
public void service(string $data)
|
|
processes request and returns response
Warning: documentation is missing.
|
Parameter |
|
string |
$data |
|
|
usually is the value of $HTTP_RAW_POST_DATA |
|
Returns |
void |
|
add_to_map |
public void add_to_map(string $methodname, string $in, string $out)
|
|
add a method to the dispatch map
Warning: documentation is missing.
|
Parameter |
|
|
|
string |
$in |
|
|
array of input values |
|
|
string |
$out |
|
|
array of output values |
|
Returns |
void |
|
register |
public void register(string $name, [ boolean $in, boolean $out, boolean $namespace, boolean $soapaction, boolean $style ])
|
|
register a service with the server
Warning: documentation is missing.
|
Parameter |
|
|
|
boolean |
$in |
= >>false<< |
|
array of input values |
|
|
boolean |
$out |
= >>false<< |
|
array of output values |
|
|
boolean |
$namespace |
= >>false<< |
|
|
|
|
boolean |
$soapaction |
= >>false<< |
|
|
|
|
boolean |
$style |
= >>false<< |
|
(rpc|literal) |
|
Returns |
void |
|
fault |
public void fault(string $faultcode, string $faultactor, [ string $faultstring, string $faultdetail ])
|
|
create a fault. this also acts as a flag to the server that a fault has occured.
Warning: documentation is missing.
|
Parameter |
|
|
|
|
|
string |
$faultstring |
= >>''<< |
|
|
|
|
string |
$faultdetail |
= >>''<< |
|
|
|
Returns |
void |
|
|
Private Method Details |
parse_request |
private object SOAPx4 parse_request([ string $data ])
|
|
parses request and posts response
Warning: documentation is missing.
|
Parameter |
|
string |
$data |
= >>""<< |
|
XML string |
|
Returns |
object SOAPx4 soapmsg object |
|
verify_method |
private boolean verify_method(object SOAPx4 $operation, $request)
|
|
takes the soapval object that was created by parsing the request
and compares to the method's signature, if available.
Warning: documentation is missing.
|
Parameter |
|
object SOAPx4 |
$operation |
|
|
soapval object |
|
|
|
$request |
|
|
Warning: documentation is missing. |
|
Returns |
boolean |
|
webDescription |
private void webDescription()
|
|
prints html description of services
Warning: documentation is missing.
|
Returns |
void |
|
configureWSDL |
private void configureWSDL(string $serviceName, string $namespace)
|
|
sets up wsdl object
this acts as a flag to enable internal WSDL generation
NOTE: NOT FUNCTIONAL
Warning: documentation is missing.
|
Parameter |
|
string |
$serviceName |
|
|
, name of the service |
|
|
string |
$namespace |
|
|
, tns namespace |
|
Returns |
void |
|
serializeEnvelope |
private void serializeEnvelope(string $body)
|
|
serialize message
Warning: documentation is missing.
|
Parameter |
|
|
Returns |
void |
|
lib_bwcheck |
private void lib_bwcheck()
|
|
Warning: documentation is missing.
|
Returns |
void |
|
makeObj |
private void makeObj()
|
|
Warning: documentation is missing.
|
Returns |
void |
|
b_writeIt |
private void b_writeIt()
|
|
Warning: documentation is missing.
|
Returns |
void |
|
popup |
private void popup()
|
|
Warning: documentation is missing.
|
Returns |
void |
|
popout |
private void popout()
|
|
Warning: documentation is missing.
|
Returns |
void |
|
|
Private Field Details |
$operations |
private array $operations
>>array() <<
|
|
$responseHeaders |
private boolean $responseHeaders
>>false <<
|
|
$headers |
private string $headers
>>"" <<
|
|
$request |
private string $request
>>"" <<
|
|
$xml_encoding |
private string $xml_encoding
>>"UTF-8" <<
|
|
$fault |
private boolean $fault
>>false <<
fault related variables
|
|
$result |
private string $result
>>"successful" <<
|
|
|
|
|
PHPDoc 1.0beta |