XML HTTP Post using VBA

avinash11

New Member
Joined
Feb 19, 2016
Messages
11
Hello Experts,I have a query, i am currently trying to do an automation with XML in excel sheet.I am trying to login to a website by using the below XML query. The website has four important fields which gets authenticated by verifying all four fields i.e., Usename, Password, Type and Empcode
Code:
[list]
[*]<request>
[*]<apprec>
[*]  <Username>XYZ</Username>
[*]</Password>ABC</Password>
[*]  </apprec>
[*]  <identification>
[*]    <type>Finance</type>
[*]    <empcode>1000</empcode>
[*]    <duration> 
[*]     <time>1200</time>
[*]    </duration>  </identification>
[*]</apprec>
[/list]
Currently what i am looking for is - i give the URL info in one of the cell like A1, Username in B1, Password in C1, Type in D1 and empcode in E1. It should post the above xml via https in a way that user should be allowed to login. Is it possible?The original website has the below code in the form
Code:
<FORM action="https://10.10.10.1/emplogin/login" id="xmlform" method="post">
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,215,692
Messages
6,126,227
Members
449,303
Latest member
grantrob

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top