eSportWS


Click here for a complete list of operations.

Spows_insertUserDataAndServiceBookingXml

Insert an Individual or Institution and inserts a service booking
Parameters list:
ALIASCustomer identificationStringMandatory
LANGCulture name used for translated field namesStringOptional
HELPFlag to return help node with output structure, field type and translated field namesBool(0/1 or True/False)Optional
LIGHTWEIGHTFlag to return data fields in attributes instead of nodesBool(0/1 or True/False)Optional
TAX_IDTax IDUniqueidentifierMandatory
CEN_IDCenter IDstringMandatory
COL_IDCollaborator IDUniqueidentifierMandatory
STARTDATEInitial dateDateMandatory
ENDDATELast dateDateMandatory
IND_PAISCountry ID (ISO31661-length 2)StringMandatory
IND_NCONTCustomer Tax IDStringMandatory
INU_PASSWORDPassword in clear textStringMandatory
IND_NOMECustomer NameStringMandatory
IND_NOMECARTAOCustomer Card NameStringOptional
IND_SEGIDCustomer SegmentStringMandatory
IND_NIBCustomer NIBStringOptional
IND_NOTASCustomer NotesStringOptional
IND_EMAILCustomer E-mailStringOptional
IND_TELEMOVEL1Customer Cell Phone NumberStringOptional
IND_FOTOLocal server path to Customer FotoStringOptional
MAX_ANEXOSegment CertificateStringOptional
SEGURO_ANEXOInsurance CertificateStringOptional
FRM_IDForm IDintMandatory
FORMForm with nodes with value of all 'DETAIL' fields indicated by the Spows_selectFormDescriptorGroup, oneMandatory
CHANGE_ENTITYMANAGEMENTFlag to indicate if there were changes made to entity management. If true, requires 'ind_entid'Bool(0/1 or True/False)Optional
LINKLink for mail redirection (e.g., /Accounts/Login.aspx)StringOptional
MP_IDPayment Way ID (if 0 (no payment), sends confirmation email)intOptional
ENTITYEntity value for MB PaymentsintOptional
REFERENCEReference value for MB PaymentsintOptional
VALUEPayment value for MB PaymentsdecimalOptional
LIMIT_DATELimit date for MB PaymentsDatetimeOptional
CONSENTSCustomer Consents ListOptional
  CONSENTCustomer ConsentMandatory
    CONS_IDConsent IDIntMandatory
    CONS_VALUEConsent ValueBool(0/1 or True/False)Mandatory
    MOT_IDMotive ID for global consentIntMandatory if CONS_ID is -1 and Value is True
FAMILIARESFamily members listOptional
  FAMILIARFamily memberMandatory
    AFA_INDID_CABCASALID of the individual that is the head of the family (use an empty value (00000000-0000-0000-0000-000000000000) for the new individual)UniqueidentifierMandatory
    AFA_INDID_FAMILIARID of the individual related to the head of the family (use an empty value (00000000-0000-0000-0000-000000000000) for the new individual)UniqueidentifierMandatory
    GPAR_IDRelationship Type IDUniqueidentifierMandatory

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 /Demo/EN/WebServices/eSportWebServices.asmx HTTP/1.1
Host: 62.28.251.246
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://www.esport.pt/webservices/Spows_insertUserDataAndServiceBookingXml"

<?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>
    <Spows_insertUserDataAndServiceBookingXml xmlns="https://www.esport.pt/webservices/">
      <oParam>xml</oParam>
    </Spows_insertUserDataAndServiceBookingXml>
  </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>
    <Spows_insertUserDataAndServiceBookingXmlResponse xmlns="https://www.esport.pt/webservices/">
      <Spows_insertUserDataAndServiceBookingXmlResult>xml</Spows_insertUserDataAndServiceBookingXmlResult>
    </Spows_insertUserDataAndServiceBookingXmlResponse>
  </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 /Demo/EN/WebServices/eSportWebServices.asmx HTTP/1.1
Host: 62.28.251.246
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>
    <Spows_insertUserDataAndServiceBookingXml xmlns="https://www.esport.pt/webservices/">
      <oParam>xml</oParam>
    </Spows_insertUserDataAndServiceBookingXml>
  </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>
    <Spows_insertUserDataAndServiceBookingXmlResponse xmlns="https://www.esport.pt/webservices/">
      <Spows_insertUserDataAndServiceBookingXmlResult>xml</Spows_insertUserDataAndServiceBookingXmlResult>
    </Spows_insertUserDataAndServiceBookingXmlResponse>
  </soap12:Body>
</soap12:Envelope>