Problems with PAP

Problems with PAP SearchSearch
Author Message
Mark Ryan
New member
Username: Mryan

Post Number: 1
Registered: 07-2007
Posted on Monday, July 30, 2007 - 04:41 pm:   

Hi All,

I'm trying to generate a WAP Push message that contains a SyncML DM plain profile bootstrap document. I've followed the instructions given in the post
(http://support.nowsms.com/discus/messages/1/10820.html)

but I'm having some problems. It seems that nowSMS is only including a portion of the plain profile bootstrap document in the wap push message. In fact, it seems to skip through the binary content of the payload until it finds a null byte, thereby excluding part of my document from the wap push message. Has anybody else noticed this? Or am I doing something wrong?

Here the HTTP request that I'm sending ( with the binary data removed )

POST /pap HTTP/1.0
Content-Type: multipart/related; boundary=mime-boundary; type="application/xml"
Content-Length: 823

--mime-boundary
Content-Type: application/xml

<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN"
"http://www.wapforum.org/DTD/pap_2.0.dtd"
[<?wap-pap-ver supported-versions="2.0,1.*"?>]>
<pap>
<push-message push-id="9fjeo39jf084@pi.com">
<address address-value="wappush=+336534985/type=user@ppg.operator.com"></address>
</push-message>
</pap>
--mime-boundary
Content-Type: application/vnd.syncml.dm+wbxml
X-WAP-Application-ID: x-wap-application:push.syncml
Content-Transfer-Encoding: binary
Content-Length: 252

<252 bytes of binary data>

--mime-boundary--

I have also attached a file that contains the full post including the binary data.

I'm using NowSMS v2006.03.09

Thanks in advance for your help,

Mark
application/octet-stream
plainprofile.bin (1.0 k)