Solved

using PHP to create an Odata Service

Posted on 2012-03-18
2
726 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 110

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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…
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 …

732 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