/** * Constructor initializing the wsdl generator context. * * @param string $name The webservice name * @param string $namespace The targetnamespace of the wsdl document * @param string $location The endpoint location of the webservice * @param bool $default Indicates if the webservice is the default one */ public function __construct($name, $namespace, $location = null, $default = true) { $this->name = $name; $this->namespace = ckXsdNamespace::set('tns', $this->normalizeNamespaceUri($namespace)); $this->location = $location; $this->default = $default; }
<?php /** * This file is part of the ckWsdlGenerator * * @package ckWsdlGenerator * @author Christian Kerl <*****@*****.**> * @copyright Copyright (c) 2008, Christian Kerl * @license http://www.opensource.org/licenses/mit-license.php MIT License * @version SVN: $Id: ckXsdNamespace.class.php 12155 2008-10-12 22:18:08Z chrisk $ */ ckXsdNamespace::set('xsd', 'http://www.w3.org/2001/XMLSchema'); ckXsdNamespace::set('soap', 'http://schemas.xmlsoap.org/wsdl/soap/'); ckXsdNamespace::set('soaphttp', 'http://schemas.xmlsoap.org/soap/http'); ckXsdNamespace::set('soapenc', 'http://schemas.xmlsoap.org/soap/encoding/'); ckXsdNamespace::set('wsdl', 'http://schemas.xmlsoap.org/wsdl/'); /** * ckXsdNamespace represents a xml namespace and provides a central xml namespace registry. * * @package ckWsdlGenerator * @subpackage xsd * @author Christian Kerl <*****@*****.**> */ class ckXsdNamespace { /** * An array containing all registered namespaces. * * @var array */ protected static $namespaceRegistry = array();
public function __construct($name, $namespace, $endpoint) { $this->name = $name; $this->namespace = ckXsdNamespace::set('tns', $this->normalizeNamespaceUri($namespace)); $this->endpoint = $endpoint; }