Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Method parameters

...

Note

The response of CreateList method is different from many other MailUpSend methods because it includes "errorCode" only when call is not successful. If this inconsistency is critical for your client application you can use CreateList_st method instead.

...

 Sample CreateList request

Code Block
languagehtml/xml
titleCreateList request
firstline1
linenumberstrue
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ws="http://services.mailupnet.it/WS">
    <soap:Header/>
    <soap:Body>
       <ws:CreateList>
          <ws:accessKey>HzAgwRRJaAKBtkgNWpkAuURfV4SxMm6T3HJegRuSkUivKJEl</ws:accessKey>         
          <ws:name>My new list</ws:name>
          <ws:autoId>MYUNIQUENAME</ws:autoId>       
       </ws:CreateList>    
    </soap:Body>
</soap:Envelope>

Sample CreateList response

...

Code Block
languagehtml/xml
linenumberstrue
<CreateList>

       <Lists>

<List Guid="Guid" Id ="X" Name="nome"/>

       </Lists>

</CreateList >

The XML string will have the following features:

  • A root node <CreateLists>.
  • A node <Lists>, contained in the root node.
  • A node <List> with the attributes Guid, Id and Name. These contain respectively the GUID of the list, the ID of the list and the name of the list provided at entrance. 

...

Code Block
languagehtml/xml
linenumberstrue
<CreateList>

       <Lists>

<List Guid="Guid" Id ="X" Name="nome"/>

       </Lists>

</CreateList >

The XML string will have the following features:

  • A root node <CreateList>.
  • A node <Error>, contained in the root node, returning the error message.

...