I'm attempting to interact with a UPnP printer on my network. I can discover the printer, get the available services on it, and even get the list of actions available for a service. However, this is where I'm stuck.
For example, there is an action GetPrinterAttributes
and I know I need to create a http POST to send an envelop requesting the action, but I do no know what that looks like. I'm hoping someone can help point me to documentation or anything to get me going again.
Based on other examples, I tried creating the request payload as follows:
<s:Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetPrinterAttributes xmlns:u="urn.schemas-upnp-org:device:Printer:1">
</u:GetPrinterAttributes>
</s:Body>
</s:Envelope>
This is as far as I can get, yet I don't know what the tags mean. Hoping for some help there.
thanks!