Solved

using PHP to create an Odata Service

Posted on 2012-03-18
2
653 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 83

Accepted Solution

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

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

809 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