Get All Category CYA Input
<?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>
<GetAllCategoryCYA xmlns="http://www.cpscorporation.com/services/">
<GetAllCYACategoryRequestType>
<Authentication>
<DealerID>int</DealerID>
<DealerKey>string</DealerKey>
</Authentication>
</GetAllCYACategoryRequestType>
</GetAllCategoryCYA>
</soap:Body>
</soap:Envelope>
Argument |
Required |
Type |
Details |
Authentication |
yes |
AuthenticationType |
|
Authentication.DealerID |
yes |
Int |
Your dealer number |
Authentication.DealerKey |
yes |
String |
Your dealer key |
GetAllCategoryCYA Output
<?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>
<GetAllCatagoryCYAResponse xmlns="http://www.cpscorporation.com/services/">
<GetAllCYACategoryResponseType>
<Errors>
<ErrorID>int</ErrorID>
<ErrorMessage>string</ErrorMessage>
</Errors>
<Categories>
<Category>String</Category>
</Categories>
<Ack>String</Ack>
</GetAllCYACategoryResponseType>
</GetAllCategoryCYAResponse>
</soap:Body>
</soap:Envelope>
Argument |
Type |
Details |
Errors |
ErrorsType |
|
Errors.ErrorID |
Int |
Error Number |
Errors.ErrorMessage |
String |
Detailed error message |
Categories |
CategoriesType |
|
Categories.Category |
String |
Category Name |
Ack |
String |
Return API success or error. |
C#.NET Sample
Create a Web Reference named "cpsapi" with URL https://www.consumerpriorityservice.com/services/cya_api.asmx
GetAllCYACategoryRequestType request = new GetAllCYACategoryRequestType();
request.Authentication = new ApiAuthenticationType() { ApiKey = "Your Key", DealerId = YOURID, SubAccountId = 0 };
cya_api api = new cya_api();
GetAllCYACategoyrResponseType response = api.GetAllCategoryCYA(request);