Hi
I have a script which reads an Excel File and enters the details into a webservice Form, which makes a Post Request to a Webservice. This works fine and I get a second IE window opening up with the Webservice Reply. (as per attached picture)
I've not been able to find a way to use the Tags capability to capture this data... I only actually want the <Error> </Error> line
Anybody got any ideas about what I might need to do with this?
Trying to capture xml returned from POST
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Trying to capture xml returned from POST
Capture the entire source using IEGetAllText or similar and then use the XMLParse function.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: Trying to capture xml returned from POST
Hmmm... I tried that before I posted, and the IEGetAllText didn't seem to work either. That was what I'd first supposed. I was also sure I had the right screen/instance of IE, but I'll have another try when I get some free time in case I made some error.
In the end, I got round it by calling the webmethod directly using httpRequest, which avoids the form filling and the text ends up in the httpRequest return variable. (Luckily I was able to get the POST details for the webrequest to allow me to do this.)
Thanks for your help.
In the end, I got round it by calling the webmethod directly using httpRequest, which avoids the form filling and the text ends up in the httpRequest return variable. (Luckily I was able to get the POST details for the webrequest to allow me to do this.)
Thanks for your help.