Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Thanked 0 Times in 0 Posts

    XMHHttpRequest and ASMX

    Hi guys,

    I'm currently trying to develop an online registration system that integrates with an "account creation system".

    Looking at the examples provided by the manufacturer of the account creation system, using it is fairly straightforward. For example, to check if an account already exists, I create a form with two text fields, with these IDs: BackupServer, and UserName. The action for this form is "action='http://localhost/AccountCreationService/Service.asmx/AccountExists'" and the method is POST.

    From here, it starts to get more complicated for me. The results are in XML:

      <?xml version="1.0" encoding="utf-8" ?> 
      <boolean xmlns="http://novastor.com/AccountCreationService_Server/">true</boolean>
    Basically, I'm a total noob to XML, and I'm not sure how to collect this information and use it.

    The answer is "true" in this case because I entered a username that already exists.

    I've looked at XMLHttpRequest, but I can't figure out how to format the information correctly in http.send().

    Basically, all that I need to do is redirect to a registration page if the answer is "true", and redirect to a "that username is not available" page or alert on the previous form.

    Can anyone help?

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Near Chicago, IL, USA
    Thanked 32 Times in 31 Posts
    Looks like a web service to me.
    Google: csharp consume web service.

    I found this rather nice excerpt from a book.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts