@@ -528,29 +528,28 @@ static sdlSoapBindingFunctionHeaderPtr wsdl_soap_binding_header(sdlCtx* ctx, xml
528
528
static void wsdl_soap_binding_body (sdlCtx * ctx , xmlNodePtr node , char * wsdl_soap_namespace , sdlSoapBindingFunctionBody * binding , HashTable * params )
529
529
{
530
530
xmlNodePtr trav ;
531
- xmlAttrPtr tmp ;
532
531
533
532
trav = node -> children ;
534
533
while (trav != NULL ) {
535
534
if (node_is_equal_ex (trav , "body" , wsdl_soap_namespace )) {
536
535
xmlNodePtr body = trav ;
537
536
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" ))) {
540
539
binding -> use = SOAP_LITERAL ;
541
540
} else {
542
541
binding -> use = SOAP_ENCODED ;
543
542
}
544
543
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 );
548
547
}
549
548
550
- tmp = get_attribute (body -> properties , "parts" );
551
- if (tmp ) {
549
+ xmlAttrPtr partsAttribute = get_attribute (body -> properties , "parts" );
550
+ if (partsAttribute ) {
552
551
HashTable ht ;
553
- char * parts = (char * )tmp -> children -> content ;
552
+ char * parts = (char * )partsAttribute -> children -> content ;
554
553
555
554
/* Delete all parts those are not in the "parts" attribute */
556
555
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
585
584
}
586
585
587
586
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 ) {
591
590
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 ) {
593
592
binding -> encodingStyle = SOAP_ENCODING_1_2 ;
594
593
} 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 );
596
595
}
597
596
} else {
598
597
soap_error0 (E_ERROR , "Parsing WSDL: Unspecified encodingStyle" );
0 commit comments