开发者

How to call a method on Google App Engine from C#

开发者 https://www.devze.com 2022-12-25 15:08 出处:网络
I Have an application in my account and I want to call a method that takes int number and return one int number (int someMetho开发者_如何学Cd(int someVar)) from client application that must be written

I Have an application in my account and I want to call a method that takes int number and return one int number (int someMetho开发者_如何学Cd(int someVar)) from client application that must be written in C#.


All that you have to do to call a method in an AppEngine application is to expose it as a URL that your app handles. Your C# application can use WebRequest to make a request to that URL.


WebRequest wr = WebRequest.Create(Your method URL);

You can URL using some program like HTTP Analyzer.

wr.Headers.add(headerName, value); //the same as in HTTP Analyzer show;      

WebResponse response =  wr.GetResponse();   
0

精彩评论

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