r2wMobile
Click here for a complete list of operations.
CreateAccount
This method should only be called when a new account is being created. Invalid message will be set to DisplayMessage if the account is not created and the property Success will be set to false. A sucessful account creation will yield a True value for Success and populate the display message with text developer can show user. Developer is not required to display the ResponseMessage.DisplayMessage but is encouraged to.
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /r2wMobile.asmx HTTP/1.1
Host: r2wmobile.running2win.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://running2win.com/CreateAccount"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CreateAccount xmlns="http://running2win.com/">
<VendorID>string</VendorID>
<MobileAppID>string</MobileAppID>
<UserName>string</UserName>
<Password>string</Password>
<FirstName>string</FirstName>
<LastName>string</LastName>
<email>string</email>
<RunnerCategoryKey>long</RunnerCategoryKey>
<isMale>boolean</isMale>
<City>string</City>
<State>string</State>
<Zip>string</Zip>
<Birthday>string</Birthday>
<Country>string</Country>
</CreateAccount>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<CreateAccountResponse xmlns="http://running2win.com/">
<CreateAccountResult>
<Success>boolean</Success>
<DisplayMessage>string</DisplayMessage>
<HiddenMessage>string</HiddenMessage>
<ParentIdKey>string</ParentIdKey>
</CreateAccountResult>
</CreateAccountResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /r2wMobile.asmx HTTP/1.1
Host: r2wmobile.running2win.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CreateAccount xmlns="http://running2win.com/">
<VendorID>string</VendorID>
<MobileAppID>string</MobileAppID>
<UserName>string</UserName>
<Password>string</Password>
<FirstName>string</FirstName>
<LastName>string</LastName>
<email>string</email>
<RunnerCategoryKey>long</RunnerCategoryKey>
<isMale>boolean</isMale>
<City>string</City>
<State>string</State>
<Zip>string</Zip>
<Birthday>string</Birthday>
<Country>string</Country>
</CreateAccount>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CreateAccountResponse xmlns="http://running2win.com/">
<CreateAccountResult>
<Success>boolean</Success>
<DisplayMessage>string</DisplayMessage>
<HiddenMessage>string</HiddenMessage>
<ParentIdKey>string</ParentIdKey>
</CreateAccountResult>
</CreateAccountResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /r2wMobile.asmx/CreateAccount?VendorID=string&MobileAppID=string&UserName=string&Password=string&FirstName=string&LastName=string&email=string&RunnerCategoryKey=string&isMale=string&City=string&State=string&Zip=string&Birthday=string&Country=string HTTP/1.1 Host: r2wmobile.running2win.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ResponseMessage xmlns="http://running2win.com/"> <Success>boolean</Success> <DisplayMessage>string</DisplayMessage> <HiddenMessage>string</HiddenMessage> <ParentIdKey>string</ParentIdKey> </ResponseMessage>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /r2wMobile.asmx/CreateAccount HTTP/1.1 Host: r2wmobile.running2win.com Content-Type: application/x-www-form-urlencoded Content-Length: length VendorID=string&MobileAppID=string&UserName=string&Password=string&FirstName=string&LastName=string&email=string&RunnerCategoryKey=string&isMale=string&City=string&State=string&Zip=string&Birthday=string&Country=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ResponseMessage xmlns="http://running2win.com/"> <Success>boolean</Success> <DisplayMessage>string</DisplayMessage> <HiddenMessage>string</HiddenMessage> <ParentIdKey>string</ParentIdKey> </ResponseMessage>