SOAP XML Request upload 413 request entity too large

Hi Team,

I am attempting to submit a document upload via a SOAP XML Request to a carrier provider (FedEx) and I keep getting the response status:

413Request Entity Too Large
Time:546 ms
Size:432 B

I’ve spoken to the carrier directly and they have a log of the successful request but not the failed request which to me means it’s an issue somewhere on my end.

I’ve looked into how to increase the request entity in Postman all over the internet and I cannot for the life of me find any solutions.

I’ve attached an encrypted request and responses of both a failed and successful response so that you can see what I am trying to do.

What server does Postman make it’s request from? I thought originally it might be our server, but then I don’t see anything in Postman that would point to that.

We are using a Microsoft Azure Server if that is helpful at all.

I’ve also attached a screen shot of the headers to help with this issue also, and to answer your question I have tried enabling the other Content-Type and SOAPAction headers, I still get the same response.

Any tips would be much appreciated!

Failed ETD Request

POST - https://ws.fedex.com/web-services/uploadDocuments

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://fedex.com/ws/uploaddocument/v17">
    <soapenv:Header/>
    <soapenv:Body>
        <UploadDocumentsRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <WebAuthenticationDetail xmlns="http://fedex.com/ws/uploaddocument/v17">
                <ParentCredential>
                    <Key>encrypted</Key>
                    <Password>encrypted</Password>
                </ParentCredential>
                <UserCredential>
                    <Key>encrypted</Key>
                    <Password>encrypted</Password>
                </UserCredential>
            </WebAuthenticationDetail>
            <ClientDetail xmlns="http://fedex.com/ws/uploaddocument/v17">
                <AccountNumber>encrypted</AccountNumber>
                <MeterNumber>encrypted</MeterNumber>
                <Localization>
                    <LanguageCode>EN</LanguageCode>
                    <LocaleCode>EM</LocaleCode>
                </Localization>
            </ClientDetail>
            <TransactionDetail xmlns="http://fedex.com/ws/uploaddocument/v17">
                <CustomerTransactionId>UploadDocumentsRequest</CustomerTransactionId>
            </TransactionDetail>
            <Version xmlns="http://fedex.com/ws/uploaddocument/v17">
                <ServiceId>cdus</ServiceId>
                <Major>17</Major>
                <Intermediate>0</Intermediate>
                <Minor>0</Minor>
            </Version>
            <OriginCountryCode xmlns="http://fedex.com/ws/uploaddocument/v17">US</OriginCountryCode>
            <DestinationCountryCode xmlns="http://fedex.com/ws/uploaddocument/v17">CA</DestinationCountryCode>
            <Usage xmlns="http://fedex.com/ws/uploaddocument/v17">ELECTRONIC_TRADE_DOCUMENTS</Usage>
            <Documents xmlns="http://fedex.com/ws/uploaddocument/v17">
                <LineNumber>1</LineNumber>
                <DocumentType>COMMERCIAL_INVOICE</DocumentType>
                <FileName>test_Fedex.pdf</FileName>
                <DocumentContent>JVBERi0xLjcKJeLjz9...truncated</DocumentContent>
                <ExpirationDate>2021-05-31</ExpirationDate>
            </Documents>
        </UploadDocumentsRequest>
    </soapenv:Body>
</soapenv:Envelope>

Failed ETD Response

<HTML>

<HEAD>
	<TITLE>Weblogic Bridge Message</TITLE>
</HEAD>

<BODY>
	<H2>Failure of Web Server bridge:</H2>
	<P>
		<hr>errMsg
		<hr>
</BODY>

</HTML>
Successful ETD Request

POST - https://ws.fedex.com/web-services/uploadDocuments

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://fedex.com/ws/uploaddocument/v17">
    <soapenv:Header/>
    <soapenv:Body>
        <UploadDocumentsRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <WebAuthenticationDetail xmlns="http://fedex.com/ws/uploaddocument/v17">
                <ParentCredential>
                    <Key>encrypted</Key>
                    <Password>encrypted</Password>
                </ParentCredential>
                <UserCredential>
                    <Key>encrypted</Key>
                    <Password>encrypted</Password>
                </UserCredential>
            </WebAuthenticationDetail>
            <ClientDetail xmlns="http://fedex.com/ws/uploaddocument/v17">
                <AccountNumber>encrypted</AccountNumber>
                <MeterNumber>encrypted</MeterNumber>
                <Localization>
                    <LanguageCode>EN</LanguageCode>
                    <LocaleCode>EM</LocaleCode>
                </Localization>
            </ClientDetail>
            <TransactionDetail xmlns="http://fedex.com/ws/uploaddocument/v17">
                <CustomerTransactionId>UploadDocumentsRequest</CustomerTransactionId>
            </TransactionDetail>
            <Version xmlns="http://fedex.com/ws/uploaddocument/v17">
                <ServiceId>cdus</ServiceId>
                <Major>17</Major>
                <Intermediate>0</Intermediate>
                <Minor>0</Minor>
            </Version>
            <OriginCountryCode xmlns="http://fedex.com/ws/uploaddocument/v17">US</OriginCountryCode>
            <DestinationCountryCode xmlns="http://fedex.com/ws/uploaddocument/v17">CA</DestinationCountryCode>
            <Usage xmlns="http://fedex.com/ws/uploaddocument/v17">ELECTRONIC_TRADE_DOCUMENTS</Usage>
            <Documents xmlns="http://fedex.com/ws/uploaddocument/v17">
                <LineNumber>1</LineNumber>
                <DocumentType>COMMERCIAL_INVOICE</DocumentType>
                <FileName>document.pdf</FileName>
                <DocumentContent>JVBERi0xLjQKMSAwIG9ia...truncated</DocumentContent>
                <ExpirationDate>2021-05-31</ExpirationDate>
            </Documents>
        </UploadDocumentsRequest>
    </soapenv:Body>
</soapenv:Envelope>



Successful ETD Response

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
        <UploadDocumentsReply xmlns="http://fedex.com/ws/uploaddocument/v17">
            <HighestSeverity>SUCCESS</HighestSeverity>
            <Notifications>
                <Severity>SUCCESS</Severity>
                <Source>cdus</Source>
                <Code>0</Code>
                <Message>Success.</Message>
                <LocalizedMessage>Success.</LocalizedMessage>
            </Notifications>
            <TransactionDetail>
                <CustomerTransactionId>UploadDocumentsRequest</CustomerTransactionId>
            </TransactionDetail>
            <Version>
                <ServiceId>cdus</ServiceId>
                <Major>17</Major>
                <Intermediate>0</Intermediate>
                <Minor>0</Minor>
            </Version>
            <DocumentStatuses>
                <LineNumber>1</LineNumber>
                <DocumentProducer>CUSTOMER</DocumentProducer>
                <DocumentType>COMMERCIAL_INVOICE</DocumentType>
                <FileName>document.pdf</FileName>
                <Status>SUCCESS</Status>
                <Message>SUCCESS</Message>
                <DocumentId>090dbba17a79c90q</DocumentId>
            </DocumentStatuses>
        </UploadDocumentsReply>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>