How call SOAP based web-Service using PhoneGap in iPhone?

后端 未结 2 952
感动是毒
感动是毒 2020-12-19 15:35

I am newbie for PhoneGap and our client\'s requirement is to access SOAP based web-service in iPhone using PhoneGap, basically accessing the web-service using javascript, an

相关标签:
2条回答
  • 2020-12-19 15:57

    as i know, call web service from mobile device just like call web service from out side of that web service. So we need cross domain. To cross domain, we need the support from server side, such as: Jsonp or proxy

    0 讨论(0)
  • 2020-12-19 16:18

    calling a webservice with phonegap is the same than calling it directly from your browser (but you have to think about the same orign policy).

    Some performance implications are here to consider was well because processing big chunks of xml in javascript on mobile phones might be slow. So you could use some kind of weserver to talk to the webservice end send some simplified json to your phone or you can take a look at this tutorial from ibm describing how to call a webservice directly from javascript: http://www.ibm.com/developerworks/webservices/library/ws-wsajax/

    0 讨论(0)
提交回复
热议问题