brummie Posted October 3, 2008 Share Posted October 3, 2008 Hi, newbie here. Hope you are all alright? I am getting an XML response from a web service that starts off as below.... Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" Content-Transfer-Encoding: 8bit Content-ID: <[email protected]> <soap:Envelope............................. I can tell this from the __lastrequest function.. However PHP is throwing an error and not regonising it - I am getting Looks like there is no XML Document. Fairly frustrating because when I do print out lastrequest I can see all the info there, but I can't get at it cause a soapfault has thrown. Is there any known problem with the above header and PHP soap? I'm not new to PHP but new to web services and feeling very lost. Any help, info, pointers to websites that may help would be really gratefully accepted Thanks, vickie Link to comment https://forums.phpfreaks.com/topic/126902-php-soap-issue-looks-like-there-is-no-xml-document-applicationxopxml/ Share on other sites More sharing options...
aschk Posted October 3, 2008 Share Posted October 3, 2008 In particular what error is PHP throwing you? The content headers look ok, but is the soap request xml formed correctly? Link to comment https://forums.phpfreaks.com/topic/126902-php-soap-issue-looks-like-there-is-no-xml-document-applicationxopxml/#findComment-656380 Share on other sites More sharing options...
brummie Posted October 3, 2008 Author Share Posted October 3, 2008 Hi. This is the error "error message:Object id #8looks like we got no XML document" This is what I am getting back:- ------=_Part_654_6717175.1223042182217 Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" Content-Transfer-Encoding: 8bit Content-ID: <[email protected]> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><getForumMessageResponse xmlns="http://jivesoftware.com/webservices"><out xmlns="http://jivesoftware.com/webservices"><ID xmlns="http://webservices.community.jivesoftware.com">1958</ID><anonymous xmlns="http://webservices.community.jivesoftware.com">false</anonymous><attachmentCount xmlns="http://webservices.community.jivesoftware.com">0</attachmentCount><body xmlns="http://webservices.community.jivesoftware.com">I think this test discussion is really good and I wanted to be part of it</body><communityID xmlns="http://webservices.community.jivesoftware.com">2059</communityID><communityIndex xmlns="http://webservices.community.jivesoftware.com">1</communityIndex><creationDate xmlns="http://webservices.community.jivesoftware.com">2008-09-18T09:46:48.349-04:00</creationDate><forumThreadID xmlns="http://webservices.community.jivesoftware.com">1406</forumThreadID><imageCount xmlns="http://webservices.community.jivesoftware.com">0</imageCount><moderationValue xmlns="http://webservices.community.jivesoftware.com">1</moderationValue><modificationDate xmlns="http://webservices.community.jivesoftware.com">2008-09-18T09:46:48.349-04:00</modificationDate><parentMessageID xmlns="http://webservices.community.jivesoftware.com">1957</parentMessageID><subject xmlns="http://webservices.community.jivesoftware.com">Re: This is a test thread in ET</subject><unfilteredBody xmlns="http://webservices.community.jivesoftware.com">I think this test discussion is really good and I wanted to be part of it</unfilteredBody><unfilteredSubject xmlns="http://webservices.community.jivesoftware.com">Re: This is a test thread in ET</unfilteredSubject><user xmlns="http://webservices.community.jivesoftware.com"><ID>2030</ID><creationDate>2007-05-24T04:02:43.631-04:00</creationDate><email>[email protected]</email><emailVisible>true</emailVisible><enabled>true</enabled><modificationDate>2008-09-18T09:34:16.815-04:00</modificationDate><name>vickie pring</name><nameVisible>true</nameVisible><password xsi:nil="true" /><username>vickiep</username></user></out></getForumMessageResponse></soap:Body></soap:Envelope> ------=_Part_654_6717175.1223042182217-- Link to comment https://forums.phpfreaks.com/topic/126902-php-soap-issue-looks-like-there-is-no-xml-document-applicationxopxml/#findComment-656382 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.