We help IT Professionals succeed at work.
Get Started

Use Powershell to call web services

Leon Taljaard
Last Modified: 2015-10-08
Hi Guys,

I have to web services that i need to call within PowerShell, my problem is that i need to call the first one to authenticate and keep the session open and then i can call or open my second service to get the xml response.

So the first one kind of looks like this

Then after I have entered the required in the first and clicked "Invoke" and while keeping the same web page/session open i can then open the second asmx/wsdl as below

Then after i type the required parameters in an click "Invoke" i get my response payload which is what i need, now the problem is that i need to do this within powershell so that i can automate the authentication and keep the session open and so that i can do my second request and get the response xml payload so that i can check the result.

Please can someone help me accomplish this with Powershell or perhaps C# ?


Watch Question
"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
This problem has been solved!
Unlock 2 Answers and 28 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE