PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Parameters of procedure to run
  • Type of parameter
  • Call to DotNetRun
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Runs a procedure on a .Net server.
Remark: The procedure parameters must be specified before using DotNetRun via the .Net structure (see the Notes).
Example
// Cet exemple est basé sur la présence du module eightball sur le site "www.gotdotnet.com".
// Si le module n'était plus disponible sur le site, l'exemple ne fonctionnerait plus
DotNet.Value[1] = "mettre ici une question, en anglais de préférence" + ...
"pour le fun de l'exemple: que pourra-t-on nous répondre?"
DotNet.Name[1] = "psQuestion"
DotNet.Type[1] = DotNetStringType
IF DotNetRun("www.gotdotnet.com/playground/services/EightBall/eightballws.asmx", ...
"Ask", "http://tempuri.org/", "http://tempuri.org/Ask") THEN
Info(DotNetGetResult(DotNetResult))
ELSE
IF DotNetError(DotNetErrMessage) ~= "" THEN
Error(ErrorInfo())
ELSE
Error("Erreur DotNet: " + ...
DotNetError(DotNetErrMessage))
END
END
Syntax
<Result> = DotNetRun(<Server URL> , <Procedure name> [, <Procedure Namespace> [, <Procedure action> [, <Encoding style>]]])
<Result>: Boolean
  • True if the communication was established with the server,
  • False otherwise. To get the details of the error, use ErrorInfo with the errMessage constant.
<Server URL>: Character string
URL of server to contact. This parameter is supplied in the documentation of .Net server.
<Procedure name>: Character string
Name of the procedure that will be run on the specified server. This parameter is supplied in the documentation of .Net server.
The procedure name is case sensitive (uppercase/lowercase characters).
<Procedure Namespace>: Optional character string
Namespace of procedure to run. This parameter is 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.
<Encoding style>: Optional character string
Encoding style of procedure (also called "EncodingStyle"). This parameter is supplied in the documentation of .Net server.
Remarks

Parameters of procedure to run

The following structure is used by WINDEV or WEBDEV to pass parameters to a procedure run on a .Net XML Web server:
VariableTypeDetails
DotNet.NameSpaceOptional character string"NameSpace" of parameter
DotNet.NameCharacter stringParameter name
DotNet.XMLParamOptional character stringFull parameter description in XML format. The other parameters (Value, Name, Type, NameSpace and EncodingStyle) are ignored if this parameter is specified.
DotNet.EncodingStyleOptional character stringEncoding style of parameter
DotNet.TypeConstantType of parameter
DotNet.ValueAny typeParameter value
This structure must be used for each parameter. For example:
DotNet.Value[1] = 94010
DotNet.Name[1] = "ZipCode"
DotNet.Type[1] = DotNetStringType
This structure is equivalent to:
DotNet.ParamXML[ 1] = <CodePostal xsi:type="xsd:string">94010</CodePostal>

Type of parameter

The type of parameter can be:
ConstantType
DotNetBase64BinaryTypeBinary
DotNetHexBinaryTypeHexadecimal binary
DotNetBooleanTypeBoolean
DotNetStringTypeCharacter string
DotNetNormalizedStringTypeCharacter string without carriage return (CR) and without tabulation (TAB)
DotNetDecimalTypeAny number without limit
DotNetIntTypeInteger included between - 2 147 483 648 and + 2 147 483 647)
DotNetShortTypeShort integer
DotNetUnsignedShortTypeUnsigned short integer
DotNetIntegerTypeInteger (no limit)
DotNetLongTypeLong integer
DotNetUnsignedLongTypeLong unsigned integer
DotNetNegativeIntegerTypeNegative integer (except 0)
DotNetNonNegativeIntegerTypeNon-negative integer
DotNetNonPositiveIntegerTypeNon-positive integer
DotNetUnsignedIntTypeUnsigned integer
DotNetPositiveIntegerTypePositive integer (except 0)
DotNetByteTypeByte
DotNetUnsignedByteTypeUnsigned byte
DotNetFloatTypeReal
DotNetDoubleTypeDouble real
DotNetAnyURITypeURL address

Call to DotNetRun

After the call to DotNetRun:
  • The procedure parameters are erased.
  • The header structure specified with function DotNetAddHeader is deleted.
  • DotNetGetResult returns the result of the procedure run.
  • DotNetError returns the error message of the procedure run.
Component: wd270com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment