PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Call to DotNetRunXML
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Runs a procedure on a server for .Net XML Web services. All the procedure parameters must be specified via an XML message.
Example
// Define the XML message of the "getTemp" procedure that
// returns the temperature of a city identified by its zip code
MessageXML = ...
"<SOAP-ENV:Envelope xmlns:SOAP-ENV=" + ...
"""http://schemas.xmlsoap.org/soap/envelope/""" + ...
"xmlns:xsi=""http://www.w3.org/1999/XMLSchema-instance""" + ...
"xmlns:xsd=""http://www.w3.org/1999/XMLSchema"">" + ...
"SOAP-ENV:Body> " + ...
"<ns1:getTemp xmlns:ns1=""urn:xmethods-Temperature"" SOAP-" + ...
"ENV:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"">" + ...
"<zipcode xsi:type=""xsd:string"">94041</zipcode> " + ...
"</ns1:getTemp> " + ...
"</SOAP-ENV:Body> " + ...
"</SOAP-ENV:Envelope>"

// Run the "getTemp" procedure
ResExecute = DotNetRunXML("http://services.xmethods.net:80" + ...
  "/soap/servlet/rpcrouter", MessageXML)
Syntax
<Result> = DotNetRunXML(<Server URL> , <XML Message> [, <Procedure Action>])
<Result>: Boolean
  • True if the communication was established with the server,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Server URL>: Character string
URL of server to contact. This parameter is supplied in the documentation of .Net server.
<XML Message>: Character string
XML message containing the data used to run a procedure (name, namespace, encoding style and parameters of procedure). These parameters are supplied in the documentation of .Net server.
<Procedure Action>: Optional character string
Action of procedure (also called "DotNetAction"). This parameter is supplied in the documentation of .Net server.
Remarks

Call to DotNetRunXML

After the call to DotNetRunXML:
  • The data found in the procedure is erased.
  • The structure of header specified by DotNetAddHeader is erased.
  • DotNetGetResult returns the result of the procedure run.
  • DotNetError returns the error message of the procedure run.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment