开发者

call my web services from other app with javascript?

I got .asmx a web service on my app. I need to call a method from an other app to get statistics from my app. I need it to return XML. the call to the webmethod is done with javascript soap.

EDIT I got the web service working. I can execute code and return a string but it stops there. When I try to pass parameters into the method it wont work and when I try to return a string[] or an开发者_如何学运维y other type it wont work either. any ideas? Is there something I need to do passing in parameters?


I think you could do two things.

One: enable [ScriptService] attribute on web method. This allows you to call the webservice with javascript. Example

Two: enable http-post/http-get webservice calls How to enable

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜