diff options
| author | Dmitry Stogov <dmitry@php.net> | 2004-01-16 07:54:48 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2004-01-16 07:54:48 +0000 |
| commit | 7e19a6724757b0104ef30c4572aa989f12217e6c (patch) | |
| tree | e611bf76af953e58cacf636420a80d16c190b9dd | |
| parent | 501ac09f08868280d1b510f3c8d44ac3459c8bd1 (diff) | |
| download | php-git-7e19a6724757b0104ef30c4572aa989f12217e6c.tar.gz | |
Support for SOAP 1.2 HTTP binding namespase was added
| -rw-r--r-- | ext/soap/php_encoding.h | 3 | ||||
| -rw-r--r-- | ext/soap/php_sdl.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/ext/soap/php_encoding.h b/ext/soap/php_encoding.h index 90cfd16fea..85b9989893 100644 --- a/ext/soap/php_encoding.h +++ b/ext/soap/php_encoding.h @@ -134,7 +134,8 @@ #define WSDL_SOAP12OLD_NAMESPACE "http://schemas.xmlsoap.org/wsdl/soap12/" #define WSDL_SOAP_NS_PREFIX "wsdlSoap" -#define WSDL_HTTP_NAMESPACE "http://schemas.xmlsoap.org/wsdl/http/" +#define WSDL_HTTP11_NAMESPACE "http://schemas.xmlsoap.org/wsdl/http/" +#define WSDL_HTTP12_NAMESPACE "http://www.w3.org/2003/05/soap/bindings/HTTP/" #define WSDL_HTTP_NS_PREFIX "http" #define WSDL_HTTP_TRANSPORT "http://schemas.xmlsoap.org/soap/http" diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 1e41f45ea2..1fe5a33f47 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -443,7 +443,9 @@ static sdlPtr load_wsdl(char *struri) } else if (address->ns && !strcmp(address->ns->href, WSDL_SOAP12_NAMESPACE)) { wsdl_soap_namespace = WSDL_SOAP12_NAMESPACE; tmpbinding->bindingType = BINDING_SOAP; - } else if (address->ns && !strcmp(address->ns->href, WSDL_HTTP_NAMESPACE)) { + } else if (address->ns && !strcmp(address->ns->href, WSDL_HTTP11_NAMESPACE)) { + tmpbinding->bindingType = BINDING_HTTP; + } else if (address->ns && !strcmp(address->ns->href, WSDL_HTTP12_NAMESPACE)) { tmpbinding->bindingType = BINDING_HTTP; } else { if (address->ns) { |
