@@ -528,29 +528,28 @@ static sdlSoapBindingFunctionHeaderPtr wsdl_soap_binding_header(sdlCtx* ctx, xml
528528static void wsdl_soap_binding_body (sdlCtx * ctx , xmlNodePtr node , char * wsdl_soap_namespace , sdlSoapBindingFunctionBody * binding , HashTable * params )
529529{
530530 xmlNodePtr trav ;
531- xmlAttrPtr tmp ;
532531
533532 trav = node -> children ;
534533 while (trav != NULL ) {
535534 if (node_is_equal_ex (trav , "body" , wsdl_soap_namespace )) {
536535 xmlNodePtr body = trav ;
537536
538- tmp = get_attribute (body -> properties , "use" );
539- if (tmp && !strncmp ((char * )tmp -> children -> content , "literal" , sizeof ("literal" ))) {
537+ xmlAttrPtr useAttribute = get_attribute (body -> properties , "use" );
538+ if (useAttribute && !strncmp ((char * )useAttribute -> children -> content , "literal" , sizeof ("literal" ))) {
540539 binding -> use = SOAP_LITERAL ;
541540 } else {
542541 binding -> use = SOAP_ENCODED ;
543542 }
544543
545- tmp = get_attribute (body -> properties , "namespace" );
546- if (tmp ) {
547- binding -> ns = estrdup ((char * )tmp -> children -> content );
544+ xmlAttrPtr namespaceAttribute = get_attribute (body -> properties , "namespace" );
545+ if (namespaceAttribute ) {
546+ binding -> ns = estrdup ((char * )namespaceAttribute -> children -> content );
548547 }
549548
550- tmp = get_attribute (body -> properties , "parts" );
551- if (tmp ) {
549+ xmlAttrPtr partsAttribute = get_attribute (body -> properties , "parts" );
550+ if (partsAttribute ) {
552551 HashTable ht ;
553- char * parts = (char * )tmp -> children -> content ;
552+ char * parts = (char * )partsAttribute -> children -> content ;
554553
555554 /* Delete all parts those are not in the "parts" attribute */
556555 zend_hash_init (& ht , 0 , NULL , delete_parameter , 0 );
@@ -585,14 +584,14 @@ static void wsdl_soap_binding_body(sdlCtx* ctx, xmlNodePtr node, char* wsdl_soap
585584 }
586585
587586 if (binding -> use == SOAP_ENCODED ) {
588- tmp = get_attribute (body -> properties , "encodingStyle" );
589- if (tmp ) {
590- if (strncmp ((char * )tmp -> children -> content , SOAP_1_1_ENC_NAMESPACE , sizeof (SOAP_1_1_ENC_NAMESPACE )) == 0 ) {
587+ xmlAttrPtr encodingStyleAttribute = get_attribute (body -> properties , "encodingStyle" );
588+ if (encodingStyleAttribute ) {
589+ if (strncmp ((char * )encodingStyleAttribute -> children -> content , SOAP_1_1_ENC_NAMESPACE , sizeof (SOAP_1_1_ENC_NAMESPACE )) == 0 ) {
591590 binding -> encodingStyle = SOAP_ENCODING_1_1 ;
592- } else if (strncmp ((char * )tmp -> children -> content , SOAP_1_2_ENC_NAMESPACE , sizeof (SOAP_1_2_ENC_NAMESPACE )) == 0 ) {
591+ } else if (strncmp ((char * )encodingStyleAttribute -> children -> content , SOAP_1_2_ENC_NAMESPACE , sizeof (SOAP_1_2_ENC_NAMESPACE )) == 0 ) {
593592 binding -> encodingStyle = SOAP_ENCODING_1_2 ;
594593 } else {
595- soap_error1 (E_ERROR , "Parsing WSDL: Unknown encodingStyle '%s'" , tmp -> children -> content );
594+ soap_error1 (E_ERROR , "Parsing WSDL: Unknown encodingStyle '%s'" , encodingStyleAttribute -> children -> content );
596595 }
597596 } else {
598597 soap_error0 (E_ERROR , "Parsing WSDL: Unspecified encodingStyle" );
0 commit comments