In the example below we are sending multiple documents in a single fax transmission. These documents will be concatenated together, in the order specified, into a single transmissible fax message before being sent to the destination.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:v2="https://api.monopond.com/fax/soap/v2">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password>password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<v2:SendFaxRequest>
<BroadcastRef>test-1</BroadcastRef>
<SendRef>test-1-1</SendRef>
<FaxMessages>
<FaxMessage>
<MessageRef>test-1-1-1</MessageRef>
<SendTo>61011111111</SendTo>
<SendFrom>Test Fax</SendFrom>
<Documents>
<Document>
<FileName>test.txt</FileName>
<FileData>VGhpcyBpcyBhIGZheA==</FileData>
<Order>0</Order>
</Document>
<Document>
<FileName>another_test.txt</FileName>
<FileData>VGhpcyBpcyBhbm90aGVyIGZheA==</FileData>
<Order>1</Order>
</Document>
</Documents>
<Resolution>normal</Resolution>
<Retries>0</Retries>
<BusyRetries>2</BusyRetries>
</FaxMessage>
</FaxMessages>
</v2:SendFaxRequest>
</soapenv:Body>
</soapenv:Envelope>
0 Comments