Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | Archive.zip | 20.16 KB | jrochate |
Comments
Comment #1
twistor CreditAttribution: twistor commentedI 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.
Comment #2
jrochate CreditAttribution: jrochate commentedI'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.
Comment #3
twistor CreditAttribution: twistor commented