AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / SOAP
  • Executing the procedure (syntax 4, kept for backward compatibility)
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Adds a header to the next SOAP function of a web service to run.
The added header can contain additional parameters affecting the SOAP request. In most cases, the information added in the headers does not directly represent the parameters of the web service function but meta information such as authentication information, for example.
Note The SOAP function is executed by calling SOAPRun or SOAPRunXML.
Ejemplo
// Add a header to the next SOAP procedure run
// This header is used to check the security level used by the SOAP server
// If the maximum security level is not used, 
// the next SOAP procedure will not be run
SOAPAddHeader("Security", "MaxSecurity", "Security-Level", True)
Sintaxis

Customizing the header of the web service Ocultar los detalles

SOAPAddHeader(<Web service name> , <Element to add to the header>)
<Web service name>: Web service
Name of the web service to be used. The web service name is displayed in the "Project Explorer" pane, in the "Imported web services" folder.
<Element to add to the header>: Simple or complex type
Variable of the same type as the header to insert into the call to the web service method. The different types have been retrieved when importing the WSDL file.
This element is added to the header each time a web service SOAP function is called.

Adding a header for a specific web service Ocultar los detalles

SOAPAddHeader(<Web service name> , <Parameter name> , <Parameter value> , <Parameter namespace>)
<Web service name>: Web service
Name of the web service to be used. The web service name is displayed in the "Project Explorer" pane, in the "Imported web services" folder.
<Parameter name>: Character string
Name of additional parameter.
This additional parameter is used to check an information specific to the SOAP server.
This parameter is supplied in the documentation of the SOAP server and its functions.
<Parameter value>: Any type
Value of additional parameter.
The possible values are supplied in the documentation of the SOAP server and its functions.
<Parameter namespace>: Character string
Namespace of parameter.
This parameter is supplied in the documentation of the SOAP server and its functions.
Android Not available for Android applications

Adding a node to a specific SOAP web service header Ocultar los detalles

SOAPAddHeader(<Web service method> , <Node>)
<Web service method>: wsRequest variable
Name of the wsRequest variable that corresponds to the web service method to be used.
<Node>: xmlNode variable
Name of the xmlNode variable that corresponds to the node to be added in the SOAP header.
Android Not available for Android applications

Adding a header (syntax kept for backward compatibility) Ocultar los detalles

SOAPAddHeader(<Parameter name> , <Parameter value> , <Parameter namespace> [, <Procedure execution>])
<Parameter name>: Character string
Name of additional parameter.
This additional parameter is used to check an information specific to the SOAP server.
This parameter is supplied in the documentation of the SOAP server and its functions.
<Parameter value>: Any type
Value of additional parameter.
The possible values are supplied in the documentation of the SOAP server and its functions.
<Parameter namespace>: Character string
Namespace of parameter.
This parameter is supplied in the documentation of the SOAP server and its functions.
<Procedure execution>: Optional boolean
  • True: the procedure must not be executed if the SOAP server cannot process the header (header required).
  • False Procedure execution does not take header into account (optional header).
Observaciones

Executing the procedure (syntax 4, kept for backward compatibility)

You have the ability to run (or not) the next SOAP procedure by adding a header. To do so, <Procedure execution> must be initialized to True.
If <Procedure execution> is initialized to True:
  • SOAPRun (or SOAPRunXML) returns True if the connection with the SOAP server was established, False otherwise.
  • If the connection with the SOAP server was established and if the SOAP server fulfills the conditions requested by the header, the procedure is run.
  • If the procedure was run, SOAPGetResult returns:
    • the result of the procedure if the procedure was successfully run,
    • an empty string ("") if the procedure failed.
  • If the procedure failed or if it was not run, SOAPError returns:
    • the "MustUnderstand" error code if the SOAP server does not fulfills the conditions requested by the header,
    • an error in the other cases.
Clasificación Lógica de negocio / UI: Lógica de negocio
Componente: wd300com.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local