Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Calling Web Services Using SOAP

Reply
 
Old 04-29-2009   #1 (permalink)
Eef


 
 

Calling Web Services Using SOAP

I have a lot of XML testfiles that can be sent to a webservice by using a
VBScript. This script wraps the XML in an SOAP envelope and sends it to the
webservice.

I want to do migrate my VBScripts to PowerShell but can't get it to work.
I've searched the Internet for examples, but without success. I don't want
(need?) to generate Proxies (the most examples I found) but just want to send
my XML by using SOAP messages.

Any help, suggestions or examples are very welcome!

My System SpecsSystem Spec
Old 04-29-2009   #2 (permalink)
Bob Landau


 
 

RE: Calling Web Services Using SOAP

Use this as your search target "SOAP Powershell"

One of the first two hits I came up contained two different methods

1) Requires Visaul Studio but very easy

http://keithhill.spaces.live.com/blo...3A97!512.entry

2) BYOP (build your own proxy) more difficult but much of the work is done
for you for at least for simple web service proxies

http://www.nivot.org/2007/08/07/NewI...owerShell.aspx

I've not tried either however both of these people are very accomplished
Powershell programmers.

Having said that if you do have Visual Studio with all the features it has
to consume, code, debug and use web services I would take that approach.

bob


"Eef" wrote:
Quote:

> I have a lot of XML testfiles that can be sent to a webservice by using a
> VBScript. This script wraps the XML in an SOAP envelope and sends it to the
> webservice.
>
> I want to do migrate my VBScripts to PowerShell but can't get it to work.
> I've searched the Internet for examples, but without success. I don't want
> (need?) to generate Proxies (the most examples I found) but just want to send
> my XML by using SOAP messages.
>
> Any help, suggestions or examples are very welcome!
My System SpecsSystem Spec
Old 04-29-2009   #3 (permalink)
PaulChavez


 
 

RE: Calling Web Services Using SOAP

If you're setting up the SOAP messages yourself, you could just use
System.Net.Webclient to send them to the service.

Paul


"Eef" wrote:
Quote:

> I have a lot of XML testfiles that can be sent to a webservice by using a
> VBScript. This script wraps the XML in an SOAP envelope and sends it to the
> webservice.
>
> I want to do migrate my VBScripts to PowerShell but can't get it to work.
> I've searched the Internet for examples, but without success. I don't want
> (need?) to generate Proxies (the most examples I found) but just want to send
> my XML by using SOAP messages.
>
> Any help, suggestions or examples are very welcome!
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
SOAP workaround Vista General
calling Sharepoint services using powershell PowerShell
SOAP webclient PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46