WebServiceBTX
Click here for a complete list of operations.
ValidateLicence
Test
The test form is only available for requests from the local machine.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 /WebServiceBTX.asmx HTTP/1.1
Host: lic2.amitsoftware.eu
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://webservice.basetx.pt/WebServiceBTX.asmx/ValidateLicence"
<?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>
<ValidateLicence xmlns="http://webservice.basetx.pt/WebServiceBTX.asmx">
<_NIF>string</_NIF>
<_KEY>string</_KEY>
<_SERIE>string</_SERIE>
</ValidateLicence>
</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>
<ValidateLicenceResponse xmlns="http://webservice.basetx.pt/WebServiceBTX.asmx">
<ValidateLicenceResult>
<_code>int</_code>
<_message>string</_message>
<_modulos>
<modulo>
<_referencia>string</_referencia>
<_descricao>string</_descricao>
<_qtd>decimal</_qtd>
</modulo>
<modulo>
<_referencia>string</_referencia>
<_descricao>string</_descricao>
<_qtd>decimal</_qtd>
</modulo>
</_modulos>
<_validade>dateTime</_validade>
<_cliente>string</_cliente>
<_parceiro>
<nome>string</nome>
<email>string</email>
<nif>string</nif>
</_parceiro>
</ValidateLicenceResult>
</ValidateLicenceResponse>
</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 /WebServiceBTX.asmx HTTP/1.1
Host: lic2.amitsoftware.eu
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>
<ValidateLicence xmlns="http://webservice.basetx.pt/WebServiceBTX.asmx">
<_NIF>string</_NIF>
<_KEY>string</_KEY>
<_SERIE>string</_SERIE>
</ValidateLicence>
</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>
<ValidateLicenceResponse xmlns="http://webservice.basetx.pt/WebServiceBTX.asmx">
<ValidateLicenceResult>
<_code>int</_code>
<_message>string</_message>
<_modulos>
<modulo>
<_referencia>string</_referencia>
<_descricao>string</_descricao>
<_qtd>decimal</_qtd>
</modulo>
<modulo>
<_referencia>string</_referencia>
<_descricao>string</_descricao>
<_qtd>decimal</_qtd>
</modulo>
</_modulos>
<_validade>dateTime</_validade>
<_cliente>string</_cliente>
<_parceiro>
<nome>string</nome>
<email>string</email>
<nif>string</nif>
</_parceiro>
</ValidateLicenceResult>
</ValidateLicenceResponse>
</soap12:Body>
</soap12:Envelope>