如何创建与xml webservice连接的注册表单? [英] How can I create a registeration form connected with an xml webservice?

查看:110
本文介绍了如何创建与xml webservice连接的注册表单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在我的应用中创建注册表单。它应该连接到Web服务。我该如何创建它?有关于此的任何好的教程吗?

I have to create a registration form in my app. It should be connected to the web service. How do I create it? Are there any good tutorials about this?

推荐答案

您只能将数据发送到网络服务...例如,如果您的表单中有文本文件,那么您可以制作一个您可以传递链接的方法,在链接中您可以传递文本字段的值...例如:

You can send only data to web service... e.g If you have text fileds in your form then you can make a method in which you can pass your link and in link you can pass the value of your text field... for example:

-(void)sendData
{
 NSString *registeruser = [NSString stringWithFormat:@"http://yourlink//username=%@",yourTextfiled.text];
   NSLog(@"registeruser...%@",registeruser);
}

并在您想要的地方调用此方法..如果您想调用此方法在注册按钮然后按下操作并调用此方法..例如..

and call this method where you want.. If you want to call this method on Register Button then make button action and call this method.. for example..

 -(IBAction)RegisterAction:(id)sender
 {
   [self sendData];
 }

希望它能帮到你..

这篇关于如何创建与xml webservice连接的注册表单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆