12 years ago
Invalid XML Document Received Error
This is the Error from Web Logic Server to which I'm requesting
<env:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<env:Fault xmlns:fault="http://www.auspost.com.au/elms">
<faultcode>fault:528</faultcode>
<faultstring>Invalid XML document received.</faultstring>
<faultactor>MailingStatementService</faultactor>
</env:Fault>
</env:Body>
</env:Envelope>
IN BLACK is the request that I'm submitting to the server. ( What is between the <MailingStatement> Tags )
The XML is a working sample the host site ( Australia Post ) told me to use to test.
IN BLUE is THE RAW XML generated by SOAP UI.
This is the Post:
POST https://exttrnapps.npe.auspost.com.au/e ... rvice?WSDL HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Authorization: Basic VFJBSU4gU09BUDpwYXNzd29yZA==
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:elms="http://www.auspost.com.au/elms">
<soapenv:Header/>
<soapenv:Body>
<elms:CreateMailingStatement soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<mailingStatementXml xsi:type="xsd:string">
<MailingStatement xmlns="http://www.auspost.com.au/elms/soap">
<LodgementDetails>
<WorkCentreCode>352575</WorkCentreCode>
<CashPayment>false</CashPayment>
</LodgementDetails>
<OriginatorDetails>
<AccountNumber>1200</AccountNumber>
<Name>TEST</Name>
</OriginatorDetails>
<JobDetails />
<Products>
<Product>
<LineItemID>001</LineItemID>
<ProductCode>B74</ProductCode>
<ContractCode>Full Rate</ContractCode>
<PriceFactors>
<PriceFactor>
<PriceFactorKey>SV001D</PriceFactorKey>
<PriceFactorKeyDescription>Registered Services</PriceFactorKeyDescription>
<PriceFactorValue>RPI</PriceFactorValue>
<PriceFactorValueDescription>Reg Pst Imprint</PriceFactorValueDescription>
</PriceFactor>
</PriceFactors>
<LineDescription>Domestic Registered Post</LineDescription>
<ProductQuantity>50</ProductQuantity>
</Product>
</Products>
</MailingStatement>
</mailingStatementXml>
</elms:CreateMailingStatement>
</soapenv:Body>
</soapenv:Envelope>
For some reason they told me the server is not getting the Mailing statement ( the lines in bold)
which is the actual xml submission. They get BLANKS..
Any help is appreciated.
THANKS.
<env:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<env:Fault xmlns:fault="http://www.auspost.com.au/elms">
<faultcode>fault:528</faultcode>
<faultstring>Invalid XML document received.</faultstring>
<faultactor>MailingStatementService</faultactor>
</env:Fault>
</env:Body>
</env:Envelope>
IN BLACK is the request that I'm submitting to the server. ( What is between the <MailingStatement> Tags )
The XML is a working sample the host site ( Australia Post ) told me to use to test.
IN BLUE is THE RAW XML generated by SOAP UI.
This is the Post:
POST https://exttrnapps.npe.auspost.com.au/e ... rvice?WSDL HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Authorization: Basic VFJBSU4gU09BUDpwYXNzd29yZA==
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:elms="http://www.auspost.com.au/elms">
<soapenv:Header/>
<soapenv:Body>
<elms:CreateMailingStatement soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<mailingStatementXml xsi:type="xsd:string">
<MailingStatement xmlns="http://www.auspost.com.au/elms/soap">
<LodgementDetails>
<WorkCentreCode>352575</WorkCentreCode>
<CashPayment>false</CashPayment>
</LodgementDetails>
<OriginatorDetails>
<AccountNumber>1200</AccountNumber>
<Name>TEST</Name>
</OriginatorDetails>
<JobDetails />
<Products>
<Product>
<LineItemID>001</LineItemID>
<ProductCode>B74</ProductCode>
<ContractCode>Full Rate</ContractCode>
<PriceFactors>
<PriceFactor>
<PriceFactorKey>SV001D</PriceFactorKey>
<PriceFactorKeyDescription>Registered Services</PriceFactorKeyDescription>
<PriceFactorValue>RPI</PriceFactorValue>
<PriceFactorValueDescription>Reg Pst Imprint</PriceFactorValueDescription>
</PriceFactor>
</PriceFactors>
<LineDescription>Domestic Registered Post</LineDescription>
<ProductQuantity>50</ProductQuantity>
</Product>
</Products>
</MailingStatement>
</mailingStatementXml>
</elms:CreateMailingStatement>
</soapenv:Body>
</soapenv:Envelope>
For some reason they told me the server is not getting the Mailing statement ( the lines in bold)
which is the actual xml submission. They get BLANKS..
Any help is appreciated.
THANKS.