Custom Signup with XML API

Discussion in 'H-Sphere Reseller Hosting' started by thdrought, Sep 29, 2004.

  1. Scotty_32

    Scotty_32 Perch

    i was lookin at your site, and i was looking at the 'sign-up' system....

    you have:
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>     	 	 	 	   	             <% 	Dim strURL, strLength, counter, findSlash, lastSlash, pagename 	strURL = Request.ServerVariables("URL") 	strLength = len(strURL)  	FOR counter=1 TO strLength 	   findSlash=instr(counter,strURL,"/") 	   IF findslash = 0 then 	    lastSlash = instr(counter-1,strURL,"/") 	    exit FOR 	   END IF 	NEXT  	pagename = Mid(strURL,lastSlash+1,strLength)  %>
    on the "choose your username / password" page, which is a cgi file, that looks like ASP to me

    also do you have any basic demos you could send me of the API using 'Classic ASP' as id love to use it so i can offer email addresses on my site, and the only way (i can think) of it being automated is by using the API

    and if you have demos of a custom signup page that'd be great too, as i the one thing i dislike about the signup process is its hard to see the 'next' button, and after seeing your site, i like the idea of the sign up being part of my site
  2. Emagine

    Emagine Perch Staff Member

    Hiya scotty_32 (dj air from WWF).

    ive created a script using thdrought perl script and incorperated it with an asp page executing to a perl page.

    the script ive made is very simple. it just authinticates the user . but now thats working i'll think about adding some features... i would think making email feature would not be to hard...

    ill look into it.. if you want to contact me. my MSN is aaronhoc [AT] Hotmail .com

    or you can email me. Aaron [AT] emagine-hosts .com
  3. Dave96

    Dave96 Perch

    By email, you mean signing up directly from your website by entering the email you want?
  4. Emagine

    Emagine Perch Staff Member

    i belive scotty32 wanted to allow users to signer up an email account like hotmail etc.. fo his users...

    create an email account from the website.
  5. Dave96

    Dave96 Perch

  6. Emagine

    Emagine Perch Staff Member

    im not to sure how to use that feature yet, im still looking at it.

    ive managed to get my application working but that was simple authinticating.
  7. Dave96

    Dave96 Perch

    Since the "submit" button must have a value that is indicated on the customization script i would assume that nothing else is needed except for a form based on the variables given. Tha looks a too simple to be true.

    I searched the psoft forums but with no locuk on that subject.
  8. thdrought

    thdrought Perch

    Yes, it is that simple...depending on what you want to do.

    My forms are a little more complicated due to the fact that I must work with a third party for my domain names. But, if it wasn't for them, it would be simple forms with validation sending the required data to a script which submits to the HSphere XML API.

    As for the workings of the XML API signupUser class, I am working on trying to get a good response. If anyone has good SOAP::Lite skills, I would love a hand. Otherwise, it might take me a long time. You can email me directly at [email protected]. See

    Tom Drought
  9. Dave96

    Dave96 Perch

    Will the method i meantioned earlier (which submits directly through hsphere) work if we are resellers?

    Will it work if i'm using jodohost's domain registrar as my primary registrar (through hsphere of course).

    Can i make the form and php and submit the information directly to hsphere
    <form name="login" action="protocol://" method="POST">
  10. thdrought

    thdrought Perch

    Yes, it will work for resellers. Yes, you can code to pass domain setup information through jodohost. No, you will be submitting your form to another script which will need to pass the information with SOAP (.Net or Perl script), or HTTPPOST.
  11. Yash

    Yash Bass

    great, so XML API is now working?
    I admit I am a little clueless on this
  12. thdrought

    thdrought Perch

    Yes, it's working. I had the code all along, but had problems with the authToken. Now that I have resolved that, which was actually a stupid mistake on my part, I have been able to code a few scripts that work.

    It works for shared hosting also. I created a sample script that creates mailboxes and I ran it from one of my test Hosting users accounts. Worked great. :D
  13. Emagine

    Emagine Perch Staff Member

    Yash the PM i sent you says about it working.. and where you can access the code.

    i have my Archive manager that i was talking about a few months ago working 100% now.


    i'd be intrsted to see the code used for mail boxes.. i'd like to see some examples then i can work on modifing for my own applications

    im new to the API and some XML i only looked into both so i could use authintication on the CP login and password.

    getting to know a bit more (new things).
  14. Scotty_32

    Scotty_32 Perch

    fancy sharing your script to create mail-box's? [​IMG]

    and if you could share the custom signup aswell that'd be great too

    i dont know perl at all and am just trying to understand samples that e:magine sent me so i wouldnt be much help in creatin this.... unless theres an ASP part i could help with [​IMG]

    but any samples you have would be great and hopefully will help me understand all this

    email any samples you've got to: scotty32 at gmail .com
  15. SubSpace

    SubSpace Bass

    I'm thinking about implementing a high level API in .NET, but it would really help if the WSDL files were present. It saves everyone that wants to use the API a lot of tedious work.

    Apparently the WSDL files aren't generated as part of the standard installation procedure :/ But there's documentation on how to generate them here (hint hint).

    As I understand it, running a few commands on the CP server is all that's needed:

  16. Stephen

    Stephen US Operations Staff Member


    We will try to generate the files again, but in the past it has not worked right, of course the api itself didn't work right in the past either, and it is now :)
  17. largerabbit

    largerabbit Perch

    Any news on this Stephen? Is it still not generating the files properly?
  18. Stephen

    Stephen US Operations Staff Member

    Actually, I am not the one to talk to, I am more the conduit to people on some of the CP and Unix issues.

    (But I have no new word on this as of yet)
  19. SubSpace

    SubSpace Bass

    Nope, but you are most active on the forums at the moment, so you're our victim :)
  20. largerabbit

    largerabbit Perch

    Hi Stephen,
    I was asking about the post from Subspace that explained how to generate the wsdl files on the CP server. Are you not the person who looks after the CP? Sorry if I am confused:)

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services