Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

User service plugin problem

$
0
0

HI everyone,

 

I have installed user service plugin version 2.0.2. In past I have installed this plugin and written code in php to register user in open fire and it was working fine, but recently we have re-installed open fire, I have again installed user service plugin and enabled it from server settings. and same php code is there but its not working and returning false. below is my code in php script,

 

$url = 'http://www.mydomainname.com:9090/plugins/userService/users';

    $headers = array(

        "Content-Type: application/xml",

        "Authorization:mySuperSecretToken",

    );

    $ch = curl_init();

    curl_setopt( $ch, CURLOPT_URL, $url);

    curl_setopt( $ch, CURLOPT_POST, true );

    curl_setopt( $ch, CURLOPT_HTTPHEADER, $headers);

    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );

    curl_setopt( $ch, CURLOPT_POSTFIELDS, "<user><username>testing</username><password>1234</password><name>Test User</name><email>test@localhost.de</email></user>" );

    $result = curl_exec($ch);

    curl_close($ch);

 

Can anyone helo me where i am doing anything wrong. Or is there anything I need to enable on server or any port or something other stuff?


Viewing all articles
Browse latest Browse all 10742

Trending Articles