PATH:
home
/
letacommog
/
letaweb
/
admin
/
classes
/
payments
/
paypal-sdk-core
/
lib
/
formatters
<?php class PPSOAPFormatter implements IPPFormatter { private static $SOAP_NAMESPACE = 'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"'; public function toString($request, $options = array()) { $customNamespace = ($request->getBindingInfo('namespace') != null) ? $request->getBindingInfo('namespace') : ''; $soapEnvelope = '<soapenv:Envelope '.self::$SOAP_NAMESPACE." $customNamespace >"; $soapHeader = '<soapenv:Header>'; if ($request->getBindingInfo('securityHeader') != null) { $soapHeader .= $request->getBindingInfo('securityHeader'); } $soapHeader .= '</soapenv:Header>'; $soapBody = '<soapenv:Body>'; $soapBody .= $request->getRequestObject()->toXMLString(); $soapBody .= '</soapenv:Body>'; return $soapEnvelope.$soapHeader.$soapBody.'</soapenv:Envelope>'; } public function toObject($string, $options = array()) { throw new BadMethodCallException('Unimplemented'); } }
[+]
..
[-] PPSOAPFormatter.php
[edit]
[-] PPNVPFormatter.php
[edit]
[-] FormatterFactory.php
[edit]
[-] IPPFormatter.php
[edit]