Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
jun 11, 2015 11:55:12 AM com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0008: Bad Response; Forbidden
Exception in component tSOAP_1
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (403Forbidden
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown Source)
at org.talend.soap.SOAPUtil.extractContentAsDocument(SOAPUtil.java:227)
at sagedataquality.bpostsoap_0_1.BpostSoap.tSOAP_1Process(BpostSoap.java:467)
at sagedataquality.bpostsoap_0_1.BpostSoap.runJobInTOS(BpostSoap.java:778)
at sagedataquality.bpostsoap_0_1.BpostSoap.main(BpostSoap.java:635)
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (403Forbidden
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown Source)
... 5 more
CAUSE: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (403Forbidden
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown Source)
at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown Source)
"<soapenv:Envelope xmlns:soapenv=\"\" xmlns:v001=\"\">
<soapenv:Header/>
<soapenv:Body>
<msg:ValidateAddressesRequest xmlns:msg=\"\">
<msg:AddressToValidateList>
<msg:AddressToValidate id=\"0595.848.135\">
<msg:PostalAddress>
<msg:DeliveryPointLocation>
<msg:StructuredDeliveryPointLocation>
<msg:StreetName>A DEFUISiSEAUX</msg:StreetName>
<msg:StreetNumber>23</msg:StreetNumber>
<msg:BoxNumber></msg:BoxNumber>
</msg:StructuredDeliveryPointLocation>
</msg:DeliveryPointLocation>
<msg:PostalCodeMunicipality>
<msg:StructuredPostalCodeMunicipality>
<msg:PostalCode>4340</msg:PostalCode>
<msg:MunicipalityName>Awans</msg:MunicipalityName>
</msg:StructuredPostalCodeMunicipality>
</msg:PostalCodeMunicipality>
<msg:CountryName>BE</msg:CountryName>
</msg:PostalAddress>
</msg:AddressToValidate>
</msg:AddressToValidateList>
<msg:ValidateAddressOptions>
<msg:IncludeFormatting>true</msg:IncludeFormatting>
<msg:IncludeSuggestions>true</msg:IncludeSuggestions>
<msg:IncludeSubmittedAddress>false</msg:IncludeSubmittedAddress>
</msg:ValidateAddressOptions>
</msg:ValidateAddressesRequest>
</soapenv:Body>
</soapenv:Envelope>"
""
""
You are not setting the endpoint or soap action, or did you omit to put those details in? Also, I have seen a bad response error generated from setting the wrong SOAP Version.