inwise Top Background
Arrow on Service

Email Marketing API-Part B

InwiseWebServices API Center

https://www.em-sender.com/ws/inwiseservice.asmx

The result of a Send request

Properties:

Name Type Description
IsSuccess bool A value indicating whether the create was successful
Ids Array of string The sending transaction Id
Error details ErrorDetails If the request was not successful, this will contain the error details

Java Code:

    //// call the service
    SendingResult sendResult = soapService.send(source, target);

    //// check the results
    if (sendResult.isIsSuccess()) {
        String sendId = sendResult.getIds().getString().get(0);
        return "Transaction Id: " + sendId;
    } else {
        ErrorDetails errorDetails = sendResult.getErrorDetails();
        return Utils.BuildErrorMessage(errorDetails);
    }

C# Code:

    //// call the service

    SendingResult sendResult = service.Send(source, target);

 

    //// check the results

    if (sendResult.IsSuccess)

    {

        String sendId = sendResult.Ids[0];

        return "Transaction Id: " + sendId;

    }

    else

    {

        ErrorDetails errorDetails = sendResult.ErrorDetails;

        return Utils.BuildErrorMessage(errorDetails);

    }

VB Code:

        '' call the service

        Dim sendResult As SendingResult = service.Send(source, target)

 

        '' check the results

        If sendResult.IsSuccess Then

            Dim sendId As [String] = sendResult.Ids(0)

            Return "Transaction Id: " & sendId

        Else

            Dim errorDetails As ErrorDetails = sendResult.ErrorDetails

            Return Utils.BuildErrorMessage(errorDetails)

        End If

Raw Xml:

    <SendResult>

        <IsSuccess>true</IsSuccess>

        <ErrorDetails>

            <Code>Success</Code>

        </ErrorDetails>

        <Ids>

            <string>b2249f9776984a60bdebfdca6115eb5c</string>

        </Ids>

        <Status>

            <MobileSendingStatus>SentToGateway</MobileSendingStatus>

        </Status>

    </SendResult>




Home  |  About us  |  Products  |  Service  |  Partners  |  Forum  |  Email Marketing Terms  |  Support  |  Contact us
Terms & Conditions  |  Privacy Policy  |  Anti Spam Policy  |  Site Map
© 2008 inwise LTD. All rights reserved.