Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9006515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:25:55+00:00 2026-06-16T01:25:55+00:00

Possible Duplicate: How can I create a registeration form connected with an xml webservice?

  • 0

Possible Duplicate:
How can I create a registeration form connected with an xml webservice?

I’ve to create a registration and login form in connection with web service. How can i send the registration details in to web service? And how can i log in using the username and password from web service? Help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:25:56+00:00Added an answer on June 16, 2026 at 1:25 am

    Firstly learn the basic of Web Service here

    This article will give you a good understanding of how to communicate with XML web services from within your iPhone application, and the examples will provide a solid foundation for consuming other web services in your own projects.

    http://www.allappsdevelopers.com/TopicDetail.aspx?TopicID=97963e2d-37a5-4e48-b434-3fced80d2b55

    Example:

    -(UITextField*) customTextfield:(NSString*)fieldType textName:(NSString*)str initFrame:(CGRect)frame
    {
            UITextField *customField = [[UITextField alloc] initWithFrame:frame];
        customField.delegate = self;
        customField.adjustsFontSizeToFitWidth = NO;
        customField.borderStyle = UITextBorderStyleRoundedRect;
            customField.textColor = [UIColor blackColor];
        customField.clearButtonMode = UITextFieldViewModeWhileEditing;
        customField.clearsOnBeginEditing = NO;
        customField.autocapitalizationType = UITextAutocapitalizationTypeNone;
        customField.autocorrectionType = UITextAutocorrectionTypeNo;
        customField.enablesReturnKeyAutomatically = YES;
        customField.returnKeyType = UIReturnKeyDefault;
        customField.placeholder = NSLocalizedString(str, nil);
        customField.keyboardType = UIKeyboardTypeDefault;
        return customField;
    }
    
    
    
     - (void)viewDidLoad
        { 
    
            txtfname = [self customTextfield:@"" textName:@"" initFrame:CGRectMake(120, 75, 160, 30)];
            [self.view addSubview:txtfname];
    
            txtlastname = [self customTextfield:@"" textName:@"" initFrame:CGRectMake(120, 115, 160, 30)];
            [self.view addSubview:txtlastname];
    
            txtemail = [self customTextfield:@"" textName:@"" initFrame:CGRectMake(120, 155, 160, 30)];
            [self.view addSubview:txtemail];
    
            txtpwd = [self customTextfield:@"" textName:@"" initFrame:CGRectMake(120, 195, 160, 30)];
            txtpwd.secureTextEntry=YES;
            [self.view addSubview:txtpwd];
    
            txtRePwd= [self customTextfield:@"" textName:@"" initFrame:CGRectMake(120, 235, 160, 30)];
            txtRePwd.secureTextEntry=YES;
            [self.view addSubview:txtRePwd];
        }
    

    On Form Submit

    -(void) fieldValidate
    {
        NSString *emailRegEx =@"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";
        NSPredicate *regExpred =[NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegEx];
        BOOL myStringCheck = [regExpred evaluateWithObject:txtemail.text];
    
        if ([txtfname.text length]==0) {
            [self callAlert:@"Please Enter First Name"];
            [txtfname becomeFirstResponder];
            return;
        }
        else if ([txtlastname.text length]==0) {
            [self callAlert:@"Please Enter Last Name"];
            [txtlastname becomeFirstResponder];
            return;
    
        }
        else if(!myStringCheck){
            [self callAlert:@"Email address should be in yourname@domainname.com  format"];  
            [txtemail becomeFirstResponder];
            return;
        }
        else if ([txtpwd.text length]==0) {
            [self callAlert:@"Password should have atleast 1 characters"];
            [txtpwd becomeFirstResponder];
            return;
        }
        else if ([txtRePwd.text length]==0) {
            [self callAlert:@"Password should have atleast 1 characters"]; 
           // [txtRePwd becomeFirstResponder];
            return;
        }
        else if (![txtpwd.text isEqualToString:txtRePwd.text])
        {
            [self callAlert:@"Password And Repassword Mismatched"];
            [txtpwd becomeFirstResponder];
            return;
        }
    
        [txtfname resignFirstResponder];
        [txtlastname resignFirstResponder];
        [txtemail resignFirstResponder];
        [txtpwd resignFirstResponder];
        [txtRePwd resignFirstResponder];
    
    
        NSString *Restrqst = [NSString stringWithFormat:@"<user>\n"
                              "<account_attributes><first_name>%@</first_name></account_attributes>\n"
                              "<lastName>%@</lastName>\n"
                              "<email>%@</email>\n"
                              "<password>%@</password>\n"
                              "<password_confirmation>%@</password_confirmation>\n"
                              "</user>\n",txtfname.text,txtlastname.text,txtemail.text,txtpwd.text];  
    
        NSURL *RestURL = [NSURL URLWithString:@"www.xxxx.com/signup"];
    
      ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:RestURL];
        [request setDelegate:self];
        request.shouldPresentCredentialsBeforeChallenge = YES ;
        [request addRequestHeader:@"Content-Type" value:@"application/xml"];
        [request appendPostData:[Restrqst dataUsingEncoding:NSUTF8StringEncoding]];
        [request setRequestMethod:@"POST"];
    
        [request setDidFinishSelector:@selector(requestDone:)];
        [request setDidFailSelector:@selector(requestWentWrong:)];
        [request startAsynchronous];
    
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How I can create installer for website. PHP mysql I'm looking to
Possible Duplicate: Create shortcut to console.log() In javascript we can easy assign functions to
Possible Duplicate: Can’t create handler inside thread that has not called Looper.prepare() inside AsyncTask
Possible Duplicate: How can I create a UIColor from a hex string? I want
Possible Duplicate: How can I programmatically remove the 2 connection limit in WebClient My
Possible Duplicate: Why can’t I create an abstract constructor on an abstract C# class?
Possible Duplicate: Closure library dom node from html text in jQuery you can create
Possible Duplicate: declare property as object? in java you can create an object directly
Possible Duplicate: How can I create a temp file with a specific extension with
Possible Duplicate: How can I create directory tree in C++/Linux? Why mkdir fails to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.