\MyBusinessWorldSoapServer
Basic SOAP Server to access and modify DataObject instances.
You can enable SOAP access on a DataObject by setting to true.
This means that you'll also enable a RESTful API through .
Usage - Getting a record:
<code>
$c = new SoapClient('http://mysite.com/soap/v1/wsdl');
echo $c->getXML("MyClassName", 99); // gets record #99 as xml
</code>
Usage - Updating a record:
<code>
$c = new SoapClient('http://mysite.com/soap/v1/wsdl');
$data = array('MyProperty' => 'MyUpdatedValue');
echo $c->putXML("MyClassName", 99, null, $data);
</code>
Usage - Creating a record:
<code>
$c = new SoapClient('http://mysite.com/soap/v1/wsdl');
$data = array('MyProperty' => 'MyValue');
echo $c->putXML("MyClassName", null, null, $data);
</code>
Usage - Creating a record:
<code>
$c = new SoapClient('http://mysite.com/soap/v1/wsdl');
echo $c->deleteXML("MyClassName");
</code>
Synopsis
- // members
- public static array $methods = ;
- // methods
- public void Link()
- public string getXML()
- public void SessionID()
- public string putXML()
- protected void authenticate()
- protected string buildRestfulURL()
- protected string getErrorMessage()
Hierarchy
Extends
- SOAPModelAccess
Tasks
Line | Task |
---|---|
38+ | Test relation methods |
Members
public
- $methods
Methods
protected
- authenticate() — Faking an HTTP Basicauth login in the PHP environment that RestfulServer can pick up.
- buildRestfulURL()
- getErrorMessage()
public
- Link()
- SessionID()
- getXML() — Used to emulate RESTful GET requests with XML data.
- putXML() — Used to emulate RESTful POST and PUT requests with XML data.