Solved

using PHP to create an Odata Service

Posted on 2012-03-18
2
603 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 82

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 108

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article discusses how to create an extensible mechanism for linked drop downs.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now