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:
Post a Comment