Search code examples
javanetwork-programmingupnpdlna

UPnP printer device discovery


in a project i had discovered the UPnP printer devices by sending an ssdp datagrampacket and receiving the http url.

using these url, getting an open connection, gets the xml schema in which it describes the device and service details

here i get the details by dom parsing

now my question is, how could i find the 1. status of the printer 2. whether the printer is duplex or not 3. what kind of paper it supports (landscape/portrait and also sizes)


Solution

  • perhaps this will help you.

    you need to get the attributeSet from the printer service to findout details of the printer.