?
Solved

using PHP to create an Odata Service

Posted on 2012-03-18
2
Medium Priority
?
844 Views
Last Modified: 2012-03-18
Hi,

Has anyone created an Odata service using PHP. I have a web-service URL that outputs xml, I want to transform that into an Odata service.

This might seem a little convoluted but the output is coming from an application and it currently does not support Odata.

So I want to use PHP to convert the XML output into an Odata service

thanks
-anshu
0
Comment
Question by:anshuma
2 Comments
 
LVL 84

Accepted Solution

by:
Dave Baldwin earned 1000 total points
ID: 37734209
There is OData SDK for PHP on this page: http://www.odata.org/developers/odata-sdk
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 1000 total points
ID: 37734666
PHP generates data strings from information on the server.  The strings can be anything.   Usually they are HTML or XML, but there is nothing to prevent PHP from generating any other kind of data strings.  

Looking at the OData information shown in DaveBaldwin's link, it looks to me like OData is sort of like SOAP, only worse.  The WWW is littered with the rotting husks of failed SOAP projects.  I expect the same will be true for OData.
http://blogs.msdn.com/b/interoperability/archive/2012/02/09/open-source-odata-tools-for-mysql-and-php-developers.aspx

You might want to skip the XML part (or at least leave it alone) and just generate the OData part directly, in separate modules of the application.  Then if you find that OData is not as popular as Microsoft would have you believe it will be easy to continue with the XML feed.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses
Course of the Month16 days, 15 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question