CiscoIPPhoneText Error- XML(413) Request Entity Too Large

Version 1
    This document was generated from CDN thread

    Created by: Walid Azab on 08-06-2009 07:14:37 PM
    Hi,
     
    I am trying to push a simple message to the phone. I am able to do it successfully if I am passing only one softkey to the XML post command. Now when I add a second key like below, I get the 413 error.  Any ideas.
     
    <CiscoIPPhoneText>
     
    <Title>Hello World</Title>
    Hello World Prompt
    <Text>My text here</Text>
     
    <SoftKeyItem>
    <Name>OK</Name>
    <URL>Init:Services</URL>
    3
    </SoftKeyItem>
     
    <SoftKeyItem>
    <Name>Call Admin</Name>
    <URL>Dial:447</URL>
    2
    </SoftKeyItem>
     
    </CiscoIPPhoneText>
     
    ERROR:
    The remote server returned an error: (413) Request Entity Too Large.

     

    Subject: RE: CiscoIPPhoneText Error- XML(413) Request Entity Too Large
    Replied by: Mayank Sharma on 08-06-2009 07:52:41 PM
    I think the problem is that you are missing the tags. Try it like this and see if it works:
     
    <SoftKeyItem>
    <Name>OK</Name>
    <URL>Init:Services</URL>
    3
    </SoftKeyItem>
     
    Update: huh...I think this post editor ignores  the "Position" tag. So it seems like you had this tag in your XML.

    Subject: RE: CiscoIPPhoneText Error- XML(413) Request Entity Too Large
    Replied by: David Staudt on 08-06-2009 07:55:40 PM
    The paylod for CiscoIPPhoneExecute is limited, I believe to 500 bytes.  It doesn't look like your request exceeds that however.  You may be able to see more detail by getting a network packet capture (e.g. via Wireshark) from the phone's extra switch port during the test - feel free to attach here.
     
    CiscoIPPhoneExecute is mainly intended to push an HTTP URL to the phone, and then have the phone request that URL from server - which could then serve a potentially much larger CiscoIPPhoneText object as needed.

    Subject: RE: CiscoIPPhoneText Error- XML(413) Request Entity Too Large
    Replied by: Walid Azab on 10-06-2009 02:02:43 PM
    Hi,
     
    Well, when I did minimize the text I am pushing in the  <Text> tag, it passed through. It is definately a payload issue like David indicated. I didn't include the exact text I am actually sending in my post. So when I minimized the text and added the second softkey it worked.

    But I wonder, how other IP phone services like Berbee CNN News Feed Reader for example is doing it? It pushes a lot of characters to the phone screen. Or is that a different method?

    Thanks

    Subject: RE: CiscoIPPhoneText Error- XML(413) Request Entity Too Large
    Replied by: Muhammad Sabir on 11-06-2009 01:44:35 AM
    The key is to send a URL to the phone via Execute command instead of using any objects by itself. That is what we do with PhoneTop Messenger...

    Subject: RE: CiscoIPPhoneText Error- XML(413) Request Entity Too Large
    Replied by: Walid Azab on 13-06-2009 11:58:09 AM
    Thanks everyone. I guess for lenghty text we'll definately use the URL and ExecuteCommand.
     
    Thx