php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #50698
Patch BugTestImprovedv2 revision 2010-04-30 21:59 UTC by zippy1981 at gmail dot com
Patch BugTestImproved revision 2010-04-06 12:49 UTC by zippy1981 at gmail dot com
Patch BugTest revision 2010-04-05 15:26 UTC by zippy1981 at gmail dot com
Patch non-http-endpoint-handling revision 2010-04-02 18:47 UTC by zippy1981 at gmail dot com

Patch non-http-endpoint-handling for *General Issues Bug #50698

Patch version 2010-04-02 18:47 UTC

Return to Bug #50698 | Download this patch
Patch Revisions:

Developer: zippy1981@gmail.com

Index: php_sdl.c
===================================================================
--- php_sdl.c	(revision 297347)
+++ php_sdl.c	(working copy)
@@ -832,7 +832,12 @@
 							if (strncmp((char*)tmp->children->content, WSDL_HTTP_TRANSPORT, sizeof(WSDL_HTTP_TRANSPORT)) == 0) {
 								soapBinding->transport = SOAP_TRANSPORT_HTTP;
 							} else {
-								soap_error1(E_ERROR, "Parsing WSDL: PHP-SOAP doesn't support transport '%s'", tmp->children->content);
+								// Since this is an E_NOTICE severity message, it will disappear into the ether.
+								soap_error1(E_NOTICE, "Parsing WSDL: PHP-SOAP doesn't support transport '%s'", tmp->children->content);
+								efree(soapBinding);
+								efree(tmpbinding);
+								trav = trav->next;
+								continue;
 							}
 						}
 					}
@@ -1128,6 +1133,10 @@
 		soap_error0(E_ERROR, "Parsing WSDL: Couldn't bind to service");
 	}
 
+	if (ctx.sdl->bindings == NULL || ctx.sdl->bindings->nNumOfElements == 0) {
+		soap_error0(E_ERROR, "Parsing WSDL: Could not find any usable binding services in WSDL.");
+	}
+
 	zend_hash_destroy(&ctx.messages);
 	zend_hash_destroy(&ctx.bindings);
 	zend_hash_destroy(&ctx.portTypes);
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 18:02:13 2014 UTC