Testing Requirements
Before consuming the production API, you must:- Complete the adhesion process
- Communicate your certificate and IMEIs to ORGT
- Conduct thorough testing in the pre-production environment
- Verify production connectivity with test fines
Testing Environments
Pre-Production Environment
Base URL:https://pdaprv16.orgt.diba.cat/RestMultesPDA/svcMultesPDA.svc/rest/
Purpose:
- Full API testing without affecting production data
- Certificate verification
- IMEI registration validation
- Integration testing
- XSD Schema: https://pdaprv16.orgt.diba.cat/RestMultesPDA/schema/svcMultesPDA.xsd
- WSDL: https://pdaprv16.orgt.diba.cat/RestMultesPDA/svcMultesPDA.svc?singleWsdl
Production Environment
Base URL:https://pda.orgt.diba.cat/RestMultesPDA/svcMultesPDA.svc/rest/
Purpose:
- Live fine submissions
- Production data operations
- Real municipality processing
The same certificate works for both pre-production and production environments.
Pre-Production Testing Process
Verify certificate access
Test that your certificate allows connection to the pre-production API:You should receive a valid XML response with municipality data.
Submit test fine
Create a test fine using See the example XML for proper field ordering.
AltaMulta. Ensure XML fields are alphabetically ordered:Production Connectivity Testing
After successful pre-production testing, verify production connectivity:Test Agent Code Requirement
When submitting test fines to production, the agent code (Cdagen) must start with "USU".
Valid test agent codes:
USU1USU01USUTESTUSU999
Test Fine with USU Agent Code
Production Test Workflow
Testing Checklist
Before going live, verify you have tested:Authentication & Connectivity
Authentication & Connectivity
- Certificate works in pre-production
- Certificate works in production
- All IMEIs are registered and working
- Network timeouts are configured appropriately
- SSL/TLS errors are handled gracefully
Core Functionality
Core Functionality
- Agent login (
FerLogin) - Expedition range requests (
ObtenirRang) - Master data synchronization (
ObtenirActualitzacions) - Municipality list retrieval (
ObtenirMunicipis) - Fine creation (
AltaMulta) - Fine queries (
Consulta) - Fine cancellation (
AltaAnulada)
Data Validation
Data Validation
- XML fields are alphabetically ordered in
AltaMulta - All required fields are present
- Text fields are in uppercase
- Date formats are correct (
yyyyMMdd) - Time formats are correct (
HHmm) - Municipality codes are valid 3-digit strings
- Expedition numbers are within assigned ranges
Error Handling
Error Handling
- Network errors (timeouts, connection failures)
- Invalid certificate errors
- API error responses (
CodiRetorn != 0) - Invalid IMEI errors
- Exhausted expedition range errors
- XML parsing errors
Offline Functionality
Offline Functionality
- Expedition range storage
- Offline fine creation
- Local queue management
- Synchronization when online
- Conflict resolution
Production Readiness
Production Readiness
- Test fines submitted to production with
"USU"agent codes - Production connectivity verified
- Real agent codes (non-
"USU") ready for live use - Monitoring and logging in place
- Error alerting configured
Common Testing Issues
Certificate Errors
| Error | Cause | Solution |
|---|---|---|
SSL certificate verification failed | Certificate not installed on ORGT servers | Contact ORGT to verify installation |
Client certificate required | Certificate not provided in request | Ensure certificate and key are configured in HTTP client |
Handshake failure | Mismatched certificate/key | Verify certificate matches private key |
IMEI Registration Issues
Error: IMEI Not Found
XML Field Ordering
Incorrect (will fail):Test Data
Sample Municipality Codes
| Code | Municipality |
|---|---|
001 | Abrera |
088 | Santa Coloma de Gramenet |
093 | La Granada |
094 | Granera |
100 | L’Hospitalet de Llobregat |
ObtenirMunicipis to get the complete list.
Sample Conduct Codes
Obtain viaObtenirActualitzacions with pData=190001010101 (from 1900-01-01) for full initial download.
Moving to Production
Once testing is complete:Document test results
Keep records of successful pre-production tests and production connectivity tests.
Thorough testing prevents production issues and ensures smooth operations for field agents. Take the time to test all endpoints and error scenarios.