|
|
|
|
Construye la petición SOAP para llamar a una función de servicio web.
// Standard call that is using the full call to a WebService method stParam1 is Param1 stParam1.String = "a string" stParam1.Int = 2 stRet is Result1 stRet = MyFunction(stParam1) // Equivalent call defining the buffer // and using SOAPRunXML stParam1 is Param1 stParam1.String = "a string" stParam1.Int = 2 byBuffer is Buffer = SOAPPrepare(MyFunction, stParam1) // The action must have the following syntax "urn:<Webservice name>/FunctionName" // <Webservice name>: usually, it is the name of the wsdl file (without extension) SOAPRunXML("http://localhost/webservice/", byBuffer, "urn:MyWebservice/MyFunction") Sintaxis
<Result> = SOAPPrepare(<Function name> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: Buffer Buffer XML que contiene la petición SOAP generada. <Function name>: Cadena de caracteres Función Webservice para la que se debe construir la petición SOAP. <Parameter 1>: Variant Primer parámetro de la función Webservice. <Parameter N>: Variant Parámetro Nth de la función Webservice. Observaciones La función SOAPPrepare construye la solicitud SOAP que se envía al Webservice al llamar a una de sus funciones sin realizar la solicitud. A continuación, el buffer generado puede ser enviado por SOAPRunXML. El búfer devuelto contiene la secuencia XML codificada en UTF8. El búfer no contiene la cabecera HTTP (indicando la acción SOAP, el tipo de contenido, etc.). Las cabeceras son añadidas automáticamente por SOAPRunXML. Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|