Solved

using PHP to create an Odata Service

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

820 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