PDA

View Full Version : Call cross domain webservice call with network credentials



manishprajapati
20 Feb 2012, 9:58 PM
Hi Guys,

I got a question

I need to call a webservice, but it must be authenticated using credentials. I don't know how i can achieve it using sencha.

Please share your views.

i am open with jQuery/ java script calls as well.

Thanks in advance

Cheers!

mitchellsimoens
21 Feb 2012, 7:05 AM
You mean send username/login credentials via the headers or as parameters?

manishprajapati
21 Feb 2012, 7:16 AM
In the header.

manishprajapati
21 Feb 2012, 7:18 AM
Via header.

mitchellsimoens
21 Feb 2012, 7:20 AM
Ok, so use the headers config of the request method.

manishprajapati
21 Feb 2012, 7:26 AM
Can you please give an example?

mitchellsimoens
21 Feb 2012, 7:50 AM
I'm sorry I wasn't thinking correctly. Using JsonP there is no way to set headers as all JsonP is is a <script> tag.

manishprajapati
21 Feb 2012, 8:07 AM
Actually need to call a Webservice and it will return XML response.
Any thoughts?