Consuming WCF Service with PHP -
i consume wcf service (created asp .net) php. not develop php know enough write code examples or references. in end - it's other language know. not heavily experienced web services created clients in java , asp before. so, need find simple solution in php consume service.svc file. tried soap extensions not recognize "definitions" in xml because structure so:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?><feed xml:base="http://site.com/service.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/atom"><title type="text">title text</title><id>http://site.com/service.svc/buildings</id><updated>2011-02-21t00:50:19z</updated><link rel="self" title="buildings" href="buildings" /><entry><id>http://site.com/service.svc/buildings(1234)</id><title type="text"></title><updated>2011-02-21t00:50:19z</updated><author><name /></author><link rel="edit" title="building" href="buildings(1234)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/townhouses" type="application/atom+xml;type=feed" title="townhouses" href="buildings(1234)/townhouses" /><category term="sitemodel.building" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><content type="application/xml"><m:properties><d:buildingid m:type="edm.int32">1234</d:buildingid><d:buildingname></d:buildingname><d:address>123 main street</d:address> etc... so it's atom file. also, parser related question. how handle "links" each item? item may have links "files" i.e. images , need retrieved each item. suspect need parser make request main file , make necessary requests images? please explain how handle or recommend existing solutions can ease work.
thank you.
zend framework's atom feed reader parse feed easily.
http://framework.zend.com/manual/en/zend.feed.consuming-atom.html
This comment has been removed by the author.
ReplyDelete