Anyone, please?! This is really urgent, so any help would be greatly appreciated.
Thanks, Ralf ==================BEGIN FORWARDED MESSAGE================== >From: "Ralf G. R. Bergs" <[EMAIL PROTECTED]> >To: "Kannel Users ML" <[EMAIL PROTECTED]> >Date: Wed, 25 Jun 2003 10:44:42 +0200 >Priority: Normal >X-Mailer: PMMail 2000 Professional (2.20.2711) For Windows 2000 (5.0.2195;3) >MIME-Version: 1.0 >Content-Type: text/plain; charset="iso-8859-1" >Content-Transfer-Encoding: 7bit >Subject: Sending WBXML with connectionless WSP thru Kannel to web service > Hi there, I've written a J2ME Java package that encodes POST PDUs and sends them to a WAP gateway via connectionless WSP. The data part of the POST PDU consists of a WBXML encoded SOAP request. Kannel correctly parses the PDU, but then sends the *WBXML-encoded data* to the web server hosting the web service, i.e. it doesn't decode the WBXML data to XML. Consequently the web service replies >0250 69 6e 67 22 3e 43 6f 6e 74 65 6e 74 2d 54 79 70 ing">Content-Typ >0260 65 20 6d 75 73 74 20 62 65 20 27 74 65 78 74 2f e must be 'text/ >0270 78 6d 6c 27 20 69 6e 73 74 65 61 64 20 6f 66 20 xml' instead of >0280 27 61 70 70 6c 69 63 61 74 69 6f 6e 2f 76 6e 64 'application/vnd >0290 2e 77 61 70 2e 77 62 78 6d 6c 27 3c 2f 66 61 75 .wap.wbxml'</fau with a status code of "Internal Server Error." If I use "text/xml" as the Content-Type all I receive is: "Internal Server Error" and >0250 69 6e 67 22 3e 41 70 70 6c 69 63 61 74 69 6f 6e ing">Application >0260 20 66 61 69 6c 65 64 20 64 75 72 69 6e 67 20 72 failed during r >0270 65 71 75 65 73 74 20 64 65 73 65 72 69 61 6c 69 equest deseriali >0280 7a 61 74 69 6f 6e 3a 20 0a 6e 6f 74 20 77 65 6c zation: .not wel >0290 6c 2d 66 6f 72 6d 65 64 20 28 69 6e 76 61 6c 69 l-formed (invali >02a0 64 20 74 6f 6b 65 6e 29 20 61 74 20 6c 69 6e 65 d token) at line (which is clearly due to the fact that the web service is trying to interpret the WBXML stuff as XML data.) As WBXML is part of WAP since 1.2 Kannel should be able to handle it. Any idea what I'm doing wrong? Thanks, Ralf -- L I N U X .~. The Choice /V\ of a GNU /( )\ Generation ^^-^^ ===================END FORWARDED MESSAGE=================== -- L I N U X .~. The Choice /V\ of a GNU /( )\ Generation ^^-^^
