You are not logged in.
Announcement
Unanswered posts
|
Pages: 1
Hi,
I am trying to handle exceptions from a SOAP Call. Most of the time this process works great, but sometimes there is a malicious input. So there are 2 kind of exceptions I would like to handle:
- exception responses by the webservice
- technical error 0responses
In the screenshot below I have entered a non-SOAP xml file in the message to produce this error.
It seems that there is no valid XML generated by the component. How should I handle this?
Last edited by saukema (2011-10-27 11:50:20)
Offline
Hi
For the exception response, using tLogCatcher component to capture the exception and log them into file or database.
For the technical error, is there any message printed on console if there is 0 response?
Best regards
Shong
Offline
Hi, Thanks for your respons.
When the input in the XML looks like (for example):
<?xml version="1.0" encoding="UTF-8"?> <header> </header>
(invalid SOAP message, but correct XML Syntax)
The respons will be:
<Header /><env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>env:VersionMismatch</faultcode><faultstring>Version Mismatch</faultstring><faultactor>http://schemas.xmlsoap.org/soap/actor/next</faultactor></env:Fault>
(invalid XML)
I would like to have valid XML, so I can map the faultstring to an e-mail or whatever.
Version used is 4.23
Offline
Pages: 1