RetailCommonWebAPI Class [AX 2012]

The RetailCommonWebAPI class is the class grouping several over-the-web communication methods like sending an HTTP POST or GET requests and transforming the response to X++ data structures.

Syntax

class RetailCommonWebAPI

Run On

Called

Methods

  Method Description
JJ760281.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif getResponse Get retail web access request.
JJ760281.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif makeDeleteRequest Performs HTTP request using the DELETE method.
JJ760281.pubmethod(en-us,AX.60).gif makeFormPost Performs HTTP request using the POST method and content encoded using multipart/form-data encoding.This method allows to provide a Map of key/value pairs for data representable as a text using the _strFields parameter, as well as a Map of key/value pairs for binary data using the _docFields parameter.Optionally, a custom HTTP header can be set through the _header parameter.
JJ760281.pubmethod(en-us,AX.60).gif makePostRequest Performs HTTP request using the POST method.This method allows to provide the raw data using the _postData parameter.Note that the data will be encoded with the UTF-8 encoding.Optionally, a custom HTTP header can be set through the _header parameter.The default content type can be overriden using the optional _contentType parameter.
JJ760281.pubmethod(en-us,AX.60).gif makeRequest Performs HTTP request using the GET method.
JJ760281.protmethod(en-us,AX.60).gif new Initializes a new instance of the RetailCommonWebAPI class.
JJ760281.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
JJ760281.pubmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::construct Initializes a new instance of the RetailCommonWebAPI class.
JJ760281.privmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::convertCLRObjectToContainer
JJ760281.pubmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::endBrowserSession Ends web-browser session of WeBrowser .Net managed control.
JJ760281.privmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::getList
JJ760281.privmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::getMap
JJ760281.pubmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::getMapFromJsonString Decodes JSON-encoded object tree represented as a string
JJ760281.pubmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::getMapFromQueryString Returns a Map of the key/value pairs of the supplied request query string.The query string is expected to have the following format: para1=value1&para2=value2 So, key/value pairs must be separated with '&' characters and keys and values must be separated with '=' character.
JJ760281.privmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::getMultipartFormData
JJ760281.privmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::readResponseData
JJ760281.privmethod(en-us,AX.60).gif JJ760281.static(en-us,AX.60).gif ::writeRequestData

Top

Inheritance Hierarchy

Object Class
  RetailCommonWebAPI Class