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
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
Builds the SOAP request for calling a web service function.
Ejemplo
// Standard call that uses 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:<Web service name>/FunctionName"
// <Nom du Webservice>: often this is the name of the wsdl file (without the extension)
SOAPRunXML("http://localhost/webservice/", byBuffer, "urn:MyWebservice/MyFunction")
Sintaxis
<Result> = SOAPPrepare(<Function name> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: Buffer
XML buffer containing the generated SOAP request.
<Function name>: Character string
Web service function for which the SOAP request must be built.
<Parameter 1>: Variant
First parameter of the web service function.
<Parameter N>: Variant
Nth parameter of web service function.
Observaciones
SOAPPrepare SOAPPrepare builds the SOAP request that would be sent to the web service during a call to one of its functions without running the request.
Then, the generated buffer can be sent by SOAPRunXML.
The returned buffer contains the XML stream encoded in UTF8. The buffer does not contain the HTTP header (indicating the SOAP Action, the content-type, etc.). The headers are automatically added by SOAPRunXML.
Clasificación Lógica de negocio / UI: Lógica de negocio
Componente: wd300xml.dll
Versión mínima requerida
  • Versión 15
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

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