MyStudio


Click here for a complete list of operations.

CreateNewUser

Creates user in client area. Sends an email with activation link!

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 /MyStudio.ASMX HTTP/1.1
Host: craque.sportstudio.pt
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.sportstudio.pt/CreateNewUser"

<?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>
    <CreateNewUser xmlns="http://www.sportstudio.pt">
      <member>
        <cod_membro>int</cod_membro>
        <tipo_ficha>1 or 2 or 3 or 4 or 5 or 6</tipo_ficha>
        <nome>string</nome>
        <sexo>int</sexo>
        <data_nasc>string</data_nasc>
        <morada>string</morada>
        <localidade>string</localidade>
        <cod_postal>string</cod_postal>
        <telem>string</telem>
        <tel_casa>string</tel_casa>
        <email>string</email>
        <n_bi>string</n_bi>
        <n_contribuinte>string</n_contribuinte>
        <proponente>int</proponente>
        <relations>
          <relation>
            <relationtype>string</relationtype>
            <member xsi:nil="true" />
            <pagamento_associado>0 or 1 or 2 or 3</pagamento_associado>
            <status_assoc>0 or 10 or 1 or 15</status_assoc>
            <cce_assoc>0 or 10</cce_assoc>
          </relation>
          <relation>
            <relationtype>string</relationtype>
            <member xsi:nil="true" />
            <pagamento_associado>0 or 1 or 2 or 3</pagamento_associado>
            <status_assoc>0 or 10 or 1 or 15</status_assoc>
            <cce_assoc>0 or 10</cce_assoc>
          </relation>
        </relations>
        <questresult>
          <key_quest_result>int</key_quest_result>
          <key_quest_type>int</key_quest_type>
          <version>int</version>
          <descr_quest_type>string</descr_quest_type>
          <cod_avaliacao>int</cod_avaliacao>
          <doneby>string</doneby>
          <data>string</data>
          <cod_membro>int</cod_membro>
          <online>string</online>
          <answers>
            <questionid>int</questionid>
            <questiontype>string</questiontype>
            <choiceid>int</choiceid>
            <value>string</value>
            <extratext>string</extratext>
            <signature xsi:nil="true" />
            <questionfile xsi:nil="true" />
          </answers>
          <answers>
            <questionid>int</questionid>
            <questiontype>string</questiontype>
            <choiceid>int</choiceid>
            <value>string</value>
            <extratext>string</extratext>
            <signature xsi:nil="true" />
            <questionfile xsi:nil="true" />
          </answers>
        </questresult>
        <cod_mod_desportiva>int</cod_mod_desportiva>
        <nome_recibo>string</nome_recibo>
        <n_contrib_recibo>string</n_contrib_recibo>
        <morada_recibo>string</morada_recibo>
        <cod_nationality>int</cod_nationality>
        <iban>string</iban>
        <cod_clube>int</cod_clube>
        <nome_clube>string</nome_clube>
        <obs>string</obs>
        <base64photo>string</base64photo>
        <is_socio>int</is_socio>
        <cod_tiposocio>int</cod_tiposocio>
        <nome_tiposocio>string</nome_tiposocio>
        <nsocio>string</nsocio>
        <crm_receivesms>int</crm_receivesms>
        <crm_receiveemails>int</crm_receiveemails>
        <crm_allowpub>int</crm_allowpub>
        <crm_allowimage>int</crm_allowimage>
        <name_pub>string</name_pub>
        <promo_name>string</promo_name>
        <cod_owner>int</cod_owner>
        <nome_owner>string</nome_owner>
        <cod_trainner>int</cod_trainner>
        <trainner>string</trainner>
        <last_contact>string</last_contact>
        <addresscountry>int</addresscountry>
        <addresscountry_iso3166_a3>string</addresscountry_iso3166_a3>
        <cod_accounter>int</cod_accounter>
        <accounter>string</accounter>
        <cod_athletetype>int</cod_athletetype>
        <athletetype>string</athletetype>
        <contacto>string</contacto>
        <nome_profissao>string</nome_profissao>
      </member>
      <Password>string</Password>
      <Captcha>string</Captcha>
    </CreateNewUser>
  </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>
    <CreateNewUserResponse xmlns="http://www.sportstudio.pt">
      <CreateNewUserResult>
        <Code>int</Code>
        <Message>string</Message>
      </CreateNewUserResult>
    </CreateNewUserResponse>
  </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 /MyStudio.ASMX HTTP/1.1
Host: craque.sportstudio.pt
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>
    <CreateNewUser xmlns="http://www.sportstudio.pt">
      <member>
        <cod_membro>int</cod_membro>
        <tipo_ficha>1 or 2 or 3 or 4 or 5 or 6</tipo_ficha>
        <nome>string</nome>
        <sexo>int</sexo>
        <data_nasc>string</data_nasc>
        <morada>string</morada>
        <localidade>string</localidade>
        <cod_postal>string</cod_postal>
        <telem>string</telem>
        <tel_casa>string</tel_casa>
        <email>string</email>
        <n_bi>string</n_bi>
        <n_contribuinte>string</n_contribuinte>
        <proponente>int</proponente>
        <relations>
          <relation>
            <relationtype>string</relationtype>
            <member xsi:nil="true" />
            <pagamento_associado>0 or 1 or 2 or 3</pagamento_associado>
            <status_assoc>0 or 10 or 1 or 15</status_assoc>
            <cce_assoc>0 or 10</cce_assoc>
          </relation>
          <relation>
            <relationtype>string</relationtype>
            <member xsi:nil="true" />
            <pagamento_associado>0 or 1 or 2 or 3</pagamento_associado>
            <status_assoc>0 or 10 or 1 or 15</status_assoc>
            <cce_assoc>0 or 10</cce_assoc>
          </relation>
        </relations>
        <questresult>
          <key_quest_result>int</key_quest_result>
          <key_quest_type>int</key_quest_type>
          <version>int</version>
          <descr_quest_type>string</descr_quest_type>
          <cod_avaliacao>int</cod_avaliacao>
          <doneby>string</doneby>
          <data>string</data>
          <cod_membro>int</cod_membro>
          <online>string</online>
          <answers>
            <questionid>int</questionid>
            <questiontype>string</questiontype>
            <choiceid>int</choiceid>
            <value>string</value>
            <extratext>string</extratext>
            <signature xsi:nil="true" />
            <questionfile xsi:nil="true" />
          </answers>
          <answers>
            <questionid>int</questionid>
            <questiontype>string</questiontype>
            <choiceid>int</choiceid>
            <value>string</value>
            <extratext>string</extratext>
            <signature xsi:nil="true" />
            <questionfile xsi:nil="true" />
          </answers>
        </questresult>
        <cod_mod_desportiva>int</cod_mod_desportiva>
        <nome_recibo>string</nome_recibo>
        <n_contrib_recibo>string</n_contrib_recibo>
        <morada_recibo>string</morada_recibo>
        <cod_nationality>int</cod_nationality>
        <iban>string</iban>
        <cod_clube>int</cod_clube>
        <nome_clube>string</nome_clube>
        <obs>string</obs>
        <base64photo>string</base64photo>
        <is_socio>int</is_socio>
        <cod_tiposocio>int</cod_tiposocio>
        <nome_tiposocio>string</nome_tiposocio>
        <nsocio>string</nsocio>
        <crm_receivesms>int</crm_receivesms>
        <crm_receiveemails>int</crm_receiveemails>
        <crm_allowpub>int</crm_allowpub>
        <crm_allowimage>int</crm_allowimage>
        <name_pub>string</name_pub>
        <promo_name>string</promo_name>
        <cod_owner>int</cod_owner>
        <nome_owner>string</nome_owner>
        <cod_trainner>int</cod_trainner>
        <trainner>string</trainner>
        <last_contact>string</last_contact>
        <addresscountry>int</addresscountry>
        <addresscountry_iso3166_a3>string</addresscountry_iso3166_a3>
        <cod_accounter>int</cod_accounter>
        <accounter>string</accounter>
        <cod_athletetype>int</cod_athletetype>
        <athletetype>string</athletetype>
        <contacto>string</contacto>
        <nome_profissao>string</nome_profissao>
      </member>
      <Password>string</Password>
      <Captcha>string</Captcha>
    </CreateNewUser>
  </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>
    <CreateNewUserResponse xmlns="http://www.sportstudio.pt">
      <CreateNewUserResult>
        <Code>int</Code>
        <Message>string</Message>
      </CreateNewUserResult>
    </CreateNewUserResponse>
  </soap12:Body>
</soap12:Envelope>