The xAssets API - Method : WebSaveXML


Save XML data into the database

Typically an API caller would retrieve data from a get function such as AssetXML, then load the xml string into an XML document object, then edit the data, and finally save the data using this method


Parameter : sHash

sHash : The hash returned from the logon function

Parameter : sUserName

sUserName : The username of the logged on user

Parameter : sDatabase

sDatabase : The database name of your instance

Parameter : sIP

sIP : Your IP address. This must match your web facing IP address

Parameter : sXML

The XML to be saved

Parameter : bIgnoreWarnings

bIgnoreWarnings : Normally this is set to false. If true, warning triggers will be ignored and the data will either save or raise an error

Parameter : sDNS

sDNS : The DNS path of your instance

Parameter : lPort

lPort : The port of your instance (normally 443)

Parameter : sScheme

sScheme : This is always "https"

Parameter : sNonce

sNonce : This must be the nonce passed to you by the logon function

Parameter : datNonce

datNonce : This must be the nonce date passed to you by the logon function


Returns an empty string if the save was successful. Otherwise it returns an error message

Syntax and Examples

Restful syntax with Microsoft Visual Basic

Example 1

There is no restful call for this SOAP Interface operation - use a SOAP method instead

SOAP Syntax with Microsoft Visual Basic

Example 1

    Return w.WebSaveXML(sHash, sUserName, sDatabase, sIP, sXML, bIgnoreWarnings, sDNS, lPort, sScheme, sNonce, datNonce)

AMSX Syntax

Example 1

AMSX is an internal language and does not need to access web services to execute

XCS Syntax

Example 1

XCS access the server through a web browser. API calls can be executed directly from API Commands using Server.API, Server.Save and Server.SaveSpecial

Download the Visual Studio API Samples Project

Return to the API Index Page

© xAssets 2024 All rights reserved.