- Jun 2, 2009
- 488
- 13
- 81
Alright, continuing my barrage of newbish questions...
I'm trying to pull a heap of data from a distributor's web service. I can access through the browser, but with 30k items and 55 attributes each, the resulting XML file makes both Chrome and IE choke.
Here's the sample GET code:
GET /path/Inventory.asmx/Resource?CustomerNumber=string&UserName=string&Password=string&LastUpdate=string&LastItem=string&Source=string HTTP/1.1
Host: sub.domain.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://sub.domain.com/path/Inventory.asmx">string</string>
--------
I understand that I can run this somehow through PowerShell as per http://stackoverflow.com/questions/13935218/how-to-use-http-get-in-powershell but had some trouble adapting it to fit my needs, and I'd imagine there's an easier way to do it.
All I really need is for it to dump that huge XML file on my desktop instead of into my browser. I had a couple years of comp sci back in the day but have no web programming skills beyond HTML/CSS.
Batch script or Python maybe? I'm a complete newbie at both (my comp sci was in C and Java) but need to learn Python anyway...
Thanks guys!
I'm trying to pull a heap of data from a distributor's web service. I can access through the browser, but with 30k items and 55 attributes each, the resulting XML file makes both Chrome and IE choke.
Here's the sample GET code:
GET /path/Inventory.asmx/Resource?CustomerNumber=string&UserName=string&Password=string&LastUpdate=string&LastItem=string&Source=string HTTP/1.1
Host: sub.domain.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://sub.domain.com/path/Inventory.asmx">string</string>
--------
I understand that I can run this somehow through PowerShell as per http://stackoverflow.com/questions/13935218/how-to-use-http-get-in-powershell but had some trouble adapting it to fit my needs, and I'd imagine there's an easier way to do it.
All I really need is for it to dump that huge XML file on my desktop instead of into my browser. I had a couple years of comp sci back in the day but have no web programming skills beyond HTML/CSS.
Batch script or Python maybe? I'm a complete newbie at both (my comp sci was in C and Java) but need to learn Python anyway...
Thanks guys!