
Many organizations still rely on Windows Communication Foundation (WCF) services, which are typically exposed through endpoints ending in .svc. These services power critical internal systems, legacy integrations, and enterprise applications across industries like finance, healthcare, and logistics. While developers often associate Postman with modern REST APIs, it is perfectly capable of testing SVC web services, including SOAP-based endpoints. Knowing how to test an SVC web service in Postman lets you validate legacy integrations without installing specialized tools. This guide explains how WCF services work, how to locate their WSDL, how to build SOAP requests with the correct headers, and how to write tests that validate XML responses.
How AAMAX.CO Can Help You Modernize and Integrate Web Services
Legacy services often need to coexist with modern applications, and bridging the two takes careful engineering. AAMAX.CO is a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. Their web application development team builds integrations between legacy SOAP services and modern platforms, and can help modernize older systems into maintainable APIs while keeping existing business processes running smoothly.
Understand SVC Services and Their Bindings
A .svc file is the endpoint of a WCF service hosted on IIS. WCF supports multiple bindings, which determine how clients communicate. The most common include basicHttpBinding, which uses SOAP 1.1, wsHttpBinding, which uses SOAP 1.2 with additional WS standards, and webHttpBinding, which exposes REST-style endpoints returning XML or JSON. Before testing, find out which binding the service uses, since it determines the request format, content type, and headers you need in Postman. The service's configuration or documentation usually provides this information, and the WSDL reveals much of it as well.
Locate the WSDL
The Web Services Description Language document describes every operation, its parameters, and its response format. For most WCF services, you can view it by opening the service URL in a browser and appending the query string wsdl, or singleWsdl for a consolidated version. Look for the following details:
- Service address: The endpoint URL where requests should be sent.
- Operations: The available methods, such as GetCustomer or CreateOrder.
- SOAPAction values: The action URI associated with each operation, required in SOAP 1.1 requests.
- Namespaces and types: The XML namespaces and data structures expected in the request body.
Postman can also import WSDL files directly in recent versions, automatically generating requests for each operation, which saves considerable time.
Build a SOAP 1.1 Request in Postman
For a basicHttpBinding service, create a new request and set the method to POST, since SOAP requests are almost always sent via POST. Enter the service URL. In the Headers tab, add Content-Type with the value text/xml; charset=utf-8, and add a SOAPAction header containing the exact action URI from the WSDL, usually wrapped in quotation marks. In the Body tab, choose raw and select XML. Then write a SOAP envelope containing a Body element, inside which you place the operation element with the correct namespace and its parameters. Click Send, and the service should return an XML envelope with the operation's response.
Build a SOAP 1.2 Request
Services using wsHttpBinding or customBinding with SOAP 1.2 require slightly different settings. Set the Content-Type header to application/soap+xml; charset=utf-8, and include the action as a parameter inside the content type rather than in a separate SOAPAction header. The envelope must use the SOAP 1.2 namespace. Some wsHttpBinding services also require WS-Addressing headers in the envelope, such as Action and To elements, and may enforce message-level security. If you receive errors about content type mismatches or missing addressing headers, revisit the binding configuration.
Test REST-Enabled SVC Endpoints
If the WCF service uses webHttpBinding, testing is much simpler. These endpoints behave like typical REST APIs, with URI templates such as a service path followed by an operation name and parameters. Use the appropriate HTTP method, set Content-Type to application/json or application/xml depending on the service, and send requests exactly as you would with any REST API. Check the service's help page, often available by appending help to the endpoint, which lists available operations and formats.
Handle Authentication
Enterprise SVC services frequently require authentication. For Basic authentication, use Postman's Authorization tab. For Windows authentication, Postman supports NTLM in its authorization options. Services using WS-Security may require a UsernameToken in the SOAP header, which you can add directly into the envelope. Certificate-based security can be configured through Postman's client certificate settings. Always test against a non-production environment when possible, and store credentials in environment variables rather than directly in requests.
Write Tests for XML Responses
Postman's scripting tools work with XML as well as JSON. In the post-response script, check that the status code is 200 and that the response time is acceptable. To validate content, convert the XML response into a JavaScript object using the built-in xml2Json function, then assert that specific elements exist and contain expected values. You can also confirm that responses do not contain a SOAP Fault element, which indicates an error. Save values such as IDs into variables to chain requests, just as you would with REST APIs.
Troubleshoot Common Errors
A 415 Unsupported Media Type error usually means the Content-Type does not match the binding. A 500 error with a fault message often indicates an incorrect SOAPAction, wrong namespace, or malformed envelope. ActionNotSupported faults point to a mismatched action value. Comparing your request with a sample generated by the WSDL import or a tool like SoapUI quickly reveals discrepancies.
Conclusion
Learning how to test an SVC web service in Postman lets you work with legacy WCF services using the same familiar tool you use for modern APIs. By identifying the binding, reading the WSDL, building correct SOAP envelopes and headers, handling authentication, and writing assertions for XML responses, you can test enterprise services efficiently and integrate them confidently into your broader testing workflow.
