1

Is there is standard way to consume Zend_Rest_Server response with jquery? I have a simple web service that I need to invoke and process result with ajax, preferrably JQuery.

I assume I can parse xml response somehow, but that doesn't look like a mature solution.

1 Answer 1

1

jQuery has the $.ajax() command for making ajax calls. One of the dataType options is xml to indicate that the response will be in xml. jQuery also supports XPath style selectors too, for easily working with xml.

Is there anything else that you need to know?

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

1 Comment

The service returns a simple response, data or error message, so I think XPath will suffice. Thinking ahead, if my ajax app would have to consume more services, I'd write some basic layer using XPAth. Thanks!

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.