Hi. I need mini software that print automacticly PDF's.
It should check every Minute for new PDF's from my webservice. The webservice answers via XML like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orders>
<type>PDF</type>
<order>
<order_id>151519</order_id>
<customer>John Dow</customer>
<customer_addr>Second Street, 50005 Berlin</customer>
<order_price>16.50€</order_price>
<file>[login to view URL]</file>
</order>
</order>
There are 2 types. When orders->type=='PDF" the software should should send a printjob to printer.
When orders->type=='XML" the software should copy xml->orders->order->file (XML) to the path, which is specified in the settings
If webservice cannot call the in the Settings defined url, the software should warn user via playing a audiofile. If Webservice answers not via XML with at leath an empty <orders> field the software should warn user by playing the same audiofile too...
The settings should contain:
1. Webservice URL
2. Path to Copy XML Files, when the type value of webservice response is "xml". Fe: <type>XML</type>
2. Pasword
GUI:
The GUI should contain following:
1. Should show the last calling time of the url (Like "20:01") or "Error: Could not call URL"
2. Show the last 100 rows with an "show" and "print again" button.
Logics for :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orders>
<type>PDF</type>
</orders>
... should do nothing...
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orders>
<type>PDF</type>
<order>
<order_id>151519</order_id>
<customer>John Dow</customer>
<customer_addr>Second Street, 50005 Berlin</customer>
<order_price>16.50€</order_price>
<file>[login to view URL]</file>
</order>
<order>
<order_id>151520</order_id>
<file>[login to view URL]</file>
...
</order>
</order>
... should send 2 printjobs to printer.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orders>
<type>XML</type>
<order>
<order_id>151519</order_id>
<customer>John Dow</customer>
<customer_addr>Second Street, 50005 Berlin</customer>
<order_price>16.50€</order_price>
<file>[login to view URL]</file>
</order>
</order>
... should copy/save [login to view URL] to specified path from settings.
I am an experienced C# programmer, I have done many like jobs ,calling webservice and processing xml, printing pdf save as xml. because I am new comer,I will accept low price.