eSportWS


Click here for a complete list of operations.

Spows_insertUserDataAndEnrollment

Insert an Individual or Institution and inserts an enrollment
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
INSCRICAOGroup for each desired enrollmentGroup, one or moreMandatory
  TAX_IDTax (Price) ID(s) (comma separated if more than one except for wait list)UniqueidentifierMandatory
  INS_INICIOEnrollment Beginning DateDateTimeOptional
  SEASON_STARTSeason tax enrollment starts at the beginning of next seasonBool(0/1 or True/False)Optional
  MP_IDPayment Way IDIntOptional
  HOM_IDSchedule ID, can be more than oneUniqueidentifierOptional (Mandatory for wait list)
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_FOTOLocal server path to Customer FotoStringOptional
MAX_ANEXOSegment CertificateStringOptional
SEGURO_ANEXOInsurance CertificateStringOptional
IND_TERMORESPField to indicate if customer already has insuranceBool(0/1 or True/False)Optional
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
WAIT_LISTFlag to enroll in waiting list insteadBool(0/1 or True/False)Optional
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/ES/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_insertUserDataAndEnrollment"

<?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_insertUserDataAndEnrollment xmlns="https://www.esport.pt/webservices/">
      <oParam>string</oParam>
    </Spows_insertUserDataAndEnrollment>
  </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_insertUserDataAndEnrollmentResponse xmlns="https://www.esport.pt/webservices/">
      <Spows_insertUserDataAndEnrollmentResult>string</Spows_insertUserDataAndEnrollmentResult>
    </Spows_insertUserDataAndEnrollmentResponse>
  </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/ES/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_insertUserDataAndEnrollment xmlns="https://www.esport.pt/webservices/">
      <oParam>string</oParam>
    </Spows_insertUserDataAndEnrollment>
  </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_insertUserDataAndEnrollmentResponse xmlns="https://www.esport.pt/webservices/">
      <Spows_insertUserDataAndEnrollmentResult>string</Spows_insertUserDataAndEnrollmentResult>
    </Spows_insertUserDataAndEnrollmentResponse>
  </soap12:Body>
</soap12:Envelope>