# SOAP Fault: faultcode SOAP-ENV:Client / SOAP-ENV:Server — Server was unable to process request

**Code:** `SOAP-ENV:Fault` · **Category:** API · **Seen on:** SOAP

A SOAP service returned a Fault element instead of a normal response.

## Meaning

`Client` means the request was wrong (bad XML, missing parameter, auth); `Server` means the service failed internally. The `faultstring` and `detail` hold the real reason.

## Common causes

- Malformed or invalid request XML
- Wrong SOAPAction or namespace
- Authentication header missing (WS-Security)
- Service-side exception

## Quick fix

1. Print the whole Fault including `detail`
2. Validate the request against the WSDL
3. Compare with a working request from SoapUI

## Detailed fix by platform

### PHP

1. `try { $client->call(...); } catch (SoapFault $e) { error_log($e->faultcode.' '.$e->faultstring); }`

## How to diagnose

1. **Code** — Client or Server?
2. **Detail** — faultstring text?
3. **WSDL** — Request valid?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/api/soap-fault-client-server)
