Products Downloads


French version


 


      

VADELIA

      

WADELIA

EADELIA


(I/B) (C)


(I/B) (C)

(B) (C)


Context for use

SOAP Web Service consumption.


Section for use

All


Syntax

WS_COUNT_VAL WebServiceId OperationId ReqId XPATHQuery ResNumVarId


ReqId

*ID(numId) | None




numId

VarNumId | CstNum



Description

Based on the complex result returned when the WebServiceId Web service's OperationId operation for the numId request is called, this instruction retrieves the number of occurrences of the multiple element specified in the XPATHQuery XPATH query.

The number thus retrieved is assigned to the ResNumVarId numerical variable.


Notes:

    • The XPATH query MUST designate a multiple element.
    • OperationId and the elements in the XPATH query are case-sensitive.
    • For an 'RPC/Encoded' SOAP style Web service called in "parameter" mode, the *ID keyword is not supported.

It is possible to check that the information has been retrieved by testing the *RETURN_CODE reserved word.

If this reserved word returns a value other than *NORMAL, the *RETURN_MSG provides a description of the error.


Example

* Retrieves the number of occurrences of the multiple element coded in the NbElem variable

*

WS_COUNT_VAL ISOCODES ISOcodes /result_list/code NbElem

* Retrieves the number of occurrences of the # multiple element in the NbElem variable

*

WS_COUNT_VAL GOOGLESEARCH doGoogleSearch /return/resultElements/# NbElem


* Retrieves the number of occurrences of the # multiple element in the NbElem variable for the request 3

WS_COUNT_VAL GOOGLESEARCH doGoogleSearch *ID(3)/return/resultElements/# NbElem



↑ Top of page

  • Aucune étiquette