inwise - email marketing and newsletter software company
 
inwise Top Background
Arrow on Service

Queue Importing

Operation Name: operation Name
Description: description

All actions require a valid user name and password using authenticaion header.
Show a raw xml example including the authentication header.

Service url:https://api.inwise.com/InwiseWebServices.asmx

Adding a reference to inwise web services

User Name:
Password:  
The service enables you to view your import queue.
The operation returns an array of ImportQueueData with the following fields:
  • Ai - the priority of the import.
  • Bmark - the number of records imported so far.
  • Confirmed - has the import been confirmed for starting?
  • EndError - has an error occurred which terminated the import?
  • ErrorImport - if an error occurred, this is the error description.
  • FieldsMeaning - columns mapping.
  • FileNameWithoutPath - the name of the file being imported.
  • Id - the id of the import.
  • ImportDate - the import date.
  • ImportStarted - has the import process started?
  • IsBulk - is the import a quick import?
  • MailingListToImport - the id of the group to make the import to.
  • Name - the name of the group to make the import to.
  • TotalRecords - total number of records to import.

Parameters:

  • No fields.

Java Code:

//get a reference to the service InwiseWebServices ws = new InwiseWebServices();
InwiseWebServicesSoap inwiseWebServicesSoap = ws.getInwiseWebServicesSoap();

//fill the security header
HeaderHandler hh = new HeaderHandler("myusername", "myPassword");
hh.setHeader(inwiseWebServicesSoap);


//call the operation
inwise.ArrayOfImportQueueData imports= inwiseWebServicesSoap.queueImporting();
Iterator<ImportQueueData> it=imports.getImportQueueData().iterator();
while (it.hasNext())
{
ImportQueueData iq = it.next();
int priority = iq.getAi();//the priority of the import
int imported = iq.getBmark();//the number of records imported so far
boolean confirmed = iq.isConfirmed();//has the import been confirmed
boolean hasError = iq.isEndError();//has an error terminated the import process
String errorMessage = iq.getErrorImport();//the error message if any
String fieldsMapping = iq.getFieldsMeaning();//the mappings of the file columns
String fileName = iq.getFileNameWithoutPath();//the name of the file to import
int id = iq.getId();//the id of the import
XMLGregorianCalendar importDate = iq.getImportDate();//the date of the import
boolean started = iq.isImportStarted();//has the import process started
boolean isQuick = iq.isIsBulk();//is it a quick import?
int groupid = iq.getMailingListToImport();//the id of the group to make the import to
String groupname = iq.getName();//the name of the group to make the import to
int totalRecords = iq.getTotalRecords();//the number of records in the file to import
}

C# Code:

//get a reference to the service

        InwiseWebServices.InwiseWebServices ws = new InwiseWebServices.InwiseWebServices();

 

        //fill the security header

        InwiseWebServices.SecHeader header = new InwiseWebServices.SecHeader();

        header.username = "username";

        header.pass = "myPassword";

        ws.SecHeaderValue = header;//set credentials

 

        //call the operation

        InwiseWebServices.ImportQueueData[] imports= ws.Queue_Importing();

        for (int i = 0; i < imports.Length; i++)

        {

            InwiseWebServices.ImportQueueData iq = imports[i];

            int priority = iq.Ai;//the priority of the import

            int imported = iq.Bmark;//the number of records imported so far

            bool confirmed = iq.Confirmed;//has the import been confirmed

            bool hasError = iq.EndError;//has an error terminated the import process

            string errorMessage = iq.ErrorImport;//the error message if any

            string fieldsMapping = iq.FieldsMeaning;//the mappings of the file columns

            string fileName = iq.FileNameWithoutPath;//the name of the file to import

            int id = iq.Id;//the id of the import

            DateTime importDate = iq.ImportDate;//the date of the import

            bool started = iq.ImportStarted;//has the import process started

            bool isQuick = iq.IsBulk;//is it a quick import?

            int groupid = iq.MailingListToImport;//the id of the group to make the import to

            string groupname = iq.Name;//the name of the group to make the import to

            int totalRecords = iq.TotalRecords;//the number of records in the file to import

        }

VB Code:

 'get a reference to the service

        Dim ws As InwiseWebServices.InwiseWebServices = New InwiseWebServices.InwiseWebServices()

 

        'fill the security header

        Dim header As InwiseWebServices.SecHeader = New InwiseWebServices.SecHeader()

        header.username = "username"

        header.pass = "myPassword"

        ws.SecHeaderValue = header 'set credentials

 

        'call the operation

        Dim importQueue() As InwiseWebServices.ImportQueueData = ws.Queue_Importing()

        Dim i As Integer

        For i = 0 To importQueue.Length - 1 Step i + 1

            Dim iq As InwiseWebServices.ImportQueueData = importQueue(i)

            Dim priority As Integer = iq.Ai 'the priority of the import

            Dim imported As Integer = iq.Bmark 'the number of records imported so far

            Dim confirmed As Boolean = iq.Confirmed 'has the import been confirmed

            Dim hasError As Boolean = iq.EndError 'has an error terminated the import process

            Dim errorMessage As String = iq.ErrorImport 'the error message if any

            Dim fieldsMapping As String = iq.FieldsMeaning 'the mappings of the file columns

            Dim fileName As String = iq.FileNameWithoutPath 'the name of the file to import

            Dim id As Integer = iq.Id 'the id of the import

            Dim importDate As DateTime = iq.ImportDate 'the date of the import

            Dim started As Boolean = iq.ImportStarted 'has the import process started

            Dim isQuick As Boolean = iq.IsBulk 'is it a quick import?

            Dim groupid As Integer = iq.MailingListToImport 'the id of the group to make the import to

            Dim groupname As String = iq.Name 'the name of the group to make the import to

            Dim totalRecords As Integer = iq.TotalRecords 'the number of records in the file to import

        Next




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.