Hi,
I am using the server lib and have the webserver working etc.
I have a handler and got it to log the page the user requested..
So far so good..
However, the full request should look something like the following.. (This is what I have been told it should look like)
I am trying to work out how to read the BinaryState value from the request.
I seem to be able to log the host, method etc, but can't work out how to get to the <?xml section in the request.
I am guessing this is called the body of the request?
Anyone know how to read the BinaryState value from this request as it's sent to my server ?
I am using the server lib and have the webserver working etc.
I have a handler and got it to log the page the user requested..
B4X:
Log(req.RequestURI) ' logs /upnp/control/basicevent1
So far so good..
However, the full request should look something like the following.. (This is what I have been told it should look like)
POST /upnp/control/basicevent1 HTTP/1.1
Host: 192.168.5.189:49153
Accept: */*
Content-type: text/xml; charset="utf-8"
SOAPACTION: "urn:Belkin:service:basicevent:1#SetBinaryState"
Content-Length: 299
<?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:SetBinaryState xmlns:u="urn:Belkin:service:basicevent:1"><BinaryState>1</BinaryState></u:SetBinaryState></s:Body></s:Envelope>
I am trying to work out how to read the BinaryState value from the request.
I seem to be able to log the host, method etc, but can't work out how to get to the <?xml section in the request.
I am guessing this is called the body of the request?
Anyone know how to read the BinaryState value from this request as it's sent to my server ?