Re: help needed on making use of the call monitor service
Posted: Tue May 04, 2010 12:33 am
So, here it goes..
I was able to send "Incoming SMS" to the TV. Using following format (not the same tags..) for other message types should be easy and most probably working.
Probably the biggest problem was to find out that ≶ and > for encoding XML format of the Message content has to be used..
Now, I'm going to sleep. Finally.
I was able to send "Incoming SMS" to the TV. Using following format (not the same tags..) for other message types should be easy and most probably working.
Code: Select all
POST /PMR/control/MessageBoxService HTTP/1.0
Content-Type: text/xml; charset=\"utf-8\"
HOST: 192.168.2.102
Content-Length: %d (fill by your test app)
SOAPACTION: \"uuid:samsung.com:service:MessageBoxService:1#AddMessage\"
Connection: close
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">
<s:Body>
<u:AddMessage xmlns:u=\"urn:samsung.com:service:MessageBoxService:1\">
<MessageType>text/xml</MessageType>
<MessageID>can be anything</MessageID>
<Message>
<Category>SMS</Category>
<DisplayType>Maximum</DisplayType>
<ReceiveTime>
<Date>2010-05-04</Date>
<Time>01:02:03</Time>
</ReceiveTime>
<Receiver>
<Number>12345678</Number>
<Name>Receiver</Name>
</Receiver>
<Sender>
<Number>11111</Number>
<Name>Sender</Name>
</Sender>
<Body>Hello World!!!</Body>
</Message>
</u:AddMessage>
</s:Body>
</s:Envelope>
Now, I'm going to sleep. Finally.