The Webservice component is failing with Premature end of file when receiving an empty response that is stored into an XML file.
How can handle the above situation.
Any help on this.
What does your webservice component setting look like? Screenshots will be helpful for us to address your issue.
Please find the attached tWebservice component basic settings that I have used. Other settings are not been changed anything.
Context about the problem:
When there is data for the requested fields then the webservice response will be storing into XML file. But if there is no data then the webservice response will be empty and then fails with with Premature end of file to create an XML file. So Is there any way that can be handle this problem.
The Job output log is:
Exception in component tWebService_1
[FATAL]: prj_ncs_mod_ph3.ncs_fws_max_webservice_getphase1addressframemailingdata_test_0_1.NCS_FWS_MAX_Webservice_GetPhase1AddressFrameMailingData_Test - tWebService_1 Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.
org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.