0

I got to work on PHP app which requires a webservice call to an Asp.net webserivce. Client insist to call this webservice with POST directly via jquery.

My knowledge says its not possible to call different domain webservice from JS and I'll have to create a proxy page to consume this webservice.

So I just want to confirm, is there any hack around to consume webservice directly from jQuery POST call and parse response (Which is XML not JSON) on page.

Thanks

1 Answer 1

1

No there is no way around it x-browser. Server Proxy or json-p are your choices.

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

2 Comments

I had quite a lot of hassle with json-p, and ended up going with the server proxy.
jsonp works well. I use it all the time. Look at some big online services (flickr, yahoo) they all use jsonp.

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.