Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
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.
Hi,
What does your webservice component setting look like? Screenshots will be helpful for us to address your issue.
Best regards
Sabrina
Hello Sabina,
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:
[statistics] connected
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.
Hi Sabrina,
Getting the same error messahe while parsing the xml.Please do the needful.
Hi,
I've exactly the same problem here.
tHttpRequest_1 java.io.IOException: Premature EOF
Is there any solution yet ?