Re: help needed on making use of the call monitor service
Posted: Tue May 04, 2010 9:41 am
Thanks, doodlecz, but I still get the same (of course changed the 192.nnn ip to correspond to my TV's ip)
Code: Select all
Client-The remote host is: nn.nn.nn.nn
Client-The socket() sockfd is OK...
Server-Using nn.nn.nn.nn and port 52235...
Client-The connect() is OK...
Client-Sent: POST /PMR/control/MessageBoxService HTTP/1.0
Content-Type: text/xml; charset="utf-8"
HOST: nn.nn.nn.nn
Content-Length: 818
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>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>Client-The recv() is OK...
Client-Received: HTTP/1.1 401 Unauthorized
Connection: close
Content-Length: 0
Server: DMRND/0.5
Client-Closing sockfd