Packageindex Classtrees Modulegroups Elementlist Report XML Files

wsdl

nusoap_base
   |
  +-- XMLSchema
     |
    +-- wsdl

public class wsdl extends XMLSchema

parses a WSDL file, allows access to it's data, other utility methods

AuthorsDietrich Ayala <dietricha@ganx4.com>
Versionv 0.6

 

Methods inherited from XMLSchema

xmlschema, parsefile, parsestring, schemastartelement, schemaendelement, schemacharacterdata, serializeschema, expandqname, xdebug, getphptype, getlocalpart, getprefix, getnamespacefromprefix, getprefixfromnamespace, gettypedef, serializetypedef, typetoform

Methods inherited from nusoap_base

nusoap_base, debug, geterror, seterror, serialize_val, serializeenvelope, soapclient, call, send, parseresponse, setheaders, getheaders, sethttpproxy, setcredentials, getproxy, soapval, decode, soap_parser, get_response, decode_entities, buildval, buildsoapval, soap_transport_http, setsoapaction, setproxy, sendhttps, soap_server, service, parse_request, verify_method, add_to_map, register, fault, webdescription, configurewsdl, xmlschema, parsefile, parsestring, schemastartelement, schemaendelement, schemacharacterdata, serializeschema, expandqname, xdebug, getphptype, getlocalpart, getprefix, getnamespacefromprefix, getprefixfromnamespace, gettypedef, serializetypedef, typetoform, soap_fault, timestamp_to_iso8601, iso8601_to_timestamp, formatdump, lib_bwcheck, makeobj, b_writeit, popup, popout

Public Method Summary

void wsdl([ string $wsdl ])
constructorWarning: documentation is missing.
array getOperations([ string $bindingType ])
returns an assoc array of operation names => operation dataWarning: documentation is missing.
array getOperationData(string $operation, [ string $bindingType ])
returns an associative array of data necessary for calling an operationWarning: documentation is missing.
string serialize()
serialize the parsed wsdlWarning: documentation is missing.
string serializeType(string $name, string $type, mixed $value)
serializes a PHP value according a given type definitionWarning: documentation is missing.

Private Method Summary

void parseWSDL([ string $wsdl ])
parses the wsdl documentWarning: documentation is missing.
void start_element(string $parser, string $name, string $attrs)
start-element handlerWarning: documentation is missing.
void end_element(string $parser, string $name)
end-element handlerWarning: documentation is missing.
void character_data(string $parser, string $data)
element content handlerWarning: documentation is missing.
mixed serializeRPCParameters(string $operation, mixed $parameters)
serialize a PHP value according to a WSDL message definitionWarning: documentation is missing.
void getBindingData( $binding)
Warning: documentation is missing.
void getMessageData( $operation, $portType, $msgType)
Warning: documentation is missing.

Fields inherited from nusoap_base

$soap_defencoding, $namespaces, $typemap, $xmlentities, $fault, $title, $version, $error_str, $username, $password, $requestheaders, $responseheaders, $endpoint, $portname, $url, $operations, $headers, $request, $xml_encoding, $result, $faultcode, $faultactor, $faultstring, $faultdetail

Included files inherited from nusoap_base

class.soap_transport_http.php

Public Method Details

wsdl

public void wsdl([ string $wsdl ])

  constructor

Warning: documentation is missing.

Parameter
string $wsdl = >>""<<
WSDL document URL
Returns void


getOperations

public array getOperations([ string $bindingType ])

  returns an assoc array of operation names => operation data NOTE: currently only supports multiple services of differing binding types This method needs some work

Warning: documentation is missing.

Parameter
string $bindingType = >>"soap"<<
eg: soap, smtp, dime (only soap is currently supported)
Returns array


getOperationData

public array getOperationData(string $operation, [ string $bindingType ])

  returns an associative array of data necessary for calling an operation

Warning: documentation is missing.

Parameter
string $operation
, name of operation
string $bindingType = >>"soap"<<
, type of binding eg: soap
Returns array


serialize

public string serialize()

  serialize the parsed wsdl

Warning: documentation is missing.

Returns string

, serialization of WSDL


serializeType

public string serializeType(string $name, string $type, mixed $value)

  serializes a PHP value according a given type definition

Warning: documentation is missing.

Parameter
string $name
, name of type
string $type
, type of type, heh
mixed $value
, a native PHP value
Returns string

serialization


Private Method Details

parseWSDL

private void parseWSDL([ string $wsdl ])

  parses the wsdl document

Warning: documentation is missing.

Parameter
string $wsdl = >>""<<
path or URL
Returns void


start_element

private void start_element(string $parser, string $name, string $attrs)

  start-element handler

Warning: documentation is missing.

Parameter
string $parser
XML parser object
string $name
element name
string $attrs
associative array of attributes
Returns void


end_element

private void end_element(string $parser, string $name)

  end-element handler

Warning: documentation is missing.

Parameter
string $parser
XML parser object
string $name
element name
Returns void


character_data

private void character_data(string $parser, string $data)

  element content handler

Warning: documentation is missing.

Parameter
string $parser
XML parser object
string $data
element content
Returns void


serializeRPCParameters

private mixed serializeRPCParameters(string $operation, mixed $parameters)

  serialize a PHP value according to a WSDL message definition TODO - only serialize namespaces used in the message - multi-ref serialization - validate PHP values against type definitions, return errors if invalid - probably more stuff :) - implement 'out' functionality or write new function for 'out' parameters

Warning: documentation is missing.

Parameter
string $operation
name
mixed $parameters
value
Returns mixed

new param or false if initial value didn't validate


getBindingData

private void getBindingData( $binding)

 

Warning: documentation is missing.

Parameter
$binding
Warning: documentation is missing.
Returns void


getMessageData

private void getMessageData( $operation, $portType, $msgType)

 

Warning: documentation is missing.

Parameter
$operation
Warning: documentation is missing.
$portType
Warning: documentation is missing.
$msgType
Warning: documentation is missing.
Returns void



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta