Hello, I'm trying to consume a web service from ASP classic. I searched a lot but i've found only a lot o variant way to do this and noone is working or fit to my question. I have a web service at http://172.16.4.60:8090/WEB-TT/services/publicEvent?method=send I have a working script in PHP.... but I need to use the web service from ASP (vbscript). The "send" method (function, web service, something else?) must receive some parameters (I think) in XML format, like this: <?xml version="1.0" encoding="UTF-8"?> <data xmlns=""http://localhost:8090/WEB-TT" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://http://localhost:8090/WEB-TT schema.xsd" > <id>1289312908</id> <applicativo>la mia applicazione</applicativo> <data>08/03/2007</data> <note>Test di consumo del Web Service</note> <id_rif>4234324</id_rif> <tipo>APERTURA</tipo> <nome>TDgroup</nome> </data> Can you explain me what ASP code is needed to execute that web service function? I'm working on it from this morning, but I found nothing REALLY useful.... Thank you, guys.
Download the XML sdk that comes with msxml core services and look at the msxml2.XmlHttp.x.0 class. You should try to use version 6 but version 3 will probably suffice. There are plenty of examples of using the POST option in the Send() method to pass XML to a web service. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name "Pictor" wrote in message news:1173368792.987231.47930@c51g2000cwc.googlegroups.com... > Hello, > > I'm trying to consume a web service from ASP classic. > > I searched a lot but i've found only a lot o variant way to do this > and noone is working or fit to my question. > > I have a web service at > > http://172.16.4.60:8090/WEB-TT/services/publicEvent?method=send > > > I have a working script in PHP.... but I need to use the web service > from ASP (vbscript). > > The "send" method (function, web service, something else?) must > receive some parameters (I think) in XML format, like this: > > <?xml version="1.0" encoding="UTF-8"?> > <data > xmlns=""http://localhost:8090/WEB-TT" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://http://localhost:8090/WEB-TT schema.xsd" >> > <id>1289312908</id> > <applicativo>la mia applicazione</applicativo> > <data>08/03/2007</data> > <note>Test di consumo del Web Service</note> > <id_rif>4234324</id_rif> > <tipo>APERTURA</tipo> > <nome>TDgroup</nome> > </data> > > > Can you explain me what ASP code is needed to execute that web service > function? > > I'm working on it from this morning, but I found nothing REALLY > useful.... > > Thank you, guys. >