Webmasters, gagnez de l'argent en affichant des bannières contextuelles Oxado
SourceForge.net Logo
Support This Project
   LeCouteauSuisse Project
Welcome ! [ Home ]  ·  [ Downloads ]  ·  [ Forums ]  ·  [ News ]  ·  [ Documentations ]  
[ Home ]

[ Documentations ]

Start and test service


Start CoffeeSupplyChain service

To use the service :

  • Copy in the directory named CoffeeSupplyChain this files from your solution :
    • CoffeeSupplyChainLibrary.dll
    • Order.xslt
    • LeCouteauSuisse.exe.config
    • Alert.exe
  • In background mode start the service with this command :
    net start CoffeeSupplyChain
  • In Console mode launch the service with this command :
    LeCouteauSuisse.exe -Console -Name:CoffeeSupplyChain
    The console will appear and clic on Start button, you will see :



Test CoffeeSupplyChain service

To test the service follow this steps :

  1. We send an alert of lake of coffee with this command :
    Alert.exe "Machine Coffee" "2sd floor, Desk 327" Milk 34
  2. In console mode you can see the alert :


  3. Look at the supervisor mailbox, you will receive this mail :


  4. We send an order. We create a file named orders.xml with this content :
    <?xml version="1.0" encoding="utf-8" ?>
    <orders>	
    	<order>
    		<reference>C2132</reference>
    		<name>Brasil Coffee</name>
    		<quantity>4</quantity>
    		<price>1.2</price>
    	</order>
    	<order>
    		<reference>C5532</reference>
    		<name>Milk</name>
    		<quantity>5</quantity>
    		<price>0.5</price>
    	</order>
    	<order>
    		<reference>M9887</reference>
    		<name>Green Tea</name>
    		<quantity>10</quantity>
    		<price>1.5</price>
    	</order>
    </orders>
    
  5. Copy the file orders.xml in the directory 'C:\CoffeeSupplyChain'
  6. In console mode you can see these alerts :


  7. Look at the supplier mailbox, you will receive three mails like this :



LeCouteauSuisse