public static function create($use) { switch ($use) { case SoapBinding::LITERAL: return new XMLLiteralUse(); case SoapBinding::ENCODED: return new XMLEncodedUse(); default: throw new Exception('Unsupported soap binding use [' . $use . ']'); } }
public function setUp() { parent::setUp(); $this->DOMDocument = new DOMDocument(); $this->XMLUse = XMLUseFactory::create($this->useType()); $this->soapVersion = XMLSoapVersion::getTagFor(BindingType::SOAP_11); }