Before you call the Reseller API
Before you can call the methods on the Reseller API, you will need the “External ID”, “External Password” and "Reseller ID"

for the given reseller. You can find the required information on the “my account” page on the reseller configurator.

(If any information is missing please contact support@rushfiles.com).

How to use methods to manage Companies and Resellers

There is a REST like api avalible on the url:


     https://resellerapi." + domain + "/resellerapi.aspx"


In general there are two "fields" that needs to be filled in. And send in the header of the request.


Field 1 is the command, it holds the authentication data for the request.

Field 2 is the request data it self.


IMPORTANT Uri encode the request.


An example of create a reseller is: (in C#)


RequestCommand command = new RequestCommand();
command.DeviceId = "resellerconfigurator"; 
command.Method = "CreateReseller";
command.Token = externalPassword;
command.UserId = externalId;

Reseller reseller = new Reseller(); //The new reseller to be created.

//Required fields

reseller.Name = ""; //Name of the new reseller (Has to be unique)

reseller.ParrentResellerId = resellerId; //Is set to your reseller resellerId

reseller.ProviderId = domain; //is set to your domain if the reseller is going to be on the same solution

//Optional fields

reseller.Subdomain = ""; //Can be given a sub domain for his own skinning on this site (has to be free!)

reseller.MetaData = new MetaData(); //Meta data are optional data.

reseller.MetaData.Address = "";

reseller.MetaData.City = "";

reseller.MetaData.ZipCode = "";

reseller.MetaData.EmailContact = ""; 

reseller.MetaData.NameContact = "";

reseller.MetaData.Fax = ""; 

reseller.MetaData.Phone = "";

reseller.MetaData.HomePage = ""; 


CreateResellerRequest request = new CreateResellerRequest();
request.Reseller = reseller; // This class holds all the information to create the reseller.
request.adminEmail = adminUser;
request.resellerId = resellerId;

string jsonCommand = JsonConvert.SerializeObject(command);
string jsonRequest = JsonConvert.SerializeObject(request);
jsonRequest = Uri.EscapeDataString(jsonRequest);

client.Headers["command"] = jsonCommand;
client.Headers["data"] = jsonRequest;

string jsonResponse = client.DownloadString("https://resellerapi." + domain + "/resellerapi.aspx");
CreateResellerResponce response = JsonConvert.DeserializeObject<CreateResellerResponce>(jsonResponse);


 

How to call the API

First part:

Request Command Class :

 public class RequestCommand

 {

 public string Token { get; set; } Use the externalPassword here

 public string UserId { get; set; } Use the ExternalId here

 public string Method { get; set; } // The method to use

 public string DeviceId { get; set; } //The Id of the Device sending the request. Use: "resellerconfigurator" or "companyconfigurator" on your own preferences.

 }


How to request/use a function in the API

The second part of parameters parameter need is a RequstObject from the list below
(The request object named with the desired method + Request should be used for that method
for example GetResellersRequest for the GetResellers method, this also means the methods, has to have a

request object in order to be called.)


Under this paragraf the most common classed and requests are shown. Use the WDSL described on "My reseller" page to get the complete list and the class definitions.


public class UpdateResellerAdminRequest

 {

 public string resellerId { get; set; }

 public string userId { get; set; }

 public bool add { get; set; }

 }

 public class GetResellersAdminsRequest

 {

 public bool associatied { get; set; }

 public string resellerId { get; set; }

 

 public class UpdateCompanyRequest

 {

 public string resellerId { get; set; }

 public Company Company { getset; }

 public string WhiteLabeledDomain { getset; }

 }

 public class DeleteCompanyRequest

 {

 public string resellerId { get; set; }

 public string CompanyId { get; set; }

 }

 public class CreateCompanyRequest

 {

 public string resellerId { get; set; }

 public Company Company { get; set; }

 public string adminEmail { get; set; }

 }

 public class GetCompaniesRequest

 {

 public string resellerId { get; set; }

 }

 public class GetCompanyRequest

 {

 public string resellerId { get; set; }

 public string companyId { get; set; }

 }

 public class UpdateResellerRequest

 {

 public string resellerId { get; set; }

 public Reseller Reseller { get; set; }

 }

 public class DeleteResellerRequest

 {

 public string resellerId { get; set; }

 public string deleteResellerId { get; set; }

 }

 public class CreateResellerRequest

 {

 public string resellerId { get; set; }

 public Reseller Reseller { get; set; }

 public string adminEmail { get; set; }

 }

 public class GetResellersRequest

 {

 public string resellerId { get; set; }

 }

 public class GetResellerRequest

 {

 public string resellerId { get; set; }

 }


What does the API return

These response objects does all inherit from the class GeneralResponce, which contains a single property 

ResponceMessage and this property is always set on return with an appropriate response code.


public class GetResellerResponce : GeneralResponce

 {

 public Reseller responce { get; set; }

 }

 public class GetResellersResponce : GeneralResponce

 {

 public List<Reseller> responce { get; set; }

 }

 public class CreateResellerResponce : GeneralResponce

 {

 public bool responce { get; set; }

 }

 public class DeleteResellerResponce : GeneralResponce

 {

 public bool responce { get; set; }

 }

 public class UpdateResellerResponce : GeneralResponce

 {

 public bool responce { get; set; }

 }

 public class GetCompaniesResponce : GeneralResponce

 {

 public List<Company> responce { get; set; }

 }

 public class GetCompanyResponce : GeneralResponce

 {

 public Company responce { get; set; }

 }

 public class CreateCompanyResponce : GeneralResponce

 {

 public bool responce { get; set; }

 }

 public class DeleteCompanyResponce : GeneralResponce

 {

 public bool responce { get; set; }

 }

 public class UpdateCompanyResponce : GeneralResponce

 {

 public bool responce { get; set; }

 }

 public class UpdateResellerAdminResponce : GeneralResponce

 {

 public bool responce { get; set; }

 }

 public class GetResellerAdminsResponce : GeneralResponce

 {

 public List<ResellerUser> responce { get; set; }

 }

 public class GeneralResponce

 {

 public string ResponceMessage { get; set; }

 }



Classes used for requests and responses


public class Reseller

{

      

        public string ResellerId { get; set; }//Cannot be set

        public string ExternalId { get; set; } //Can be set to a unique Id so it can be easily found.

        public string ExternalPassword { get; set; } //Cannot be set

        public string ParrentResellerId { get; set; } //On create this has to be set (to the same resellerId as in the CreateResellerRequest).

        public string ProviderId { get; set; }  //Set to the domain of the reseller (If running on your server, it should be your domain and a sub domain has to be set).

        public string Name { get; set; } //The name of the reseller and it has to be unique.


        //Optional

        public string ClientUrlPc { get; set; } //Link to download the pc client.

        public string ClientUrlMac { get; set; } //Link to download the mac client.

        public string ClientUrlIos { get; set; } //Link to downlaod the iOs app.

        public string ClientUrlAndroid { get; set; } //Link to download the Android app.

        public string ClientUrlWp { get; set; } // Link to download the Windows Phone app.

        public MetaData MetaData { get; set; } //Class containing address and contact information (Look further down for definition of the class).

        public HistoryCriterias HistoryCriterias { get; set; } //Class containing history criterias for file versions(Look further down for definition of the class).

        public string Subdomain { get; set; } //Sub domian used if resellers is running on your domain has to be unique.

}


public class Company

{

        public string CompanyId { get; set; } //Cannot be set

        public string ExternalId { get; set; } //Can be set to a unique Id so it can be easily found.

        public string ExternalPassword { get; set; } //Cannot be set

        public string ResellerId { get; set; } //The reseller who is creating it or owns it.

        public string Name { get; set; }  //The name of the company and it has to be unique.

       

        //Optional

        public string Subdomain { get; set; } //Sub domain for personalized skinning of  webinterface for company

        public string Max_Space { get; set; } //In MB and is a soft limit.

        public string Max_Users { get; set; } //Is a soft limit

        public string Space_inUse { get; set; } //In MB and is a soft limit.

        public string History_Space { get; set; } //(Cannot be set) shows how much of the space used, that is history of files.

        public string Users_inUse { get; set; } //(Cannot be set)The number of users which is on the company

        public MetaData MetaData { get; set; } //Class containing address and contact information (Look further down for definition of the class).

        public HistoryCriterias HistoryCriterias { get; set; }  //Class containing history criterias for file versions(Look further down for definition of the class).

        public HistoryCriterias ResellerHistoryCriterias { get; set; }   //Class containing history criterias for file versions set by the reseller and is a minimum limit for HistoryCriterias on this company(Look further down for definition of the class).

        public bool IsCriteriasFrozen { get; set; } //Freezes the ResellerHistoryCriterias.

}


public class MetaData

{

        public string Address { get; set; }

        public string ZipCode { get; set; }

        public string City { get; set; }

        public string Country { get; set; }

        public string Phone { get; set; }

        public string HomePage { get; set; }

        public string Fax { get; set; }

        public string NameContact { get; set; }

        public string EmailContact { get; set; }

}


public class HistoryCriterias

{

        public int MaxDays { get; set; } //Max number of days to keep a previous version of a file (Set to -1 for infinite days).

        public int MaxVersions { get; set; } //Max number of versions to keep of a file (set to -1 for infinite versions), version still gets deleted when MaxDays is exceeded. 

        public int KeepRestored { get; set; } //Max days to keep restored versions.

}


public enum CompanyStatus

        Activated, //0

        Deactivated, //1 

        Deleted,  //2

        Suspended //3

}


public enum ResellerStatus

{

        Activated, //0

        Deactivated, //1

        Deleted //2

}


API Usage

The examples include are in PHP and via the free software SOAP UI (http://www.soapui.org/).

Values used in the documentation are not valid. Thru out the PHP examples a support function is used

(print_rr) this can be found on the last page in this documentation.


Get Company

The GetCompany call can be used to retrieve information on a single company. In here you can also find

information on usage and defined limits. 


PHP

This example gets the usage information on a Company and outputs it as basic XML 


function getRessources() {

                try {

                                global $_token, $_userid, $_resellerid, $_companyid;

 

                                // external ID is the debitor number from your system

                                $_getexternalid = 'abababababababababa';

 

                                $requestParams = array(

                                    'command' => array('Method' => 'InternalDirect',

                                    'Token' => $_token,

                                    'UserId' => $_userid),

                                    'request' => array(

                                    'companyId' => $_getexternalid,

                                    'resellerId' => $_resellerid)

 );

                                 $client = new SoapClient('http://domainmaster.rushfiles.com/ResellerApi.svc?wsdl');

                                $response = $client->GetCompany($requestParams);

 

                                $_users = $response->GetCompanyResult->responce->Users_inUse;

                                $_storage = $response->GetCompanyResult->responce->Space_inUse;

 

                                $str = '<resources>

                            <resource id="users" value="'.$_users.'"/>

                            <resource id="storage" value="'.$_storage.'"/>

                          </resources>';

                    echo $str;

 }

                catch (SoapFault $exception) {

                    echo $exception->getMessage();

 }

}

 

SOAP  <tem:GetCompany>

 <!--Optional:-->

 <tem:command>

 <!--Optional:-->

 <com:Method>InternalDirect</com:Method>

 <!--Optional:-->

 <com:Token>3D93E2E0-8529-4BA3-B0A6-006255B409BF</com:Token>

 <!--Optional:-->

 <com:UserId>365023B9-2437-4921-AA6C-6BF6A6FB2323</com:UserId>

 </tem:command>

 <!--Optional:-->

 <tem:request>

 <!--Optional:-->

 <com:companyId>75266153-5d1f-4de1-8b26-a35d520dc0cc</com:companyId>

 <!--Optional:-->

 <com:resellerId>e6988f75-e942-4602-8d87-5d9abf426376</com:resellerId>

 </tem:request>

 </tem:GetCompany>


Get Reseller

SOAP

 <tem:GetReseller>

 <!--Optional:-->

 <tem:command>

 <!--Optional:-->

 <com:Method>InternalDirect</com:Method>

 <!--Optional:-->

 <com:Token>3D93E2E0-8529-4BA3-B0A6-006255B409BF</com:Token>

 <!--Optional:-->

 <com:UserId>365023B9-2437-4921-AA6C-6BF6A6FB2323</com:UserId>

 </tem:command>

 <!--Optional:-->

 <tem:request>

 <!--Optional:-->

 <com:resellerId>e6988f75-e942-4602-8d87-5d9abf426376</com:resellerId>

 </tem:request>

 </tem:GetReseller>

 

 

Create Company

This is used to create a new company on the domain master.

PHP

function createCompany() {

                try {

                global $_token, $_userid, $_resellerid;

 

                // FAKE variables to create company

                $_maxspace = '400';

                $_maxusers = '120';

                $_name = 'Supermand Inc.';

                // external ID is the debitor number from your system

                $_externalid = 'abababababababababa';

                $_address = 'Strong road, 19323 Metropolis, world';

                $_emailcontact = 'user@supermand.com';

                $_fax = '12121212';

                $_homepage = 'supermand.dk';

                $_phone = '1313131313';

                $_adminemail = user@yourdomain.com';

 

 

 

                $requestParams = array(

                                   'command' => array('Method' => 'InternalDirect',

                                    'Token' => $_token,

                                    'UserId' => $_userid),

                                    'request' => array(

                                    'Company' => array(    

                                                'CompanyId' => '',

                                                'ExternalPassword' => '',

                                                'Max_Space' => $_maxspace,

                                                'Max_Users' => $_maxusers,

                                                'Name' => $_name,

                                                'ResellerId' => $_resellerid,

                                                'Space_inUse' => '',

                                                'Users_inUse' => '',

                                                'ExternalId' => $_externalid,

                                                'MetaData' => array(

                                                                'Address' => $_address,

                                                                'EmailContact' => $_emailcontact,

                                                                'Fax' => $_fax,

                                                                'HomePage' => $_homepage,

                                                                'MailServiceEmail' => '',

                                                                'MandrillKey' => '',

                                                                'Phone' => $_phone)),

                                                                'adminEmail' => $_adminemail,

                                                                'resellerId' => $_resellerid

 

                                    )

 );

 

                                $client = new SoapClient('http://domainmaster.rushfiles.com/ResellerApi.svc?wsdl');

                                $response = $client->CreateCompany($requestParams);

 

                                print_rr($response);

 }

                catch (SoapFault $exception) {

                    echo $exception->getMessage();

 }

 

}

 

SOAP

 <tem:CreateCompany>

 <!--Optional:-->

 <tem:command>

 <!--Optional:-->

 <com:Method>InternalDirect</com:Method>

 <!--Optional:-->

 <com:Token>3D93E2E0-8529-4BA3-B0A6-006255B409BF</com:Token>

 <!--Optional:-->

 <com:UserId>365023B9-2437-4921-AA6C-6BF6A6FB2323</com:UserId>

 </tem:command>

 <!--Optional:-->

 <tem:request>

 <!--Optional:-->

 <com:Company>

 <!--Optional:-->

 <com1:CompanyId/>

 <!--Optional:-->

 <com1:ExternalId>TestExternalId</com1:ExternalId>

 <!--Optional:-->

 <com1:ExternalPassword>TestExternalPass</com1:ExternalPassword>

 <!--Optional:-->

 <com1:Max_Space>100000</com1:Max_Space>

 <!--Optional:-->

 <com1:Max_Users>100000</com1:Max_Users>

 <!--Optional:-->

 <com1:MetaData>

 <!--Optional:-->

 <com1:Address></com1:Address>

 <!--Optional:-->

 <com1:EmailContact></com1:EmailContact>

 <!--Optional:-->

 <com1:Fax></com1:Fax>

 <!--Optional:-->

 <com1:HomePage></com1:HomePage>

 <!--Optional:-->

                  <com1:MailServiceEmail></com1:MailServiceEmail>

 <!--Optional:-->

 <com1:MandrillKey></com1:MandrillKey>

 <!--Optional:-->

 <com1:Phone></com1:Phone>

 </com1:MetaData>

 <!--Optional:-->

 <com1:Name>Man Test3</com1:Name>

 <!--Optional:-->

 <com1:ResellerId>e6988f75-e942-4602-8d87-5d9abf426376</com1:ResellerId>

 <!--Optional:-->

 <com1:Space_inUse>0</com1:Space_inUse>

 <!--Optional:-->

 <com1:Users_inUse>0</com1:Users_inUse>

 </com:Company>

 <!--Optional:-->

 <com:adminEmail>man@rushfiles.com</com:adminEmail>

 <!--Optional:-->

 <com:resellerId>e6988f75-e942-4602-8d87-5d9abf426376</com:resellerId>

 </tem:request>

 </tem:CreateCompany>

 

Create Reseller


SOAP

<tem:CreateReseller>

 <!--Optional:-->

 <tem:command>

 <!--Optional:-->

 <com:Method>InternalDirect</com:Method>

 <!--Optional:-->

 <com:Token>3D93E2E0-8529-4BA3-B0A6-006255B409BF</com:Token>

 <!--Optional:-->

 <com:UserId>365023B9-2437-4921-AA6C-6BF6A6FB2323</com:UserId>

 </tem:command>

 <!--Optional:-->

 <tem:request>

 <!--Optional:-->

 <com:Reseller>

 <!--Optional:-->

 <com1:BrowserClientHomepageUrl></com1:BrowserClientHomepageUrl>

 <!--Optional:-->

 <com1:CompanyHomepageUrl></com1:CompanyHomepageUrl>

 <!--Optional:-->

 <com1:ExternalId>TestExternalId</com1:ExternalId>

 <!--Optional:-->

 <com1:ExternalPassword>TestExternalPass</com1:ExternalPassword>

 <!--Optional:-->

 <com1:MetaData>

 <!--Optional:-->

 <com1:Address></com1:Address>

 <!--Optional:-->

 <com1:EmailContact></com1:EmailContact>

 <!--Optional:-->

 <com1:Fax></com1:Fax>

 <!--Optional:-->

 <com1:HomePage></com1:HomePage>

 <!--Optional:-->

 <com1:MailServiceEmail></com1:MailServiceEmail>

 <!--Optional:-->

 <com1:MandrillKey></com1:MandrillKey>

 <!--Optional:-->

 <com1:Phone></com1:Phone>

 </com1:MetaData>

 <!--Optional:-->

 <com1:Name>Mads Test Reseller</com1:Name>

 <!--Optional:-->

 <com1:ParrentResellerId>e6988f75-e942-4602-8d87-5d9abf426376</com1:ParrentResellerId>

 <!--Optional:-->

               <com1:ProviderId>Mads Test</com1:ProviderId>

 <!--Optional:-->

 <com1:ResellerHomepageUrl></com1:ResellerHomepageUrl>

 <!--Optional:-->

 <com1:ResellerId></com1:ResellerId>

               <!--Optional:-->

 <com1:SkinVersion>0</com1:SkinVersion>

 <!--Optional:-->

 <com1:SkinnUrl></com1:SkinnUrl>

 </com:Reseller>

 <!--Optional:-->

 <com:adminEmail>man@rushfiles.com</com:adminEmail>

 <!--Optional:-->

 <com:resellerId>e6988f75-e942-4602-8d87-5d9abf426376</com:resellerId>

 </tem:request>

 </tem:CreateReseller>

 

Delete company

Function to remove a company from the system

PHP

 

function deleteCompany() {

                try {

                global $_token, $_userid, $_resellerid;

 

                // delete ID is the debitor number from your system

                // FAKE variables to delete company

                $_deletecompanyid = 'abababababababababa';

 

 

                $requestParams = array(

                                    'command' => array('Method' => 'InternalDirect',

                                    'Token' => $_token,

                                    'UserId' => $_userid),

                                    'request' => array(

                                    'CompanyId' => $_deletecompanyid,

                                    'resellerId' => $_resellerid)

 );

 

                                $client = new SoapClient('http://domainmaster.rushfiles.com/ResellerApi.svc?wsdl');

                                $response = $client->DeleteCompany($requestParams);

 

                                print_rr($response);

 

 }

                catch (SoapFault $exception) {

                    echo $exception->getMessage();

 }

}

 

Update Company

Function to update information on the company, this could be more users or storage.

 

PHP

function updateCompany() {

                try {

                global $_token, $_userid, $_resellerid;

 

                // FAKE variables to update company

                // FAKE variables to create company

                $_maxspace = '400';

                $_maxusers = '120';

                $_name = 'Supermand Inc.';

                // external ID is the debitor number from your system

                $_externalid = 'abababababababababa';

                $_address = 'Strong road, 19323 Metropolis, world';

                $_emailcontact = 'user@supermand.com';

                $_fax = '12121212';

                $_homepage = 'supermand.dk';

                $_phone = '1313131313';

                $_adminemail = user@yourdomain.com';

 

                // external ID is the debitor number from your system

                // FAKE variables to update company

                $_updatecompanyid = 'c8b5e83a-6f28-4423-bdd2-563331982e42';

 

 

                $requestParams = array(

                                  'command' => array('Method' => 'InternalDirect',

                                    'Token' => $_token,

                                    'UserId' => $_userid),

                                    'request' => array(

                                                'Company' => array(        

                                                                'CompanyId' => '',

                                                                'ExternalPassword' => '',

                                                                'Max_Space' => $_maxspace,

                                                                'Max_Users' => $_maxusers,

                                                                'Name' => $_name,

                                                                'ResellerId' => $_resellerid,

                                                                'Space_inUse' => '',

                                                                'Users_inUse' => '',

                                                                'ExternalId' => $_externalid,

                                                                'MetaData' => array(

                                                                                'Address' => $_address,

                                                                                'EmailContact' => $_emailcontact,

                                                                                'Fax' => $_fax,

                                                                                'HomePage' => $_homepage,

                                                                                'MailServiceEmail' => '',

                                                                                'MandrillKey' => '',

                                                                                'Phone' => $_phone)),

                                                                'adminEmail' => $_adminemail,

                                                                'resellerId' => $_resellerid

 

                                    )

 );

 

                                $client = new SoapClient('http://domainmaster.rushfiles.com/ResellerApi.svc?wsdl');

                                $response = $client->UpdateCompany($requestParams);

 

                                print_rr($response);

 }

                catch (SoapFault $exception) {

                    echo $exception->getMessage();

 }

 

}

 

 

 

Response codes

Each response object contains a messageCode in the variable ResponceMessage


Codes:

100:DeniedAccess – means you did not have admin rights for the given company or your token was rejected

101:Ok – Everything have been applied as it should

102:NoDocumentsAffected – the removal or update was not applied corretly

103:EntityNotFound – The entity to be update, removed, ect. was not found with the given Id.

104:OneOrMoreFailed - Not all entries where applied correctly

105:AlreadyExist – The given entity to be saved is already there

106:MethodNotFound – The given method was not found on the list of methods supported

107:InsufficientData – The data given in the command parameter was insufficient

108:RequestNotRecognized – The request object was not correctly desterilized by json

109:CommandNotRecognized – The given command wasn’t recognized

110:NotImplimented – The method is has not yet been implemented

111:ServiceConnectionFailed – The domain masters service wasn’t reachable

112:DataNotRecognized – The given in the request data wasn’t recognized

113:DuplicateNames – The given in the request data wasn’t recognized

120:FailedTalkingToServer – A call to another server failed.

AssociationTypes
AssociationTypes: External = 0, Internal = 1, Admin=2

Used Classes public class User

 {

 [BsonId]

 public string UserId { get; set; }

 

 public string Email { get; set; }

 public string AltEmail { get; set; }

 public string Alias { get; set; }

 public string Password { get; set; }

 

 public string Name { get; set; }

 

 public string ResellerId { get; set; }

 

 public UserStatus Status { get; set; }

 }

 public class UserResellerRelation

 {

 [BsonId]

 public string AssociationId { get; set; }

 public string ResllerId { get; set; }

 public string UserId { get; set; }

 public AssociationType AssociationType { get; set; }

 

 }

       public class Reseller

 {

 [BsonId]

 public string ResellerId { get; set; }

 

 public string ExternalId { get; set; }

 public string ExternalPassword { get; set; } //Generated

 

 public string ParrentResellerId { get; set; }

 

 public string ProviderId { get; set; } //DomainUrl

 

 public string Name { get; set; }

 

 public int SkinVersion { get; set; }

 

 public string ResellerHomepageUrl { get; set; }

 public string CompanyHomepageUrl { get; set; }

 public string BrowserClientHomepageUrl { get; set; }

 public string SkinnUrl { get; set; }

 

 public MetaData MetaData { get; set; }

 }

    
public class Company

 {

 [BsonId]

 public string CompanyId { get; set; }

 public string ExternalId { get; set; }

 public string ExternalPassword { get; set; }

 

 public string ResellerId { get; set; }

 

 public string Name { get; set; }

 public string Max_Space { get; set; } //In MB

 public string Max_Users { get; set; }

 public string Space_inUse { get; set; } //In MB

 public string Users_inUse { get; set; }

 public MetaData MetaData { get; set; }

 }


 
public class ResellerUser

 {

 public User User { get; set; }

 public UserResellerRelation Relation { get; set; }

 

 }

 public class MetaData

 {

 public string Address { get; set; }

 public string Phone { get; set; }

 public string HomePage { get; set; }

 public string Fax { get; set; }

 public string EmailContact { get; set; }

 public string MandrillKey { get; set; }

 public string MailServiceEmail { get; set; }

 

 }

 public enum UserStatus

 {

 Unconfirmed, Deleted, Actived, Deactived

 }

 

 

WSDL

http://domainmaster.cloudfiledrive.dk/ResellerApi.svc?Wsdl

 

PHP

Support function for examples

function print_rr($content, $return=false)

{

    $output = '<div style="border: 1px solid; height: 100px; resize: both; overflow: auto;"><pre>'

        . print_r($content, true) . '</pre></div>';

 

    if ($return) {

        return $output;

    } else {

        echo $output;

 }

}

 

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy"xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="ResellerApi" targetNamespace="http://tempuri.org/">

<wsdl:types>

<xsd:schema targetNamespace="http://tempuri.org/Imports">

<xsd:import schemaLocation="http://domainmaster.cloudfiledrive.dk/ResellerApi.svc?xsd=xsd0" namespace="http://tempuri.org/"/>

<xsd:import schemaLocation="http://domainmaster.cloudfiledrive.dk/ResellerApi.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>

<xsd:import schemaLocation="http://domainmaster.cloudfiledrive.dk/ResellerApi.svc?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07/CommonClasses.DomainApiRequests"/>

<xsd:import schemaLocation="http://domainmaster.cloudfiledrive.dk/ResellerApi.svc?xsd=xsd3" namespace="http://schemas.datacontract.org/2004/07/CommonClasses.DomainApiResponces"/>

<xsd:import schemaLocation="http://domainmaster.cloudfiledrive.dk/ResellerApi.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/CommonClasses"/>

</xsd:schema>

</wsdl:types>

<wsdl:message name="IResellerApi_GetReseller_InputMessage">

<wsdl:part name="parameters" element="tns:GetReseller"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetReseller_OutputMessage">

<wsdl:part name="parameters" element="tns:GetResellerResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetResellers_InputMessage">

<wsdl:part name="parameters" element="tns:GetResellers"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetResellers_OutputMessage">

<wsdl:part name="parameters" element="tns:GetResellersResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_CreateReseller_InputMessage">

<wsdl:part name="parameters" element="tns:CreateReseller"/>

</wsdl:message>

<wsdl:message name="IResellerApi_CreateReseller_OutputMessage">

<wsdl:part name="parameters" element="tns:CreateResellerResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_DeleteReseller_InputMessage">

<wsdl:part name="parameters" element="tns:DeleteReseller"/>

</wsdl:message>

<wsdl:message name="IResellerApi_DeleteReseller_OutputMessage">

<wsdl:part name="parameters" element="tns:DeleteResellerResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_UpdateReseller_InputMessage">

<wsdl:part name="parameters" element="tns:UpdateReseller"/>

</wsdl:message>

<wsdl:message name="IResellerApi_UpdateReseller_OutputMessage">

<wsdl:part name="parameters" element="tns:UpdateResellerResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetCompanies_InputMessage">

<wsdl:part name="parameters" element="tns:GetCompanies"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetCompanies_OutputMessage">

<wsdl:part name="parameters" element="tns:GetCompaniesResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetCompany_InputMessage">

<wsdl:part name="parameters" element="tns:GetCompany"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetCompany_OutputMessage">

<wsdl:part name="parameters" element="tns:GetCompanyResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_CreateCompany_InputMessage">

<wsdl:part name="parameters" element="tns:CreateCompany"/>

</wsdl:message>

<wsdl:message name="IResellerApi_CreateCompany_OutputMessage">

<wsdl:part name="parameters" element="tns:CreateCompanyResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_DeleteCompany_InputMessage">

<wsdl:part name="parameters" element="tns:DeleteCompany"/>

</wsdl:message>

<wsdl:message name="IResellerApi_DeleteCompany_OutputMessage">

<wsdl:part name="parameters" element="tns:DeleteCompanyResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_UpdateCompany_InputMessage">

<wsdl:part name="parameters" element="tns:UpdateCompany"/>

</wsdl:message>

<wsdl:message name="IResellerApi_UpdateCompany_OutputMessage">

<wsdl:part name="parameters" element="tns:UpdateCompanyResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetResellerAdmins_InputMessage">

<wsdl:part name="parameters" element="tns:GetResellerAdmins"/>

</wsdl:message>

<wsdl:message name="IResellerApi_GetResellerAdmins_OutputMessage">

<wsdl:part name="parameters" element="tns:GetResellerAdminsResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_UpdateResellerAdmin_InputMessage">

<wsdl:part name="parameters" element="tns:UpdateResellerAdmin"/>

</wsdl:message>

<wsdl:message name="IResellerApi_UpdateResellerAdmin_OutputMessage">

<wsdl:part name="parameters" element="tns:UpdateResellerAdminResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_AddAdmin_InputMessage">

<wsdl:part name="parameters" element="tns:AddAdmin"/>

</wsdl:message>

<wsdl:message name="IResellerApi_AddAdmin_OutputMessage">

<wsdl:part name="parameters" element="tns:AddAdminResponse"/>

</wsdl:message>

<wsdl:message name="IResellerApi_Resend_InputMessage">

<wsdl:part name="parameters" element="tns:Resend"/>

</wsdl:message>

<wsdl:message name="IResellerApi_Resend_OutputMessage">

<wsdl:part name="parameters" element="tns:ResendResponse"/>

</wsdl:message>

<wsdl:portType name="IResellerApi">

<wsdl:operation name="GetReseller">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/GetReseller" message="tns:IResellerApi_GetReseller_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/GetResellerResponse" message="tns:IResellerApi_GetReseller_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="GetResellers">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/GetResellers" message="tns:IResellerApi_GetResellers_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/GetResellersResponse" message="tns:IResellerApi_GetResellers_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="CreateReseller">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/CreateReseller" message="tns:IResellerApi_CreateReseller_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/CreateResellerResponse" message="tns:IResellerApi_CreateReseller_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="DeleteReseller">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/DeleteReseller" message="tns:IResellerApi_DeleteReseller_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/DeleteResellerResponse" message="tns:IResellerApi_DeleteReseller_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="UpdateReseller">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/UpdateReseller" message="tns:IResellerApi_UpdateReseller_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/UpdateResellerResponse" message="tns:IResellerApi_UpdateReseller_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="GetCompanies">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/GetCompanies" message="tns:IResellerApi_GetCompanies_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/GetCompaniesResponse" message="tns:IResellerApi_GetCompanies_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="GetCompany">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/GetCompany" message="tns:IResellerApi_GetCompany_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/GetCompanyResponse" message="tns:IResellerApi_GetCompany_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="CreateCompany">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/CreateCompany" message="tns:IResellerApi_CreateCompany_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/CreateCompanyResponse" message="tns:IResellerApi_CreateCompany_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="DeleteCompany">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/DeleteCompany" message="tns:IResellerApi_DeleteCompany_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/DeleteCompanyResponse" message="tns:IResellerApi_DeleteCompany_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="UpdateCompany">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/UpdateCompany" message="tns:IResellerApi_UpdateCompany_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/UpdateCompanyResponse" message="tns:IResellerApi_UpdateCompany_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="GetResellerAdmins">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/GetResellerAdmins" message="tns:IResellerApi_GetResellerAdmins_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/GetResellerAdminsResponse" message="tns:IResellerApi_GetResellerAdmins_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="UpdateResellerAdmin">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/UpdateResellerAdmin" message="tns:IResellerApi_UpdateResellerAdmin_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/UpdateResellerAdminResponse" message="tns:IResellerApi_UpdateResellerAdmin_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="AddAdmin">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/AddAdmin" message="tns:IResellerApi_AddAdmin_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/AddAdminResponse" message="tns:IResellerApi_AddAdmin_OutputMessage"/>

</wsdl:operation>

<wsdl:operation name="Resend">

<wsdl:input wsaw:Action="http://tempuri.org/IResellerApi/Resend" message="tns:IResellerApi_Resend_InputMessage"/>

<wsdl:output wsaw:Action="http://tempuri.org/IResellerApi/ResendResponse" message="tns:IResellerApi_Resend_OutputMessage"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="BasicHttpBinding_IResellerApi" type="tns:IResellerApi">

<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl:operation name="GetReseller">

<soap:operation soapAction="http://tempuri.org/IResellerApi/GetReseller" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="GetResellers">

<soap:operation soapAction="http://tempuri.org/IResellerApi/GetResellers" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="CreateReseller">

<soap:operation soapAction="http://tempuri.org/IResellerApi/CreateReseller" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="DeleteReseller">

<soap:operation soapAction="http://tempuri.org/IResellerApi/DeleteReseller" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="UpdateReseller">

<soap:operation soapAction="http://tempuri.org/IResellerApi/UpdateReseller" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="GetCompanies">

<soap:operation soapAction="http://tempuri.org/IResellerApi/GetCompanies" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="GetCompany">

<soap:operation soapAction="http://tempuri.org/IResellerApi/GetCompany" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="CreateCompany">

<soap:operation soapAction="http://tempuri.org/IResellerApi/CreateCompany" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="DeleteCompany">

<soap:operation soapAction="http://tempuri.org/IResellerApi/DeleteCompany" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="UpdateCompany">

<soap:operation soapAction="http://tempuri.org/IResellerApi/UpdateCompany" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="GetResellerAdmins">

<soap:operation soapAction="http://tempuri.org/IResellerApi/GetResellerAdmins" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="UpdateResellerAdmin">

<soap:operation soapAction="http://tempuri.org/IResellerApi/UpdateResellerAdmin" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="AddAdmin">

<soap:operation soapAction="http://tempuri.org/IResellerApi/AddAdmin" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

<wsdl:operation name="Resend">

<soap:operation soapAction="http://tempuri.org/IResellerApi/Resend" style="document"/>

<wsdl:input>

<soap:body use="literal"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"/>

</wsdl:output>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="ResellerApi">

<wsdl:port name="BasicHttpBinding_IResellerApi" binding="tns:BasicHttpBinding_IResellerApi">

<soap:address location="http://domainmaster.cloudfiledrive.dk/ResellerApi.svc"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>