Use User Service in Openfire to Register new user via xmpp framework for iOS -
Use User Service in Openfire to Register new user via xmpp framework for iOS -
i can see users manually created in openfire server, working book accomplish but, there way programmer register user via http using openfire , user service plugin. want know how register new user feature , if can check if user exists on openfire server ios application. how can http link of openfire accomplish registration or there way? read custom registration create webservice know little webservices please can help, thanks.
you need register user creating nsxmlelement , pass xmppstream register new user.make sure have xmppstream object able fire queries server , required output.
nsmutablearray *elements = [nsmutablearray array]; [elements addobject:[nsxmlelement elementwithname:@"username" stringvalue:@"abc"]]; [elements addobject:[nsxmlelement elementwithname:@"password" stringvalue:@"xyz"]]; [elements addobject:[nsxmlelement elementwithname:@"name" stringvalue:@"abc"]]; [elements addobject:[nsxmlelement elementwithname:@"email" stringvalue:@"abc@xyz.com"]]; [self.xmppstream registerwithelements:elements error:nil]; [self connect];
this register new user or in-case user exists on server gives error in received iq.
ios web-services openfire xmppframework user-registration
Comments
Post a Comment