How to use SMS/MMS Gateway to test wap push syncml sync?

How to use SMS/MMS Gateway to test wap push syncml sync? SearchSearch
Author Message
Chary Jing
New member
Username: Charyj2000

Post Number: 1
Registered: 03-2005
Posted on Thursday, March 31, 2005 - 01:48 pm:   

hi,
I am trying to test Server Alert synchronzation (or called Server notificatio/WAP PUSH sync). Generally we want to send out a MMS which contains specific SyncML head and body, that mobile can use the URL to synchronize the data such as addressbook from SyncML server to mobile.
We need special XML header so that our message application can recongize it. We want to create a XML message by manual, and let SMS/MMS GateWay to send it by GSM Modem.
Do you know how to do it?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4284
Registered: 10-2002
Posted on Thursday, April 07, 2005 - 11:32 pm:   

You wouldn't do this via MMS ... you would do this via WAP Push.

NowSMS supports the WAP Push Access Protocol (PAP), which you can use to submit WAP Push messages via PAP. (This link talks about PAP and using it to interface with NowSMS ... http://support.nowsms.com/discus/messages/485/3293.html. However, I believe the push content for SyncML would be binary instead of the text example in that link, so you would need to use "Content-Transfer-Encoding:" binary for the section of the multipart that contains that data ... and you also need to include a "Content-Length:" header to tell us how long the binary data content is.)

However, I have no experience with SyncML push formats, so I don't have an example that I can offer.

If you can give me some specifics about the data that you are trying to push (and pointers to the sections of the relevant specs), I can try to help you get this working.

Anonymous
 
Posted on Thursday, May 05, 2005 - 02:16 pm:   

Hi ,
Here is how an example Server Alert content(XML format ) for Syncml.sync looks like.
<?xml version="1.0" encoding="UTF-8"?>
<SyncML xmlns='SYNCML:SYNCML1.1'>
<SyncHdr>
<VerDTD>1.1</VerDTD>
<VerProto>SyncML/1.1</VerProto>
<SessionID>1</SessionID>
<MsgID>1</MsgID>
<Target>
<LocURI>IMEI:111111111111111</LocURI>
</Target>
<Source>
<LocURI>http://hostaddressofserver</LocURI>
</Source>
<Meta>
<MaxMsgSize xmlns='syncml:metinf'>10000</MaxMsgSize>
</Meta>
</SyncHdr>
<SyncBody>
<Alert>
<CmdID>1</CmdID>
<Data>206</Data>
<Item>
<Target>
<LocURI>./Contacts</LocURI>
</Target>
<Source>
<LocURI>./Contacts</LocURI>
</Source>
<Meta>
<Type xmlns='syncml:metinf'>text/x-vcard</Type>
</Meta>
</Item>
</Alert>
<Final/>
</SyncBody>
</SyncML>
application/octet-streamwbxml serveralert
server_Alert (0.2 k)
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4476
Registered: 10-2002
Posted on Friday, May 06, 2005 - 07:54 pm:   

Assuming that your WBXML encoding is correct, you should be able to push this via PAP as follows:

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

--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=xxxxxxxxx/type=user@ppg.operator.com"></address>
</push-message>
</pap>
--mime-boundary
Content-Type: application/vnd.syncml+wbxml
X-WAP-Application-ID: x-wap-application:push.syncml
Content-Transfer-Encoding: binary
Content-Length: xxxxx

(WBXML content here, followed by CRLF)
--mime-boundary--

Note that you have to fill in the "Content-Length:" headers to the appropriate sizes. The second "Content-Length:" header should have the size of the WBXML in bytes. The first "Content-Length:" header should have the size of everything between the "--mime-boundary" delimiters, inclusive of the boundaries themselves.

Give that a try, and if that fails, enable the SMSDEBUG.LOG (the easiest way to do this is via a checkbox on the "Serial #" page of the configuration dialog). POST again, and attach the SMSDEBUG.LOG so that we can take a closer look at it, and advise what might be wrong.

-bn
Anonymous
 
Posted on Thursday, May 19, 2005 - 11:46 am:   

I am trying to send a push message through NowSMS to my mobile phone.
I have this message in xml format(the message is also attached in a file):

Content-Type: multipart/related; type=application/xml; boundary=WPL11woVbhESdfalYevGqpdzLCs


--WPL11woVbhESdfalYevGqpdzLCs

Content-Type: application/xml; charset=UTF-8



<?xml version="1.0"?>

<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" "http://www.wapforum.org/DTD/pap_1.0.dtd">

<pap>

<push-message push-id="76456/84/Openwave Push">

<address address-value="WAPPUSH=40740337791/TYPE=PLMN@Orange"/>
<address address-value="WAPPUSH=40741326598/TYPE=PLMN@Orange"/>
<address address-value="WAPPUSH=40742008877/TYPE=PLMN@www.openwave.com"/>
</push-message>

</pap>

--WPL11woVbhESdfalYevGqpdzLCs

Content-Type: text/vnd.wap.si; charset=UTF-8



<?xml version="1.0"?>

<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"

"http://www.wapforum.org/DTD/si.dtd">

<si>

<indication href="www.yahoo.com" si-id="SI/701/444" created="2005-05-09T12:13:32Z" si-expires="2005-05-31T12:13:37Z" action="signal-high">

You have 4 new e-mails

</indication>

</si>

--WPL11woVbhESdfalYevGqpdzLCs--
**************************************
text/xmlMessage txt
PushMessage.txt (1.0 k)




All I get back is this message:

<pap>
<badmessage-response code="2000" desc="Unsupported or invalid Push Access Protocol (PAP) request - request is not multipart"/>
</pap>

Does anybody now what can I do to be able to send a message? I need to know what does the NowSMS parser need to get in order not to send this 2000 answer again.

Thx
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4578
Registered: 10-2002
Posted on Tuesday, May 24, 2005 - 11:06 pm:   

I think I need to see this in raw format, as it is actually posted to the server.

What you've got above looks fine, except that there are extra line breaks that might be causing problems. In particular, based upon the error that you are receiving, NowSMS is not seeing the initial "Content-Type:" header. This might be because of an extra line break.

If you don't already have a copy of Ethereal, (www.ethereal.com), then I'd suggest downloading a copy of it. Make sure to get WinPcap with it.

Use Ethereal to trace the exact post ... and then attach an Ethereal trace so that I can see the exact data that your application is posting.

-bn
Vivek Mastana
Unregistered guest
Posted on Monday, August 29, 2005 - 04:58 pm:   

hi,
I am using Sony Ericsson S710a and when i send syncml OTA through now sms/mms gateway v5.51 it doesnt come in the proper format. it shows some garbage values. kindly help..
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 4800
Registered: 10-2002
Posted on Monday, August 29, 2005 - 06:26 pm:   

Vivek,

In order to help you, I need to see exactly what you are sending.

-bn