Hi.

I've built a SOAP Fetcher that works fine.

The source is a webservice that produces 154 records with a 100 chars each.

When I split the incoming data, by calling the webservice with a parameter for that effect, the fetcher works fine and data comes to drupal.
But when I omit that parameter, the getRaw() function is called twice, and on the second run the xml objet is empty and feed import fails.

I've spent a whole day searching the reason, and it seems that both source xml files have the same pattern.

Any ideas where I should look or debug more?

TIA

CommentFileSizeAuthor
#2 Archive.zip20.16 KBjrochate
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

twistor’s picture

Component: Generic entity processor » Code
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

I don't quite understand the problem, it would help to see some code.

1. Why is your fetcher building an XML object? That should be the job of the parser.
2. It shouldn't matter how many times getRaw is called. If it's using http_request_get() from feeds, the result is cached.

jrochate’s picture

FileSize
20.16 KB

I'm building a XML object since I need to transform the input, and generate html code.

But, I think that's not the question, because this problem happens in a situation where there is no code or arguments changed:

1. getRaw is called just once if I have less data from webservice

2. getRaw is called several times if I have more data

What is strange here, is that data is EXACTLY the same!! Just split or concatenated in both situations.

So, how can data change the behavior since the data is the same?

I send in attach files from f4.txt to f11.txt. With this files, getRaw is called only once.
I send in attach file full.txt which is the sum of all the previous files, and getRaw is called 3 or 4 times.

Isn't strange?
Thanks.

twistor’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)