adb
Click here for a complete list of operations.
addCustomer
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.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 /webservice/adb.asmx HTTP/1.1
Host: editor.ynetalbums.co.il
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.arealmedia.com/asmx/adb/addCustomer"
<?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>
<addCustomer xmlns="http://schemas.arealmedia.com/asmx/adb">
<key>string</key>
<secretKey>string</secretKey>
<idPartner>int</idPartner>
<customerGender>string</customerGender>
<customerName>string</customerName>
<customerEmail>string</customerEmail>
<customerCountry>string</customerCountry>
<idState>string</idState>
<idProvince>string</idProvince>
<idSubProvince>string</idSubProvince>
<customerPassword>string</customerPassword>
<customerBirthdayDay>int</customerBirthdayDay>
<customerBirthdayMonth>int</customerBirthdayMonth>
<customerBirthdayYear>int</customerBirthdayYear>
<receiveNewsletter>int</receiveNewsletter>
<registerCountry>string</registerCountry>
<language>string</language>
<currency>string</currency>
</addCustomer>
</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>
<addCustomerResponse xmlns="http://schemas.arealmedia.com/asmx/adb">
<addCustomerResult>
<newCustomer>
<customerEmail>string</customerEmail>
<customerPassword>string</customerPassword>
<status>string</status>
<id>string</id>
<registrationVoucher>string</registrationVoucher>
<codClient>string</codClient>
</newCustomer>
<newCustomer>
<customerEmail>string</customerEmail>
<customerPassword>string</customerPassword>
<status>string</status>
<id>string</id>
<registrationVoucher>string</registrationVoucher>
<codClient>string</codClient>
</newCustomer>
</addCustomerResult>
</addCustomerResponse>
</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 /webservice/adb.asmx HTTP/1.1
Host: editor.ynetalbums.co.il
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>
<addCustomer xmlns="http://schemas.arealmedia.com/asmx/adb">
<key>string</key>
<secretKey>string</secretKey>
<idPartner>int</idPartner>
<customerGender>string</customerGender>
<customerName>string</customerName>
<customerEmail>string</customerEmail>
<customerCountry>string</customerCountry>
<idState>string</idState>
<idProvince>string</idProvince>
<idSubProvince>string</idSubProvince>
<customerPassword>string</customerPassword>
<customerBirthdayDay>int</customerBirthdayDay>
<customerBirthdayMonth>int</customerBirthdayMonth>
<customerBirthdayYear>int</customerBirthdayYear>
<receiveNewsletter>int</receiveNewsletter>
<registerCountry>string</registerCountry>
<language>string</language>
<currency>string</currency>
</addCustomer>
</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>
<addCustomerResponse xmlns="http://schemas.arealmedia.com/asmx/adb">
<addCustomerResult>
<newCustomer>
<customerEmail>string</customerEmail>
<customerPassword>string</customerPassword>
<status>string</status>
<id>string</id>
<registrationVoucher>string</registrationVoucher>
<codClient>string</codClient>
</newCustomer>
<newCustomer>
<customerEmail>string</customerEmail>
<customerPassword>string</customerPassword>
<status>string</status>
<id>string</id>
<registrationVoucher>string</registrationVoucher>
<codClient>string</codClient>
</newCustomer>
</addCustomerResult>
</addCustomerResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /webservice/adb.asmx/addCustomer?key=string&secretKey=string&idPartner=string&customerGender=string&customerName=string&customerEmail=string&customerCountry=string&idState=string&idProvince=string&idSubProvince=string&customerPassword=string&customerBirthdayDay=string&customerBirthdayMonth=string&customerBirthdayYear=string&receiveNewsletter=string®isterCountry=string&language=string¤cy=string HTTP/1.1 Host: editor.ynetalbums.co.il
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfNewCustomer xmlns="http://schemas.arealmedia.com/asmx/adb">
<newCustomer>
<customerEmail>string</customerEmail>
<customerPassword>string</customerPassword>
<status>string</status>
<id>string</id>
<registrationVoucher>string</registrationVoucher>
<codClient>string</codClient>
</newCustomer>
<newCustomer>
<customerEmail>string</customerEmail>
<customerPassword>string</customerPassword>
<status>string</status>
<id>string</id>
<registrationVoucher>string</registrationVoucher>
<codClient>string</codClient>
</newCustomer>
</ArrayOfNewCustomer>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /webservice/adb.asmx/addCustomer HTTP/1.1 Host: editor.ynetalbums.co.il Content-Type: application/x-www-form-urlencoded Content-Length: length key=string&secretKey=string&idPartner=string&customerGender=string&customerName=string&customerEmail=string&customerCountry=string&idState=string&idProvince=string&idSubProvince=string&customerPassword=string&customerBirthdayDay=string&customerBirthdayMonth=string&customerBirthdayYear=string&receiveNewsletter=string®isterCountry=string&language=string¤cy=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfNewCustomer xmlns="http://schemas.arealmedia.com/asmx/adb">
<newCustomer>
<customerEmail>string</customerEmail>
<customerPassword>string</customerPassword>
<status>string</status>
<id>string</id>
<registrationVoucher>string</registrationVoucher>
<codClient>string</codClient>
</newCustomer>
<newCustomer>
<customerEmail>string</customerEmail>
<customerPassword>string</customerPassword>
<status>string</status>
<id>string</id>
<registrationVoucher>string</registrationVoucher>
<codClient>string</codClient>
</newCustomer>
</ArrayOfNewCustomer>