<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Sending empty (no voice) message</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8678236" />
  <subtitle>Sending empty (no voice) message</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=8678236</id>
  <updated>2013-05-25T23:40:05Z</updated>
  <dc:date>2013-05-25T23:40:05Z</dc:date>
  <entry>
    <title>Sending empty (no voice) message</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8678235" />
    <author>
      <name>Ryan Ash</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8678235</id>
    <updated>2012-11-19T20:52:27Z</updated>
    <published>2012-11-19T20:52:27Z</published>
    <summary type="html">I am trying to send a voice message and receiving an error. version=8.5.  I am using perl and LWP but essentially generic HTTP POST like anyone else.  
ERROR: 
[color=#ff0000]&lt;ErrorDetails&gt;&lt;errors&gt;&lt;code&gt;MESSAGE_ERROR&lt;/code&gt;&lt;message&gt;did not receive two body parts (message, recipients): part count=1&lt;/message&gt;&lt;/errors&gt;&lt;/ErrorDetails&gt;
 400 Bad Request
[/color]
$VAR1 = bless( {
                 '_content' =&gt; '--boundary_foo
Content-Type: application/xml
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;Message&gt;&lt;Subject&gt;my subject&lt;/Subject&gt; &lt;ArrivalTime&gt;0&lt;/ArrivalTime&gt;&lt;FromSub&gt;false&lt;/FromSub&gt;&lt;/Message&gt;
--boundary_foo
Content-Type: application/xml
&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;&lt;Recipients&gt;&lt;Recipient&gt;&lt;Type&gt;TO&lt;/Type&gt;&lt;Address&gt;&lt;ObjectId&gt;"fa8c7df9-b216-45d4-9058-3ab7bd50633d&lt;/ObjectId&gt;&lt;/Address&gt;&lt;/Recipient&gt;&lt;/Recipients&gt;
--boundary_foo
',
                 '_uri' =&gt; bless( do{\(my $o = 'https://MYSERVER:8443/vmrest/messages?userobjectid=fa8c7df9-b216-45d4-9058-3ab7bd50633d')}, 'URI::https' ),
                 '_headers' =&gt; bless( {
                                        'content-type' =&gt; 'multipart/mixed;boundary=boundary_foo',
                                        'authorization' =&gt; 'Basic Y2NhZG1pbjpzdGF0ZWZhcm1AMTIz'
                                      }, 'HTTP::Headers' ),
                 '_method' =&gt; 'POST'
               }, 'HTTP::Request' );</summary>
    <dc:creator>Ryan Ash</dc:creator>
    <dc:date>2012-11-19T20:52:27Z</dc:date>
  </entry>
</feed>

