Skip to main content
Samsung Developer Program

IAP Server SOAP Error Responses

The processing of Samsung IAP Server SOAP request calls, createServiceToken() and getSubscriptionStatus(), can throw an error exception. Each exception contains the error code and message in the soap:Fault object.

 

Parameter Type Description
errorCode String Value of the error status code
errorMessage String Text of the error status message

 

Error States

Code

Message

Description

10

MISSING_PARAMETER

One or more required parameters were not specified in the request.

15

INVALID_PARAMETER_VALUE

One or more parameter values specified in the request were not of the right type, not in the right format, or not in the acceptable range.

300

INVALID_SECRET

The secret value specified in the request was not the value assigned to you.

301

EXPIRED_SERVICE_TOKEN

The serviceToken value specified in the request is for a service token that is no longer valid. 

Request and use a new service token value.

-1

UNKNOWN_ERROR

A server error occurred that was not recognized.

 

SOAP Error Response Body

public void startPayment
(
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
    <soap:Body> 
        <soap:Fault> 
            <faultcode>soap:Server</faultcode> 
            <faultString>Fault occurred while processing.</faultString> 
            <detail> 
                <ns1:WebserviceException xmlns:ns1="http://ws.iap.samsung.com/"> 
                    <errorCode xsi:type="xs:int" xmlns:ns2="http://ws.iap.samsung.com/"  
                               xmlns:xs="http://www.w3.org/2001/XMLSchema"  
                               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
                        [Error code value] 
                    </errorCode> 
                    <errorMessage xmlns:ns2="http://ws.iap.samsung.com/"> 
                        [Error message text] 
                    </errorMessage> 
                </ns1:WebserviceException> 
            </detail>     
        </soap:Fault>
    </soap:Body> 
</soap:Envelope>
)
  • Was this article helpful?