Thursday, May 21, 2009

Sending XML file to webservice

Nowadays, using webservice for connecting different based systems is very popular. If you have to send xml data file to a webservice you firstly have to create a Microsoft.XMLHttp COM object variable to put xml string and to specify webservice address.

static void sendXML(Args _args)
{
url webServiceUrl;
COM myXmlHttp;
str s = '\r\n';
;
s += '\r\n';
s += 'V1.0\r\n';
s += '\r\n';
s += '1\r\n';
s += '';
myXmlHttp = new COM('Microsoft.XMLHTTP');
webServiceUrl = "http://webservice/webservice.aspx";
myXmlHttp.open("GET",webServiceUrl,false);
myXmlHttp.send(s);
}

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...