MagnetMail Web Service
Click here for a complete list of operations.
editMagnetMailMessage
Edit an existing MagnetMail message
Test
The test form is only available for requests from the local machine.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 /mmapi.asmx HTTP/1.1 Host: hlma-apie1.magnetmail.net Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://www.magnetmail.net/editMagnetMailMessage" <?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:Header> <mmAuthHeader xmlns="http://www.magnetmail.net/"> <sessionId>string</sessionId> <user_id>string</user_id> </mmAuthHeader> </soap:Header> <soap:Body> <editMagnetMailMessage xmlns="http://www.magnetmail.net/"> <message> <message_id>int</message_id> <loginid>int</loginid> <message_category>int</message_category> <template_id>int</template_id> <user_id>string</user_id> <message_name>string</message_name> <text_version>string</text_version> <html_version_block1>string</html_version_block1> <html_version_block2>string</html_version_block2> <html_version_block3>string</html_version_block3> <fax_doc_1>string</fax_doc_1> <fax_doc_2>string</fax_doc_2> <fax_doc_3>string</fax_doc_3> <fax_doc_4>string</fax_doc_4> <fax_doc_5>string</fax_doc_5> <is_fax_merged>boolean</is_fax_merged> <is_fax_only>boolean</is_fax_only> <is_copy_paste_template>boolean</is_copy_paste_template> <is_auto_unsubscribe_link>boolean</is_auto_unsubscribe_link> <SubjectLine>string</SubjectLine> <FromAddress>string</FromAddress> <createDate>dateTime</createDate> <lastSent>dateTime</lastSent> <characterSet>Western or International</characterSet> </message> </editMagnetMailMessage> </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> <editMagnetMailMessageResponse xmlns="http://www.magnetmail.net/"> <editMagnetMailMessageResult> <error>double</error> <errorObj> <errorCode>string</errorCode> <errorDetails>string</errorDetails> <errorMessage>string</errorMessage> <errorNumber>double</errorNumber> <errorType>string</errorType> </errorObj> <links_already_exists>boolean</links_already_exists> <magnetMail_tracking_link_exists>boolean</magnetMail_tracking_link_exists> <message_id>double</message_id> <message_in_queue>boolean</message_in_queue> <msg>string</msg> </editMagnetMailMessageResult> </editMagnetMailMessageResponse> </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 /mmapi.asmx HTTP/1.1 Host: hlma-apie1.magnetmail.net 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:Header> <mmAuthHeader xmlns="http://www.magnetmail.net/"> <sessionId>string</sessionId> <user_id>string</user_id> </mmAuthHeader> </soap12:Header> <soap12:Body> <editMagnetMailMessage xmlns="http://www.magnetmail.net/"> <message> <message_id>int</message_id> <loginid>int</loginid> <message_category>int</message_category> <template_id>int</template_id> <user_id>string</user_id> <message_name>string</message_name> <text_version>string</text_version> <html_version_block1>string</html_version_block1> <html_version_block2>string</html_version_block2> <html_version_block3>string</html_version_block3> <fax_doc_1>string</fax_doc_1> <fax_doc_2>string</fax_doc_2> <fax_doc_3>string</fax_doc_3> <fax_doc_4>string</fax_doc_4> <fax_doc_5>string</fax_doc_5> <is_fax_merged>boolean</is_fax_merged> <is_fax_only>boolean</is_fax_only> <is_copy_paste_template>boolean</is_copy_paste_template> <is_auto_unsubscribe_link>boolean</is_auto_unsubscribe_link> <SubjectLine>string</SubjectLine> <FromAddress>string</FromAddress> <createDate>dateTime</createDate> <lastSent>dateTime</lastSent> <characterSet>Western or International</characterSet> </message> </editMagnetMailMessage> </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> <editMagnetMailMessageResponse xmlns="http://www.magnetmail.net/"> <editMagnetMailMessageResult> <error>double</error> <errorObj> <errorCode>string</errorCode> <errorDetails>string</errorDetails> <errorMessage>string</errorMessage> <errorNumber>double</errorNumber> <errorType>string</errorType> </errorObj> <links_already_exists>boolean</links_already_exists> <magnetMail_tracking_link_exists>boolean</magnetMail_tracking_link_exists> <message_id>double</message_id> <message_in_queue>boolean</message_in_queue> <msg>string</msg> </editMagnetMailMessageResult> </editMagnetMailMessageResponse> </soap12:Body> </soap12:Envelope>