Hi, YOU CANNOT send XML text with a GET. It is limited to 256 chars (including URL) and definitely no newlines. This is an HTTP limitation, not kannel's.
Please read the User's guide, there are some excellent POST examples that work. Nikos ----- Original Message ----- From: Pai Peng To: [email protected] Sent: Monday, February 02, 2009 4:17 PM Subject: Re: problem by sendota Nokia OMA (1.4.2) hello Nikos, I have now read the text you reminded. I think XML post and XML get are two different protocols, but have the same function. Just GET is easy to use for sending requests. (If it readly works ; ) ) The OTA configuration is only usful, if I use the defined configuration within Kannel: ota-id & ota bookmark. (but I am trying to use a XML string) Now I checked out to use 'oma-settings', instead of 'settings' for the parameter 'type. But I can't receive any SMSs on device any more. Please correct me, where i have done wrong. Regards Pai On Fri, Jan 30, 2009 at 9:32 PM, Nikos Balkanas <[email protected]> wrote: Hi, Please download latest CVS user guide. Turn to page 89 and read about XML Post. It is not a good idea to start throwing around variables in a GET operation trying to fish in the blind. A few pages later is the OTA configuration specs that you need in your kannel.conf. BR, Nikos ----- Original Message ----- From: Pai Peng To: [email protected] Sent: Friday, January 30, 2009 9:40 PM Subject: problem by sendota Nokia OMA (1.4.2) hello, this is my first day to use kannel. I have heard it monthes ago, but today i have installed it and try to use. My main purpose for using kannel is to send OTA OMA configuration to the devices. But I got errors by sending this following example (AP defining OMA XML): <?xml version="1.0" encoding="UTF-8" standalone = "yes" ?> <wap-provisioningdoc> <!-- WLAN AP profile settings --> <characteristic type="NAPDEF"> <parm name="NAME" value="wlanapname"></parm> <parm name="NAPID" value="wlanapname"></parm> <parm name="PROVIDER-ID" value="wlanapname"></parm> <parm name="BEARER" value="WLAN"></parm> <characteristic type="WLAN"> <parm name="PRI-SSID" value="wlanapssid"></parm> <parm name="NETMODE" value="INFRA"></parm> <parm name="SECMODE" value="WPA-PRESHARED-KEY"></parm> <parm name="WPA-PRES-KEY-ASC" value="mypassword"></parm> </characteristic> </characteristic> </wap-provisioningdoc> It is used to define a new wlan access point. this xml works with the other SMS gateway 'NowSMS'. my Nokia E71 can receive the SMS sent by kannel, but can not open it: "Unable to open, message format not supported." in the log file of smsbox: WARNING: OTA compiler: Unknown attribute 'type' in OTA source, with value 'NAPDEF'. WARNING: OTA compiler: Unknown attribute 'type' in OTA source, with value 'WLAN'. DEBUG (in hex): *application/x-wap-prov.browser-settings........ It seems like that the smsbox converts the Access Point XML into WebBrowser XML format. At least it doesn't know the access point xml protocol. I am using the GET method for the OTA HTTP interface with text=MyURLEncodedXMLdocument. I don't know the OTA settings and bookmark documents defined in the user guite. where should I define my own bookmark documents? how does Kannel find it? So, I need help to find out a solution to make it work. Thanks for reading and your helps. Regards Pai
