0

Iam developing a REST service using ZEND, and iam new to it. This is my scenario:

The users will be sending their API key and password to a particular xml file, using curl, like:

curl -u key:pass https://my_site/api/v1/points.xml

and inturn, they will receive an xml response. I want to know how to send parameters to an xml file using REST in zend framework, which method i have to use (get/post/put) and how to get the response.

Did anyone try REST with ZEND and xml?

1 Answer 1

1

You should not be sending parameters to an xml file, but to a REST service listener (which should be a scripting code in PHP). The result you get might be in XML

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks for the answer... can you point out to an example of how to send request to a php page...
Fine, i found a good resource here: chrisdanielson.com/2009/09/02/…
Is it possible to atleast define a method like abc.xml, which i can use in the url, like: my_site/controller/abc.xml ? Can i have a controller something like xyz/123 ?
Found that Zend Regex Routes would be helpful in this scenario.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.