Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling WebServices from DOS
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
00569045
Message ID:
00569232
Views:
28
>Hi!
>
>Thanks for the reply.
>
>I understand what you are saying here but my question is can we or can we not call a WebService from the DOS prompt/command line.
>
>e.g. "WebServiceHandler.exe WebServiceName AnyParameters" and then get the result in a file or echoed to the screen or something like that.
>
>Thanks again.
>
>Sarosh
>
>
>>>Is it possible to call a WebService from the DOS command line / prompt or from a DOS App.?
>>
>>If you have the Windows Scripting Host installed, as well as the SOAP toolkit, you could run VBS scripts to make those calls. There should be a host of VBS examples that you could find with a little digging at http://msdn.microsoft.com.

You can't call a web service directly from a command line from a DOS app. But, you can call a standard VFP exe from the command line so long as you are not expecting to wait for the result. You can read in parameters passed at the command line to a VFP exe in the main prg, and call the web service that you have set up. You would have to make the DOS app call the exe, then wait for a file to be created or something like that. As soon as you call a windows exe from DOS, it will run off in a seperate process.

Bill
Bill Mittenzwey
Previous
Reply
Map
View

Click here to load this message in the networking platform