Hi, I'm trying to make an application that pushes message to phones.
First of all, I use a string to make an XML Element which can be parsed by the phones:
String messageXML = "<CiscoIPPhoneText>";
messageXML += "<Title>A hello message</Title>";
messageXML += "<Text>Text to be displayed.</Text>";
messageXML += "<Prompt>prompt to be displayed.</Prompt>";
messageXML += "<SoftKeyItem>";
messageXML += "<Name>OK</Name>";
messageXML += "<URL>url</URL>";
messageXML += "<Position>1</Position>";
messageXML += "</SoftKeyItem>";
messageXML += "<SoftKeyItem>";
messageXML += "<Name>Exit</Name>";
messageXML += "<URL>Key:Services</URL>";
messageXML += "<Position>3</Position>";
messageXML += "</SoftKeyItem>";
messageXML += "</CiscoIPPhoneText>";
But when I push this message to the phones(by using Phone.push(String[], String, String, String, boolean)), I got error: "Exception:java.io.IOException: Server returned HTTP response code:413 for URL: http://xxx.xxx.xxx.xxx/CGI/Execute". It seems that the request entity is too large. I'm using tomcat.
Is there any idea to sovle the problem?
Thanks in advance.