{"id":6491,"date":"2014-04-18T15:49:12","date_gmt":"2014-04-18T15:49:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/18\/php-fatal-error-uncaught-soapfault-exception-client-looks-like-we-got-no-xml-document-collection-of-common-programming-errors-2\/"},"modified":"2022-08-30T15:50:20","modified_gmt":"2022-08-30T15:50:20","slug":"php-fatal-error-uncaught-soapfault-exception-client-looks-like-we-got-no-xml-document-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/18\/php-fatal-error-uncaught-soapfault-exception-client-looks-like-we-got-no-xml-document-collection-of-common-programming-errors-2\/","title":{"rendered":"PHP Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML document-Collection of common programming errors"},"content":{"rendered":"<p>I have written simple api in php to connect with magento. This api works fine if I pass simple parameter like string,int to it.But if I am going to add array or some complex data type I got above exception.<\/p>\n<p>I think it is problem with wsdl file. I got wsdl file on site http:\/\/www.magentocommerce.com\/boards\/viewthread\/43818\/ What should I add to wsdl file so that it will allow me to pass complex data type as a parameter. I need to write one function that will accept array(key=&gt;value) pair and will return simple string message.I have seen wsdl of catalog for study but I don&#8217;t understand what should I put in complex tag. Please help me!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have written simple api in php to connect with magento. This api works fine if I pass simple parameter like string,int to it.But if I am going to add array or some complex data type I got above exception. I think it is problem with wsdl file. I got wsdl file on site http:\/\/www.magentocommerce.com\/boards\/viewthread\/43818\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,1],"tags":[],"class_list":["post-6491","post","type-post","status-publish","format-standard","hentry","category-magento","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6491"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6491\/revisions"}],"predecessor-version":[{"id":9036,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6491\/revisions\/9036"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}