set, request, xml, namespace, type, api, request, response, send, soap, rest, get, post, put, delete

Method SetRequestXmlNamespace

API

Sets XML Namespace

Watch this video to learn how to use this method

Have a problem with playback?
SetRequestXmlNamespace sets API request XmlNamespace during the runtime The input parameters are string prefix and string Namespace. Let's use Sum API method for demonstartion purposes. We can see no XmlNamespace set up We will use SetRequestXmlNamespace to set it during script runtime Set Prefix as "a" and Namespace from microsoft ("http://schemas.microsoft.com/2003/10/Serialization/Arrays") We will add breakpoint to next step to pause execution during the runtime Run and we can see the XmlNamespace is set up.

Usage

Function SetRequestXmlNamespace(
    String Prefix,
    String Ns
)

CreateBooks

SetReq...space

a

http...Arrays

Prefix

Ns

Parameters

Prefix

Type: String

The Prefix of the XML Namespace

Ns

Type: String

The new Namespace to set

Returns

No return value

Example

VBScript

Server("API Server").Method("CreateBooks").SetRequestXmlNamespace "a", "http://schemas.microsoft.com/Serialization/Arrays"

JavaScript

Server("API Server").Method("CreateBooks").SetRequestXmlNamespace("a", "http://schemas.microsoft.com/Serialization/Arrays");

CreateBooks

SetReq...space

a

http...Arrays

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227