$url = "http://localhost:10626/InsertUser.svc/InsertData?P_Action='INSERTCOURSEINFO'&p_CourseID=2&p_Course_Descr='Description'&p_Employee_No=11&p_SiteId=11&DateCompleted='1/23/2013'";
$rsp = file_get_contents($url);
$rsp_obj = unserialize($rsp);
ali non stop dobijam
array(14) { [0]=> string(15) "HTTP/1.1 200 OK" [1]=> string(23) "Cache-Control: no-cache" [2]=> string(43) "Content-Type: application/xml;charset=utf-8" [3]=> string(25) "Server: Microsoft-IIS/8.0" [4]=> string(31) "X-Content-Type-Options: nosniff" [5]=> string(24) "DataServiceVersion: 1.0;" [6]=> string(27) "X-AspNet-Version: 4.0.30319" [7]=> string(115) "X-SourceFiles: =?UTF-8?B?RDpcV2ViU2l0ZXM3XFdDRlNlcnZpY2VzXFdlYkFwcGxpY2F0aW9uNVxJbnNlcnRVc2VyLnN2Y1xJbnNlcnREYXRh?=" [8]=> string(21) "X-Powered-By: ASP.NET" [9]=> string(30) "Access-Control-Allow-Origin: *" [10]=> string(42) "Access-Control-Allow-Headers: Content-Type" [11]=> string(35) "Date: Thu, 27 Feb 2014 21:26:35 GMT" [12]=> string(17) "Connection: close" [13]=> string(19) "Content-Length: 248" } NULL NULL
a trebalo bi da dobijem xml (ATOM)
<?xml version="1.0" encoding="utf-8"?><d:InsertData xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xml:space="preserve">Success custom message </d:InsertData>
ili JSON
{"d":{"InsertData":"Success custom message "}}
jel moze neko da mi pomogne sta da radim da dobijem bar jedan od ova dva
https://youtu.be/DLe358DPGXU