Executes a web service call using the provided WSDL URI (Uniform Resource Identifier) and parameters. Provides an automated means of calling a Web service method by way of a WSDL document or URI. This action supports variables, static values and standard parameter types (such as strings and numbers) as well as support for structure information. Data can be returned into a corresponding structure or a specified variable. Before continuing, you should have a basic understanding of HTML, XML, Web service and related platform elements, such as WSDL, SOAP and UDDI.
Declaration
<AMEXECUTEWEBSERVICE WSDLURL="asa" TYPENAME="text" METHODNAME="text" RESULTVARIABLE="text" RESULTSTRUCTURE="text" PROTOCOL="text (options)" AUTHENTICATIONTYPE="text (options)" USERNAME="text" PASSWORD="text" CERTIFICATE="text" PASSPHRASE="text"><Argument ArgType="text" ArgValue="text" /></AMEXECUTEWEBSERVICE>
Example
<AMEXECUTEWEBSERVICE WSDLURL="asa" TYPENAME="text" METHODNAME="text" RESULTVARIABLE="text" RESULTSTRUCTURE="text" PROTOCOL="Soap12" AUTHENTICATIONTYPE="Basic" USERNAME="text" PASSWORD="AM14X/Mzt7l1ZJKI5puXATapg==aME" DOMAINNAME="text" CERTIFICATE="text" PASSPHRASE="AM1A1ccLj1w0WwPoNgZM+UvjQ==aME"><Argument ArgType="text" ArgValue="text" /></AMEXECUTEWEBSERVICE>
See Also: Automating Web Service Execution, Send Email, Get Email, Map Drive, MSMQ, Ping Machine, Twitter
Property |
Type |
Required |
Default |
Markup |
Description |
WSDL URI |
Text |
Yes |
(Empty) |
WSDLURL= "http://example.com/ services/stockquote/wsdl" |
The location to a WSDL (Web Services Description Language) URL or a file location to a WSDL file. After entering the WSDL URL or file, clicking Go to query available WSDL methods. |
Web Service Type |
Text |
Yes |
(Empty) |
TYPENAME="StockQuote" |
The web service class which contains the available methods. After entering a WSDL location in the WSDL URI parameter, clicking Go will attempt to query available Web Service Types specified in the WSDL URL or file. Upon a successful query, all discovered Web Service Types will be populated into the Web Service Type field. Clicking the down arrow corresponding to this field will display a full list of queried type names from which to select. |
Method |
Text |
Yes |
(Empty) |
METHODNAME="InvertStringCase" |
The WSDL method (or operation) to invoke. Upon selection of an available class as specified under the Web Service Type parameter, all discovered methods relating to that class will be populated into the Method field. Clicking the down arrow corresponding to this field will display a full list of queried method names from which to select. |
Populate variable with return value |
Text |
No |
(Empty) |
RESULTVARIABLE="theVar" |
The name of an existing variable to be populated with the return value of the selected method. |
Create structure with returned complex type |
Text |
No |
(Empty) |
RESULTSTRUCTURE="theStructure" |
The name of the structure created by the user. A Web Service call may require the use of one or more structures as parameters. If such structures are required, the user must initially create them in prior steps during design time using the Define Type and Create Object action. The Define Type action defines a custom object type or types defined in a Web service. The Create Object action creates an AWE Object from custom type(s) defined by the Define Type action. The structure contents can then be defined in this parameter with the returned user defined object’s properties. Structures can be saved to a variable which can be specified in this parameter. |
Property |
Type |
Required |
Default |
Markup |
Description |
Type |
Text |
No |
(Empty) |
ARGTYPE="string" |
The WSDL method argument type. If clicking Go accomplished a successful query of the WSDL document/URI and one or more methods were selected from the Method field, this column becomes pre-populated with any corresponding parameter types in the order in which they were selected. This allows the user to enter the necessary parameter values under the Value column. |
Value |
Text |
No |
(Empty) |
ARGVALUE="Hello" |
The value to enter corresponding to the argument type populated under the Type column. |
Property |
Type |
Required |
Default |
Markup |
Description |
Authentication Type |
Text (options) |
No |
None |
AUTHENTICATIONTYPE="Digest" |
The type of authentication required (if any). Different parameters may become available depending on the option selected. The available options are:
|
Domain |
Text |
No |
(Empty) |
DOMAINNAME="mydomain.com" |
The domain name used for authentication. This parameter is available only if the Authentication Type parameter is set to Basic, Digest or Windows (NTLM or Kerberos). |
Username |
Text |
No |
(Empty) |
USERNAME="theuser" |
The user name used for authentication. This parameter is available only if the Authentication Type parameter is set to Basic, Digest or Windows (NTLM or Kerberos). |
Password |
Text |
No |
(Empty) |
PASSWORD="encrypted" |
The password used for authentication. This parameter is available only if the Authentication Type parameter is set to Basic, Digest or Windows (NTLM or Kerberos). |
Client Certificate |
Text |
No |
(Empty) |
CERTIFICATE="C:\Temp\Cert" |
The path to a valid client certificate used for authentication. This parameter is available only if the Authentication Type parameter is set to Basic, Digest or Windows (NTLM or Kerberos). |
Passphrase |
Text |
No |
(Empty) |
PASSPHRASE="encrypted" |
The passphrase used for authentication. |
Protocol |
Text (options) |
No |
SOAP |
PROTOCOL="Soap12" |
The protocol version. The available options are:
|
This action includes the Description tab for entering a custom step description.
More on setting custom step description
This action also includes the standard Error Causes and On Error failure handling options/tabs.
More on Error Handling Options
All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, % Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.