Working with SOAP

The Zenfolio API supports SOAP 1.1, which is widely supported by various development tools on different platforms. SOAP 1.1 calls are available with the HTTP POST method.

Many modern development tools can generate client proxies for calling SOAP services and thus save you the hassle of generating and parsing SOAP messages manually. To generate a proxy, a tool has to process the WSDL service description we provide, which is the formal contract between a server and a client.

If you decide to prepare and send SOAP messages manually, below is an example of the SOAP request and response (in this case, for the LoadPhoto method):

POST /api/1.8/zfapi.asmx HTTP/1.1<cr><lf>
User-Agent: Acme PhotoEdit plugin for Zenfolio<cr><lf>
Content-Type: text/xml; charset=utf-8<cr><lf>
Content-Length: 223<cr><lf>
SOAPAction: ""<cr><lf>
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="">
    <LoadPhoto xmlns="">

HTTP/1.1 200 OK<cr><lf>
Content-Type: text/xml; charset=utf-8<cr><lf>
Content-Length: 869<cr><lf>
<?xml version="1.0" encoding="utf-8"?>
<Photo xmlns="">
  <Keywords />