Four Stars

The Webservice component is failing with Premature end of file when receiving an empty response that is stored into an XML file.

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.

  • Data Integration
2 REPLIES
Moderator

Re: The Webservice component is failing with Premature end of file when receiving an empty response that is stored into an XML file.

Hi,

What does your webservice component setting look like? Screenshots will be helpful for us to address your issue.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: The Webservice component is failing with Premature end of file when receiving an empty response that is stored into an XML file.

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.