Powershell and SOAP web services with header

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 4 months ago.

  • Author
    Posts
  • #5964

    by alextt at 2012-11-22 02:22:40

    Hi,

    This is my first post and here is my problem. I'm trying to download file from SOAP web service usign Powershell scripts but I'm not sure if that is possible. Would that work with System.Net.WebClient or Invoke-WebRequest? Any help is appriciated. Below is the example of header I need to pass to service.

    https://208.79.10.10:443/processXML.slap

    < ?xml version=\"1.0\" encoding=\"utf-8\"?>


    myusermypassword

    by MattG at 2012-11-22 05:57:22

    If what you're trying to do is interact with a REST-based web service, I think what you may be looking for is Invoke-RestMethod.

You must be logged in to reply to this topic.