Follow

Sending multiple faxes in a single request (advanced)

In the example request below the first fax message contains no overriding parameters so it will inherit the parameters set in the parent send request.

The second fax message has overrides for resolution and busy retries so these values will be used for that message only. With no overrides for the document or any other settings these will be inherited from the send request.

The third fax message has an override for the document so for this message that document will be used but all other settings will be inherited from the send request.

<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-2</SendRef>

            <FaxMessages>

                <FaxMessage>

                    <MessageRef>test-1-2-1</MessageRef>

                    <SendTo>61011111111</SendTo>

                </FaxMessage>

                <FaxMessage>

                    <MessageRef>test-1-2-2</MessageRef>

                    <SendTo>61022222222</SendTo>

                    <Resolution>fine</Resolution>

                    <BusyRetries>3</BusyRetries>

                </FaxMessage>

                <FaxMessage>

                    <MessageRef>test-1-2-3</MessageRef>

                    <SendTo>61033333333</SendTo>

                    <Documents>

                        <Document>

                            <FileName>another_test.txt</FileName>

                            <FileData>VGhpcyBpcyBhbm90aGVyIGZheA==</FileData>

                        </Document>

                    </Documents>

                </FaxMessage>

            </FaxMessages>

            <SendFrom>Test Fax</SendFrom>

            <Documents>

                <Document>

                    <FileName>test.txt</FileName>

                    <FileData>VGhpcyBpcyBhIGZheA==</FileData>

                </Document>

            </Documents>

            <Resolution>normal</Resolution>

            <Retries>0</Retries>

            <BusyRetries>2</BusyRetries>

            <ScheduledStartTime>2012-04-30T19:02:00+08:00</ScheduledStartTime>

        </v2:SendFaxRequest>

    </soapenv:Body>

</soapenv:Envelope>

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk