This is an example of how to use
curl to test a classic ASP.net asmx service by hand. In this example, the service is located at
1. Go to the web service help page and copy the SOAP 1.2 example request.
2. Paste the example into your favorite text edit and save it as
3. Remove the header and fill in the placeholders
4. Open PowerShell at the folder containing your example. And use this command:
curl -H 'Content-Type: application/soap+xml; charset=utf-8' -d '@request.xml' http://localhost:52573/Pizza.asmx
The '@ syntax' used in
@request instructs curl to use the file contents as post data. You might have to use the
-u if you have authentication problems.