views:

204

answers:

4

I cannot get the RPX auth_info API call to work. It keeps returning the error: "Missing parameter: apiKey" I am using the C# RPX Helper Class provided on their Wiki:RPX Helper Class

Below is my code in my Page_Load method. The RPX service works by sending a POST to a Url that I specify. My code gets the token from the post data shown below. Then I call the AuthInfo API method.

string token = Request.Params["token"];
string apiKey = "xxxxxxxxxxxxxxx"; //my API key
Rpx rpx = new Rpx(apiKey, "http://rpxnow.com");
XmlElement xmlElement = rpx.AuthInfo(token);

Everything looks good. The token is populated. Within their code, the "apiKey" value pair is added to the post data written to the Request stream. Has anyone had luck with this? Any ideas why this is not working? Thanks.

A: 

rpx sucks. plain and simple.

I'm getting the same error and have found ZERO help on the internet or on rpx's supposed support forum.

rpx sux
A: 

Found the answer for anyone else looking. Example code is rubbish.

You need to set the base url to https://rpxnow.com - provided code is wrong. I can post the provided url, but it must be over HTTP*S* and not HTTP

rival
A: 

i am not getting the token parameter

hassan
A: 

i got the token now but i am getting error The remote server returned an error: (404) Not Found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

it seems like auth_info is not working

hassan