开发者

C# pass multiple strings to php webservice

i'm trying to pass multiple strings to a function inside a php webservice but not sure how. One string will be a name and the second string will be a list of addresses and I 开发者_开发技巧would like to use the webservice to upload them to a mysql database.

Any help with this will be greatly appreciated!

Here's the code in c# i have so far:

  string namelog = "testpass";
            com.look.retrievesdl det = new com.look.retrievesdl();
            det.Timeout = -1;
            string lists = det.retrieve(namelog);
            det.Timeout = -1;
            string[] addresses = lists.Split(',');

What i want to do is pass a hashtable as well as the string namelog to a php webservice but not sure how to go about doing that.


You can pass a hashtable to PHP using this form:

lines[]=Line1Test&lines[]=Line2Text

In this case webserver will receive an array of lines in $_GET. Is that what you want?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜