diff --git a/resources/schemas/wsdl.xsd b/resources/schemas/wsdl.xsd deleted file mode 100644 index b69c377e..00000000 --- a/resources/schemas/wsdl.xsd +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - This type is extended by component types to allow them to be documented - - - - - - - - - - - - - This type is extended by component types to allow attributes from other namespaces to be added. - - - - - - - - - - - - - This type is extended by component types to allow elements from other namespaces to be added. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Any top level optional element allowed to appear more then once - any child of definitions element except wsdl:types. Any extensibility element is allowed in any place. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/XML/element.registry.php b/src/XML/element.registry.php index 96b40314..101be0b6 100644 --- a/src/XML/element.registry.php +++ b/src/XML/element.registry.php @@ -329,9 +329,6 @@ 'ServiceName' => '\SimpleSAML\WSSecurity\XML\wsaw\ServiceName', 'UsingAddressing' => '\SimpleSAML\WSSecurity\XML\wsaw\UsingAddressing', ], - 'http://schemas.xmlsoap.org/wsdl/' => [ - 'definitions' => '\SimpleSAML\WSSecurity\XML\wsdl\Definitions', - ], 'http://schemas.xmlsoap.org/ws/2004/09/policy' => [ 'All' => '\SimpleSAML\WSSecurity\XML\wsp\All', 'AppliesTo' => '\SimpleSAML\WSSecurity\XML\wsp\AppliesTo', diff --git a/src/XML/wsdl/AbstractBinding.php b/src/XML/wsdl/AbstractBinding.php deleted file mode 100644 index 6dd69bbc..00000000 --- a/src/XML/wsdl/AbstractBinding.php +++ /dev/null @@ -1,104 +0,0 @@ -name; - } - - - /** - * Collect the value of the type-property. - * - * @return string - */ - public function getType(): string - { - return $this->type; - } - - - /** - * Collect the value of the operation-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\BindingOperation[] - */ - public function getOperation(): array - { - return $this->operation; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tBinding to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tBinding. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - $e->setAttribute('name', $this->getName()); - $e->setAttribute('type', $this->getType()); - - foreach ($this->getOperation() as $operation) { - $operation->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractBindingOperation.php b/src/XML/wsdl/AbstractBindingOperation.php deleted file mode 100644 index 7b0511d3..00000000 --- a/src/XML/wsdl/AbstractBindingOperation.php +++ /dev/null @@ -1,118 +0,0 @@ -name; - } - - - /** - * Collect the value of the input-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\BindingOperationInput|null - */ - public function getInput(): ?BindingOperationInput - { - return $this->input; - } - - - /** - * Collect the value of the output-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\BindingOperationOutput|null - */ - public function getOutput(): ?BindingOperationOutput - { - return $this->output; - } - - - /** - * Collect the value of the fault-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\BindingOperationFault[] - */ - public function getFault(): array - { - return $this->fault; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tBindingOperation to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tBindingOperation. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - $e->setAttribute('name', $this->getName()); - - $this->getInput()?->toXML($e); - $this->getOutput()?->toXML($e); - - foreach ($this->getFault() as $fault) { - $fault->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractBindingOperationFault.php b/src/XML/wsdl/AbstractBindingOperationFault.php deleted file mode 100644 index 7ac53f78..00000000 --- a/src/XML/wsdl/AbstractBindingOperationFault.php +++ /dev/null @@ -1,69 +0,0 @@ -name; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tBindingOperationFault to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tBindingOperationFault. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - $e->setAttribute('name', $this->getName()); - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractBindingOperationMessage.php b/src/XML/wsdl/AbstractBindingOperationMessage.php deleted file mode 100644 index 2fd705e9..00000000 --- a/src/XML/wsdl/AbstractBindingOperationMessage.php +++ /dev/null @@ -1,71 +0,0 @@ -name; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - return parent::isEmptyElement() && empty($this->getName()); - } - - - /** - * Convert this tBindingOperationMessage to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tBindingOperationMessage. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - if ($this->getName() !== null) { - $e->setAttribute('name', $this->getName()); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractDefinitions.php b/src/XML/wsdl/AbstractDefinitions.php deleted file mode 100644 index e8c08a0b..00000000 --- a/src/XML/wsdl/AbstractDefinitions.php +++ /dev/null @@ -1,269 +0,0 @@ -getName(); - }, - $message, - ); - Assert::uniqueValues( - $messageNames, - "Message-elements must have unique names.", - SchemaViolationException::class, - ); - - $portTypeNames = array_map( - function ($x) { - return $x->getName(); - }, - $portType, - ); - Assert::uniqueValues( - $portTypeNames, - "PortType-elements must have unique names.", - SchemaViolationException::class, - ); - - $bindingNames = array_map( - function ($x) { - return $x->getName(); - }, - $binding, - ); - Assert::uniqueValues( - $bindingNames, - "Binding-elements must have unique names.", - SchemaViolationException::class, - ); - - $serviceNames = array_map( - function ($x) { - return $x->getName(); - }, - $service, - ); - Assert::uniqueValues( - $serviceNames, - "Service-elements must have unique names.", - SchemaViolationException::class, - ); - - $importNamespaces = array_map( - function ($x) { - return $x->getNamespace(); - }, - $import, - ); - Assert::uniqueValues( - $importNamespaces, - "Import-elements must have unique namespaces.", - SchemaViolationException::class, - ); - - parent::__construct($elements); - } - - - /** - * Collect the value of the name-property. - * - * @return string|null - */ - public function getName(): ?string - { - return $this->name; - } - - - /** - * Collect the value of the targetNamespace-property. - * - * @return string|null - */ - public function getTargetNamespace(): ?string - { - return $this->targetNamespace; - } - - - /** - * Collect the value of the import-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\Import[] - */ - public function getImport(): array - { - return $this->import; - } - - - /** - * Collect the value of the typrd-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\Types[] - */ - public function getTypes(): array - { - return $this->types; - } - - - /** - * Collect the value of the message-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\Message[] - */ - public function getMessage(): array - { - return $this->message; - } - - - /** - * Collect the value of the portType-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\PortType[] - */ - public function getPortType(): array - { - return $this->portType; - } - - - /** - * Collect the value of the binding-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\Binding[] - */ - public function getBinding(): array - { - return $this->binding; - } - - - /** - * Collect the value of the service-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\Service[] - */ - public function getService(): array - { - return $this->service; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - return parent::isEmptyElement() && - empty($this->getName()) && - empty($this->getTargetNamespace()) && - empty($this->getImport()) && - empty($this->getTypes()) && - empty($this->getMessage()) && - empty($this->getPortType()) && - empty($this->getBinding()) && - empty($this->getService()); - } - - - /** - * Convert this tDefinitions to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tDefinitions. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - if ($this->getTargetNamespace() !== null) { - $e->setAttribute('targetNamespace', $this->getTargetNamespace()); - } - - if ($this->getName() !== null) { - $e->setAttribute('name', $this->getName()); - } - - foreach ($this->getImport() as $import) { - $import->toXML($e); - } - - foreach ($this->getTypes() as $types) { - $types->toXML($e); - } - - foreach ($this->getMessage() as $message) { - $message->toXML($e); - } - - foreach ($this->getPortType() as $portType) { - $portType->toXML($e); - } - - foreach ($this->getBinding() as $binding) { - $binding->toXML($e); - } - - foreach ($this->getService() as $service) { - $service->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractDocumented.php b/src/XML/wsdl/AbstractDocumented.php deleted file mode 100644 index b17eb111..00000000 --- a/src/XML/wsdl/AbstractDocumented.php +++ /dev/null @@ -1,63 +0,0 @@ -documentation; - } - */ - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - return /*empty($this->documentation)*/ true; - } - - - /** - * Convert this tDocumented to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tDocumented. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = $this->instantiateParentElement($parent); - - //$this->getDocumentation()?->toXML($e); - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractExtensibilityElement.php b/src/XML/wsdl/AbstractExtensibilityElement.php deleted file mode 100644 index b82c3f60..00000000 --- a/src/XML/wsdl/AbstractExtensibilityElement.php +++ /dev/null @@ -1,54 +0,0 @@ -required; - } - - - /** - * Convert this tExtensibilityElement to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tExtensibilityElement - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = $this->instantiateParentElement($parent); - - if ($this->getRequired() !== null) { - $e->setAttribute('required', $this->getRequired() ? 'true' : 'false'); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractExtensibleAttributesDocumented.php b/src/XML/wsdl/AbstractExtensibleAttributesDocumented.php deleted file mode 100644 index a1bcd889..00000000 --- a/src/XML/wsdl/AbstractExtensibleAttributesDocumented.php +++ /dev/null @@ -1,63 +0,0 @@ -setAttributesNS($attributes); - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - return parent::isEmptyElement() && empty($this->getAttributesNS()); - } - - - /** - * Convert this tExtensibleAttributesDocumented to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tExtensibleAttributesDocumented. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - foreach ($this->getAttributesNS() as $attr) { - $attr->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractExtensibleDocumented.php b/src/XML/wsdl/AbstractExtensibleDocumented.php deleted file mode 100644 index 59a4b0dc..00000000 --- a/src/XML/wsdl/AbstractExtensibleDocumented.php +++ /dev/null @@ -1,62 +0,0 @@ -setElements($elements); - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - return parent::isEmptyElement() && empty($this->elements); - } - - - /** - * Convert this tExtensibleDocumented to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tExtensibleDocumented. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - foreach ($this->getElements() as $elt) { - $elt->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractFault.php b/src/XML/wsdl/AbstractFault.php deleted file mode 100644 index 0c3feee2..00000000 --- a/src/XML/wsdl/AbstractFault.php +++ /dev/null @@ -1,86 +0,0 @@ -name; - } - - - /** - * Collect the value of the message-property. - * - * @return string - */ - public function getMessage(): string - { - return $this->message; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tParam to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tParam. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - $e->setAttribute('name', $this->getName()); - $e->setAttribute('message', $this->getMessage()); - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractImport.php b/src/XML/wsdl/AbstractImport.php deleted file mode 100644 index 56f0b71b..00000000 --- a/src/XML/wsdl/AbstractImport.php +++ /dev/null @@ -1,86 +0,0 @@ - $attributes - */ - public function __construct( - protected string $namespace, - protected string $location, - array $attributes = [], - ) { - Assert::validURI($namespace, SchemaViolationException::class); - Assert::validURI($location, SchemaViolationException::class); - - parent::__construct($attributes); - } - - - /** - * Collect the value of the namespace-property. - * - * @return string - */ - public function getNamespace(): string - { - return $this->namespace; - } - - - /** - * Collect the value of the location-property. - * - * @return string - */ - public function getLocation(): string - { - return $this->location; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tImport to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tImport. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - $e->setAttribute('namespace', $this->getNamespace()); - $e->setAttribute('location', $this->getLocation()); - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractMessage.php b/src/XML/wsdl/AbstractMessage.php deleted file mode 100644 index f6ff1dc4..00000000 --- a/src/XML/wsdl/AbstractMessage.php +++ /dev/null @@ -1,98 +0,0 @@ -getName(); - }, - $parts, - ); - Assert::uniqueValues($partNames, "Part-elements must have unique names.", SchemaViolationException::class); - - parent::__construct($elements); - } - - - /** - * Collect the value of the name-property. - * - * @return string - */ - public function getName(): string - { - return $this->name; - } - - - /** - * Collect the value of the parts-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\Part[] - */ - public function getParts(): array - { - return $this->parts; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tParam to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tParam. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - $e->setAttribute('name', $this->getName()); - - foreach ($this->getParts() as $part) { - $part->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractParam.php b/src/XML/wsdl/AbstractParam.php deleted file mode 100644 index 90e4f3e7..00000000 --- a/src/XML/wsdl/AbstractParam.php +++ /dev/null @@ -1,89 +0,0 @@ -name; - } - - - /** - * Collect the value of the message-property. - * - * @return string - */ - public function getMessage(): string - { - return $this->message; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tParam to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tParam. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - if ($this->getName() !== null) { - $e->setAttribute('name', $this->getName()); - } - - $e->setAttribute('message', $this->getMessage()); - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractPart.php b/src/XML/wsdl/AbstractPart.php deleted file mode 100644 index 69b6bbf9..00000000 --- a/src/XML/wsdl/AbstractPart.php +++ /dev/null @@ -1,107 +0,0 @@ -name; - } - - - /** - * Collect the value of the element-property. - * - * @return string|null - */ - public function getElement(): ?string - { - return $this->element; - } - - - /** - * Collect the value of the type-property. - * - * @return string|null - */ - public function getType(): ?string - { - return $this->type; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tPart to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tPart. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - $e->setAttribute('name', $this->getName()); - - if ($this->getElement() !== null) { - $e->setAttribute('element', $this->getElement()); - } - - if ($this->getType() !== null) { - $e->setAttribute('type', $this->getType()); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractPort.php b/src/XML/wsdl/AbstractPort.php deleted file mode 100644 index d5cf2802..00000000 --- a/src/XML/wsdl/AbstractPort.php +++ /dev/null @@ -1,86 +0,0 @@ -name; - } - - - /** - * Collect the value of the binding-property. - * - * @return string - */ - public function getBinding(): string - { - return $this->binding; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tPort to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tPort. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - $e->setAttribute('name', $this->getName()); - $e->setAttribute('binding', $this->getBinding()); - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractPortType.php b/src/XML/wsdl/AbstractPortType.php deleted file mode 100644 index 4651c3bd..00000000 --- a/src/XML/wsdl/AbstractPortType.php +++ /dev/null @@ -1,89 +0,0 @@ -name; - } - - - /** - * Collect the value of the operation-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\PortTypeOperation[] - */ - public function getOperation(): array - { - return $this->operation; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tPortType to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tPortType. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - $e->setAttribute('name', $this->getName()); - - foreach ($this->getOperation() as $operation) { - $operation->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractPortTypeOperation.php b/src/XML/wsdl/AbstractPortTypeOperation.php deleted file mode 100644 index a4b17584..00000000 --- a/src/XML/wsdl/AbstractPortTypeOperation.php +++ /dev/null @@ -1,132 +0,0 @@ -name; - } - - - /** - * Collect the value of the parameterOrder-property - * - * @return string|null - */ - public function getParameterOrder(): ?string - { - return $this->parameterOrder; - } - - - /** - * Collect the value of the input-property - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\AbstractParam|null - */ - public function getInput(): ?AbstractParam - { - return $this->input; - } - - - /** - * Collect the value of the output-property - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\AbstractParam|null - */ - public function getOutput(): ?AbstractParam - { - return $this->output; - } - - - /** - * Collect the value of the fault-property - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\Fault[] - */ - public function getFault(): array - { - return $this->fault; - } - - - /** - * Convert this RequestResponseOrOneWayOperation to XML. - * - * @param \DOMElement|null $parent The element we should add this organization to. - * @return \DOMElement This Organization-element. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = $this->instantiateParentElement($parent); - $e->setAttribute('name', $this->getName()); - - if ($this->getParameterOrder() !== null) { - $e->setAttribute('parameterOrder', $this->getParameterOrder()); - } - - $this->getInput()?->toXML($e); - $this->getOutput()?->toXML($e); - - foreach ($this->getFault() as $fault) { - $fault->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractService.php b/src/XML/wsdl/AbstractService.php deleted file mode 100644 index 21ec6645..00000000 --- a/src/XML/wsdl/AbstractService.php +++ /dev/null @@ -1,99 +0,0 @@ -getName(); - }, - $ports, - ); - Assert::uniqueValues($portNames, "Port-elements must have unique names.", SchemaViolationException::class); - - parent::__construct($elements); - } - - - /** - * Collect the value of the name-property. - * - * @return string - */ - public function getName(): string - { - return $this->name; - } - - - /** - * Collect the value of the ports-property. - * - * @return \SimpleSAML\WSSecurity\XML\wsdl\Port[] - */ - public function getPorts(): array - { - return $this->ports; - } - - - /** - * Test if an object, at the state it's in, would produce an empty XML-element - * - * @return bool - */ - public function isEmptyElement(): bool - { - // Upstream abstract elements can be empty, but this one cannot - return false; - } - - - /** - * Convert this tService to XML. - * - * @param \DOMElement|null $parent The element we are converting to XML. - * @return \DOMElement The XML element after adding the data corresponding to this tService. - */ - public function toXML(DOMElement $parent = null): DOMElement - { - $e = parent::toXML($parent); - - $e->setAttribute('name', $this->getName()); - - foreach ($this->getPorts() as $port) { - $port->toXML($e); - } - - return $e; - } -} diff --git a/src/XML/wsdl/AbstractTypes.php b/src/XML/wsdl/AbstractTypes.php deleted file mode 100644 index 646364aa..00000000 --- a/src/XML/wsdl/AbstractTypes.php +++ /dev/null @@ -1,24 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - $operation = BindingOperation::getChildrenOfClass($xml); - - return new static( - self::getAttribute($xml, 'name'), - self::getAttribute($xml, 'type'), - $operation, - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/BindingOperation.php b/src/XML/wsdl/BindingOperation.php deleted file mode 100644 index 08b0bae0..00000000 --- a/src/XML/wsdl/BindingOperation.php +++ /dev/null @@ -1,50 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - $input = BindingOperationInput::getChildrenOfClass($xml); - $output = BindingOperationOutput::getChildrenOfClass($xml); - $faults = BindingOperationFault::getChildrenOfClass($xml); - - return new static( - self::getAttribute($xml, 'name'), - array_pop($input), - array_pop($output), - $faults, - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/BindingOperationFault.php b/src/XML/wsdl/BindingOperationFault.php deleted file mode 100644 index 483888e4..00000000 --- a/src/XML/wsdl/BindingOperationFault.php +++ /dev/null @@ -1,41 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'name'), - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/BindingOperationInput.php b/src/XML/wsdl/BindingOperationInput.php deleted file mode 100644 index 01d3bd6a..00000000 --- a/src/XML/wsdl/BindingOperationInput.php +++ /dev/null @@ -1,41 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getOptionalAttribute($xml, 'name', null), - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/BindingOperationOutput.php b/src/XML/wsdl/BindingOperationOutput.php deleted file mode 100644 index 0db45d4b..00000000 --- a/src/XML/wsdl/BindingOperationOutput.php +++ /dev/null @@ -1,41 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getOptionalAttribute($xml, 'name', null), - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Definitions.php b/src/XML/wsdl/Definitions.php deleted file mode 100644 index c470c8a9..00000000 --- a/src/XML/wsdl/Definitions.php +++ /dev/null @@ -1,48 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getOptionalAttribute($xml, 'targetNamespace'), - self::getOptionalAttribute($xml, 'name'), - Import::getChildrenOfClass($xml), - Types::getChildrenOfClass($xml), - Message::getChildrenOfClass($xml), - PortType::getChildrenOfClass($xml), - Binding::getChildrenOfClass($xml), - Service::getChildrenOfClass($xml), - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Fault.php b/src/XML/wsdl/Fault.php deleted file mode 100644 index ca0b5085..00000000 --- a/src/XML/wsdl/Fault.php +++ /dev/null @@ -1,42 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'name'), - self::getAttribute($xml, 'message'), - self::getAttributesNSFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Import.php b/src/XML/wsdl/Import.php deleted file mode 100644 index 20520a45..00000000 --- a/src/XML/wsdl/Import.php +++ /dev/null @@ -1,42 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'namespace'), - self::getAttribute($xml, 'location'), - self::getAttributesNSFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Input.php b/src/XML/wsdl/Input.php deleted file mode 100644 index f136ac30..00000000 --- a/src/XML/wsdl/Input.php +++ /dev/null @@ -1,42 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'message'), - self::getOptionalAttribute($xml, 'name'), - self::getAttributesNSFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Message.php b/src/XML/wsdl/Message.php deleted file mode 100644 index b4c3943c..00000000 --- a/src/XML/wsdl/Message.php +++ /dev/null @@ -1,42 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'name'), - Part::getChildrenOfClass($xml), - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Output.php b/src/XML/wsdl/Output.php deleted file mode 100644 index 02c3f8c9..00000000 --- a/src/XML/wsdl/Output.php +++ /dev/null @@ -1,42 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'message'), - self::getOptionalAttribute($xml, 'name'), - self::getAttributesNSFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Part.php b/src/XML/wsdl/Part.php deleted file mode 100644 index 33821e95..00000000 --- a/src/XML/wsdl/Part.php +++ /dev/null @@ -1,43 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'name'), - self::getOptionalAttribute($xml, 'element'), - self::getOptionalAttribute($xml, 'type'), - self::getAttributesNSFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Port.php b/src/XML/wsdl/Port.php deleted file mode 100644 index 98f537d7..00000000 --- a/src/XML/wsdl/Port.php +++ /dev/null @@ -1,42 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'name'), - self::getAttribute($xml, 'binding'), - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/PortType.php b/src/XML/wsdl/PortType.php deleted file mode 100644 index 4b48d39a..00000000 --- a/src/XML/wsdl/PortType.php +++ /dev/null @@ -1,42 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'name'), - PortTypeOperation::getChildrenOfClass($xml), - self::getAttributesNSFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/PortTypeOperation.php b/src/XML/wsdl/PortTypeOperation.php deleted file mode 100644 index 98da9fa8..00000000 --- a/src/XML/wsdl/PortTypeOperation.php +++ /dev/null @@ -1,80 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - $first = null; - foreach ($xml->childNodes as $element) { - if (!($element instanceof DOMElement)) { - continue; - } elseif ($element->namespaceURI === static::NS) { - if ($element->localName === 'input') { - $first = Input::class; - break; - } elseif ($element->localName === 'output') { - $first = Output::class; - break; - } - } - } - - Assert::notNull($first, SchemaViolationException::class); - - if ($first === Input::class) { - // xs:group solicit-response-or-notification-operation - $input = Input::getChildrenOfClass($xml); - $input = array_pop($input); - Assert::notNull($input, SchemaViolationException::class); - $output = Output::getChildrenOfClass($xml); - $output = array_pop($output); - } else { - // xs:group request-response-or-one-way-operation - // NOTE: input is really output and vice versa!! - $input = Output::getChildrenOfClass($xml); - $input = array_pop($input); - Assert::notNull($input, SchemaViolationException::class); - $output = Input::getChildrenOfClass($xml); - $output = array_pop($output); - } - - return new static( - self::getAttribute($xml, 'name'), - self::getOptionalAttribute($xml, 'parameterOrder'), - $input, - $output, - Fault::getChildrenOfClass($xml), - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Service.php b/src/XML/wsdl/Service.php deleted file mode 100644 index 7787027c..00000000 --- a/src/XML/wsdl/Service.php +++ /dev/null @@ -1,42 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getAttribute($xml, 'name'), - Port::getChildrenOfClass($xml), - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/src/XML/wsdl/Types.php b/src/XML/wsdl/Types.php deleted file mode 100644 index 0c300680..00000000 --- a/src/XML/wsdl/Types.php +++ /dev/null @@ -1,40 +0,0 @@ -localName, static::LOCALNAME, InvalidDOMElementException::class); - Assert::same($xml->namespaceURI, static::NS, InvalidDOMElementException::class); - - return new static( - self::getChildElementsFromXML($xml), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/BindingOperationTest.php b/tests/WSSecurity/XML/wsdl/BindingOperationTest.php deleted file mode 100644 index 5009e106..00000000 --- a/tests/WSSecurity/XML/wsdl/BindingOperationTest.php +++ /dev/null @@ -1,95 +0,0 @@ -SomeChunk', - ); - $inputChild = DOMDocumentFactory::fromString( - 'InputChunk', - ); - $outputChild = DOMDocumentFactory::fromString( - 'OutputChunk', - ); - $faultOneChild = DOMDocumentFactory::fromString( - 'FaultOneChunk', - ); - $faultTwoChild = DOMDocumentFactory::fromString( - 'FaultTwoChunk', - ); - - $input = new BindingOperationInput('CustomInputName', [new Chunk($inputChild->documentElement)]); - $output = new BindingOperationOutput('CustomOutputName', [new Chunk($outputChild->documentElement)]); - $faultOne = new BindingOperationFault('CustomFaultOne', [new Chunk($faultOneChild->documentElement)]); - $faultTwo = new BindingOperationFault('CustomFaultTwo', [new Chunk($faultTwoChild->documentElement)]); - - $bindingOperation = new BindingOperation( - 'SomeName', - $input, - $output, - [$faultOne, $faultTwo], - [new Chunk($child->documentElement)], - ); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($bindingOperation), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/BindingTest.php b/tests/WSSecurity/XML/wsdl/BindingTest.php deleted file mode 100644 index 03517156..00000000 --- a/tests/WSSecurity/XML/wsdl/BindingTest.php +++ /dev/null @@ -1,107 +0,0 @@ -SomeChunk', - ); - $operationChild = DOMDocumentFactory::fromString( - 'OperationChunk', - ); - $inputChild = DOMDocumentFactory::fromString( - 'InputChunk', - ); - $outputChild = DOMDocumentFactory::fromString( - 'OutputChunk', - ); - $faultOneChild = DOMDocumentFactory::fromString( - 'FaultOneChunk', - ); - $faultTwoChild = DOMDocumentFactory::fromString( - 'FaultTwoChunk', - ); - - $input = new BindingOperationInput('CustomInputName', [new Chunk($inputChild->documentElement)]); - $output = new BindingOperationOutput('CustomOutputName', [new Chunk($outputChild->documentElement)]); - $faultOne = new BindingOperationFault('CustomFaultOne', [new Chunk($faultOneChild->documentElement)]); - $faultTwo = new BindingOperationFault('CustomFaultTwo', [new Chunk($faultTwoChild->documentElement)]); - - $operationOne = new BindingOperation( - 'OperationOne', - $input, - $output, - [$faultOne, $faultTwo], - [new Chunk($operationChild->documentElement)], - ); - $operationTwo = new BindingOperation('OperationTwo'); - - $binding = new Binding( - 'MyBinding', - 'ssp:CustomType', - [$operationOne, $operationTwo], - [new Chunk($child->documentElement)], - ); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($binding), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/DefinitionsTest.php b/tests/WSSecurity/XML/wsdl/DefinitionsTest.php deleted file mode 100644 index 9e4f0664..00000000 --- a/tests/WSSecurity/XML/wsdl/DefinitionsTest.php +++ /dev/null @@ -1,192 +0,0 @@ -TypesChunk', - ); - - $types = new Types([new Chunk($typesChild->documentElement)]); - - // Message - $messageChild = DOMDocumentFactory::fromString( - 'MessageChunk', - ); - - $messageAttr1 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1'); - $messageAttr2 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr2', 'value2'); - $part1 = new Part('CustomName', 'ssp:CustomElement', 'wsdl:part', [$messageAttr1]); - - $message = new Message('SomeName', [$part1], [new Chunk($messageChild->documentElement)]); - - // PortType - $port = new XMLAttribute(C::NAMESPACE, 'ssp', 'port', '1234'); - $portAttr1 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1'); - $portAttr2 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr2', 'value2'); - $portAttr3 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr3', 'value3'); - - $input = new Input('ssp:CustomInputMessage', 'CustomInputName', [$portAttr1]); - $output = new Output('ssp:CustomOutputMessage', 'CustomOutputName', [$portAttr2]); - $fault = new Fault('CustomFaultName', 'ssp:CustomFaultMessage', [$portAttr3]); - - $inputOperation = new Operation('Input', '0836217462 0836217463', $input, $output, [$fault]); - - $portType = new PortType('MyPort', [$inputOperation], [$port]); - - // Binding - $bindingChild = DOMDocumentFactory::fromString( - 'BindingChunk', - ); - $operationChild = DOMDocumentFactory::fromString( - 'OperationChunk', - ); - $inputChild = DOMDocumentFactory::fromString( - 'InputChunk', - ); - $outputChild = DOMDocumentFactory::fromString( - 'OutputChunk', - ); - $faultOneChild = DOMDocumentFactory::fromString( - 'FaultOneChunk', - ); - $faultTwoChild = DOMDocumentFactory::fromString( - 'FaultTwoChunk', - ); - - $input = new BindingOperationInput('CustomInputName', [new Chunk($inputChild->documentElement)]); - $output = new BindingOperationOutput('CustomOutputName', [new Chunk($outputChild->documentElement)]); - $faultOne = new BindingOperationFault('CustomFaultOne', [new Chunk($faultOneChild->documentElement)]); - - $operationOne = new BindingOperation( - 'OperationOne', - $input, - $output, - [$faultOne], - [new Chunk($operationChild->documentElement)], - ); - - $binding = new Binding( - 'MyBinding', - 'wsdl:binding', - [$operationOne], - [new Chunk($bindingChild->documentElement)], - ); - - // Service - $serviceChild = DOMDocumentFactory::fromString( - 'ServiceChunk', - ); - $chunkOne = DOMDocumentFactory::fromString( - 'ChunkOne', - ); - $chunkTwo = DOMDocumentFactory::fromString( - 'ChunkTwo', - ); - - $portOne = new Port('PortOne', 'wsdl:binding', [new Chunk($chunkOne->documentElement)]); - - $service = new Service('MyService', [$portOne], [new Chunk($serviceChild->documentElement)]); - - // Child - $child = DOMDocumentFactory::fromString( - 'SomeChunk', - ); - - $definitions = new Definitions( - 'urn:x-simplesamlphp:namespace', - 'MyDefinitions', - [$import], - [$types], - [$message], - [$portType], - [$binding], - [$service], - [new Chunk($child->documentElement)], - ); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($definitions), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/FaultTest.php b/tests/WSSecurity/XML/wsdl/FaultTest.php deleted file mode 100644 index 860b5f6f..00000000 --- a/tests/WSSecurity/XML/wsdl/FaultTest.php +++ /dev/null @@ -1,65 +0,0 @@ -assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($fault), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/ImportTest.php b/tests/WSSecurity/XML/wsdl/ImportTest.php deleted file mode 100644 index b665002c..00000000 --- a/tests/WSSecurity/XML/wsdl/ImportTest.php +++ /dev/null @@ -1,65 +0,0 @@ -assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($import), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/InputTest.php b/tests/WSSecurity/XML/wsdl/InputTest.php deleted file mode 100644 index e93dd8df..00000000 --- a/tests/WSSecurity/XML/wsdl/InputTest.php +++ /dev/null @@ -1,67 +0,0 @@ -assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($input), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/MessageTest.php b/tests/WSSecurity/XML/wsdl/MessageTest.php deleted file mode 100644 index 6db278a6..00000000 --- a/tests/WSSecurity/XML/wsdl/MessageTest.php +++ /dev/null @@ -1,89 +0,0 @@ -SomeChunk', - ); - - $attr1 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr1', 'value1'); - $attr2 = new XMLAttribute(C::NAMESPACE, 'ssp', 'attr2', 'value2'); - $part1 = new Part('CustomName', 'ssp:CustomElement', 'ssp:CustomType', [$attr1]); - $part2 = new Part('CustomOtherName', 'ssp:CustomElement', 'ssp:CustomType', [$attr2]); - - $message = new Message('SomeName', [$part1, $part2], [new Chunk($child->documentElement)]); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($message), - ); - } - - - /** - * Test creating an Message object with multiple parts with the same name fails. - */ - public function testMarshallingMultiplePartsSameName(): void - { - $part1 = new Part('CustomSameName', 'ssp:CustomElement', 'ssp:CustomType'); - $part2 = new Part('CustomSameName', 'ssp:CustomElement', 'ssp:CustomType'); - - $this->expectException(SchemaViolationException::class); - new Message('SomeName', [$part1, $part2]); - } -} diff --git a/tests/WSSecurity/XML/wsdl/OutputTest.php b/tests/WSSecurity/XML/wsdl/OutputTest.php deleted file mode 100644 index 47fe19ef..00000000 --- a/tests/WSSecurity/XML/wsdl/OutputTest.php +++ /dev/null @@ -1,67 +0,0 @@ -assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($Output), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/PartTest.php b/tests/WSSecurity/XML/wsdl/PartTest.php deleted file mode 100644 index 89c1a480..00000000 --- a/tests/WSSecurity/XML/wsdl/PartTest.php +++ /dev/null @@ -1,65 +0,0 @@ -assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($part), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/PortTest.php b/tests/WSSecurity/XML/wsdl/PortTest.php deleted file mode 100644 index 5b0e0951..00000000 --- a/tests/WSSecurity/XML/wsdl/PortTest.php +++ /dev/null @@ -1,66 +0,0 @@ -SomeChunk', - ); - $port = new Port('CustomName', 'ssp:CustomBinding', [new Chunk($child->documentElement)]); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($port), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/PortTypeOperationInputTest.php b/tests/WSSecurity/XML/wsdl/PortTypeOperationInputTest.php deleted file mode 100644 index 92efc240..00000000 --- a/tests/WSSecurity/XML/wsdl/PortTypeOperationInputTest.php +++ /dev/null @@ -1,77 +0,0 @@ -assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($operation), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/PortTypeOperationOutputTest.php b/tests/WSSecurity/XML/wsdl/PortTypeOperationOutputTest.php deleted file mode 100644 index 460ef785..00000000 --- a/tests/WSSecurity/XML/wsdl/PortTypeOperationOutputTest.php +++ /dev/null @@ -1,77 +0,0 @@ -assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($operation), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/PortTypeTest.php b/tests/WSSecurity/XML/wsdl/PortTypeTest.php deleted file mode 100644 index 5655aa77..00000000 --- a/tests/WSSecurity/XML/wsdl/PortTypeTest.php +++ /dev/null @@ -1,82 +0,0 @@ -assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($portType), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/ServiceTest.php b/tests/WSSecurity/XML/wsdl/ServiceTest.php deleted file mode 100644 index 0909d004..00000000 --- a/tests/WSSecurity/XML/wsdl/ServiceTest.php +++ /dev/null @@ -1,77 +0,0 @@ -SomeChunk', - ); - $chunkOne = DOMDocumentFactory::fromString( - 'ChunkOne', - ); - $chunkTwo = DOMDocumentFactory::fromString( - 'ChunkTwo', - ); - - $portOne = new Port('PortOne', 'ssp:CustomBinding', [new Chunk($chunkOne->documentElement)]); - $portTwo = new Port('PortTwo', 'ssp:CustomBinding', [new Chunk($chunkTwo->documentElement)]); - - $service = new Service('MyService', [$portOne, $portTwo], [new Chunk($child->documentElement)]); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($service), - ); - } -} diff --git a/tests/WSSecurity/XML/wsdl/TypesTest.php b/tests/WSSecurity/XML/wsdl/TypesTest.php deleted file mode 100644 index efef7b49..00000000 --- a/tests/WSSecurity/XML/wsdl/TypesTest.php +++ /dev/null @@ -1,67 +0,0 @@ -SomeChunk', - ); - - $types = new Types([new Chunk($child->documentElement)]); - - $this->assertEquals( - self::$xmlRepresentation->saveXML(self::$xmlRepresentation->documentElement), - strval($types), - ); - } -} diff --git a/tests/resources/xml/wsdl_Binding.xml b/tests/resources/xml/wsdl_Binding.xml deleted file mode 100644 index c23ad288..00000000 --- a/tests/resources/xml/wsdl_Binding.xml +++ /dev/null @@ -1,19 +0,0 @@ - - SomeChunk - - OperationChunk - - InputChunk - - - OutputChunk - - - FaultOneChunk - - - FaultTwoChunk - - - - diff --git a/tests/resources/xml/wsdl_BindingOperation.xml b/tests/resources/xml/wsdl_BindingOperation.xml deleted file mode 100644 index 9fe87f56..00000000 --- a/tests/resources/xml/wsdl_BindingOperation.xml +++ /dev/null @@ -1,15 +0,0 @@ - - SomeChunk - - InputChunk - - - OutputChunk - - - FaultOneChunk - - - FaultTwoChunk - - diff --git a/tests/resources/xml/wsdl_Definitions.xml b/tests/resources/xml/wsdl_Definitions.xml deleted file mode 100644 index 3a997ccf..00000000 --- a/tests/resources/xml/wsdl_Definitions.xml +++ /dev/null @@ -1,39 +0,0 @@ - - SomeChunk - - - TypesChunk - - - MessageChunk - - - - - - - - - - - BindingChunk - - OperationChunk - - InputChunk - - - OutputChunk - - - FaultOneChunk - - - - - ServiceChunk - - ChunkOne - - - diff --git a/tests/resources/xml/wsdl_Fault.xml b/tests/resources/xml/wsdl_Fault.xml deleted file mode 100644 index cbd29c39..00000000 --- a/tests/resources/xml/wsdl_Fault.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/resources/xml/wsdl_Import.xml b/tests/resources/xml/wsdl_Import.xml deleted file mode 100644 index 34c29e1c..00000000 --- a/tests/resources/xml/wsdl_Import.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/resources/xml/wsdl_Input.xml b/tests/resources/xml/wsdl_Input.xml deleted file mode 100644 index 8b31f6ca..00000000 --- a/tests/resources/xml/wsdl_Input.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/resources/xml/wsdl_Message.xml b/tests/resources/xml/wsdl_Message.xml deleted file mode 100644 index 388f296d..00000000 --- a/tests/resources/xml/wsdl_Message.xml +++ /dev/null @@ -1,5 +0,0 @@ - - SomeChunk - - - diff --git a/tests/resources/xml/wsdl_Output.xml b/tests/resources/xml/wsdl_Output.xml deleted file mode 100644 index 57adaa16..00000000 --- a/tests/resources/xml/wsdl_Output.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/resources/xml/wsdl_Part.xml b/tests/resources/xml/wsdl_Part.xml deleted file mode 100644 index 2bc83e39..00000000 --- a/tests/resources/xml/wsdl_Part.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/tests/resources/xml/wsdl_Port.xml b/tests/resources/xml/wsdl_Port.xml deleted file mode 100644 index bc94f21c..00000000 --- a/tests/resources/xml/wsdl_Port.xml +++ /dev/null @@ -1,3 +0,0 @@ - - SomeChunk - diff --git a/tests/resources/xml/wsdl_PortType.xml b/tests/resources/xml/wsdl_PortType.xml deleted file mode 100644 index 9392e7a1..00000000 --- a/tests/resources/xml/wsdl_PortType.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/tests/resources/xml/wsdl_PortTypeOperation_Input.xml b/tests/resources/xml/wsdl_PortTypeOperation_Input.xml deleted file mode 100644 index 40e29eb5..00000000 --- a/tests/resources/xml/wsdl_PortTypeOperation_Input.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/tests/resources/xml/wsdl_PortTypeOperation_Output.xml b/tests/resources/xml/wsdl_PortTypeOperation_Output.xml deleted file mode 100644 index 058211d3..00000000 --- a/tests/resources/xml/wsdl_PortTypeOperation_Output.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/tests/resources/xml/wsdl_Service.xml b/tests/resources/xml/wsdl_Service.xml deleted file mode 100644 index 09bd0045..00000000 --- a/tests/resources/xml/wsdl_Service.xml +++ /dev/null @@ -1,9 +0,0 @@ - - SomeChunk - - ChunkOne - - - ChunkTwo - - diff --git a/tests/resources/xml/wsdl_Types.xml b/tests/resources/xml/wsdl_Types.xml deleted file mode 100644 index 4497ff21..00000000 --- a/tests/resources/xml/wsdl_Types.xml +++ /dev/null @@ -1,3 +0,0 @@ - - SomeChunk -