SOAP PHP problems with response
as a few days later I am having problems with my developed php soap search interface (php soap extension, NOT nusoap) with PubMed literary service using their eutils wsdl service (Entrez Utils).
Before I got into trouble, I used the returned array from the low level function __soapcall (), it worked well, fetching some information for my fuzzy agent module, converting it to xml and passing it to my xml / xsl templating engine.
Last week, for some reason, I get exceptions like "it looks like we don't have an xml document" from the __soapcall () function with some search terms. So I decided to include exceptions and trace options in the SoapClient call and started using the low level __getLastResponse () function to see what was going on. As a result, I get fewer errors, but still have problems with certain searches. The returned xml string is stripped and therefore incomplete, it looks like the returned string is large (sometimes over 180kb). I cannot process the result any more because the DomDocument functions throw exceptions with incomplete and unvalid xml response. I have also tried to set the options for compression (SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP) without any success because I thoughtthat it could also be an exchange of data returned as a response.
Well, I have no idea how to fix this problem, it is now the third day. I have reduced the number of search results to 10 results per query (previously 20 results), the behavior is improving but there are still errors here and there because the xml response is truncated. My main question is what limits the length of the __getLastResponse () string. I have not updated or upgraded any package, and have not made programmatic changes in the code until problems arise. My development server as well as production server (literatur.ucb.de) is having the same problems.
I have sent Pubmed for help or information, if they made changes to eutils, there is still no answer, also no change is reported on their home page.
Any hints as to what else I might try to return Pubmed Soap requests again, please let me know. I appreciate any hint.
Platform (development) is Ubuntu Linux mit PHP 5.2.4-2ubuntu5.10.
a source to share
No one has answered this question yet
Check out similar questions: