vba - How to send a post request via excel to a RESTful Web Service without using XML? -
here's deal: had excel table fulfills mysql table. made procedure in server side receives sheet, read , put on database. saddly sheet , data table doesn't have same structure, need use php object/script in server side manipulate it. have interface upload file (excel file), php program can read it...
...but boss job isn't make life easier, it? no! says lot of work have upload every excel file web interface. so, asked me make button in sheet might click after "job" done. replace web interface. but, system interface saled 1 day (well, it's plan!). so, can't role out web interface.
what i'm asking is: there's way send file (the sheet itself) in post method straight vba macro without using xml files , name each data i'm sending, form post?
so far, i've found tutorials or posts made me somewhere. of them talking xml, , have method receives http post (from form) , work. aiming reuse same method. vba script i'm able make request (not big deal) , post it. but, in server-side script, i'm expecting post come out form, calls field's name. don't seen able vba post. =/
here's answer... 2 first functions/methods define how send file web service. need file path , url service. has answered more expected. :d
Comments
Post a Comment