DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 21:10:57 +0530,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Lalit
          2    Eliyahu Goldin
                 3    John Mott
          4    Ladislav Mrnka
          5    Mark Rae [MVP]
          6    Laurent Bugnion, MVP
          7    Lalit


Calling Windows service from a website.   
I want to create an application possibly windows service that will generate
PDF files and place them into a specific folder.
I have a website that will use this service to generate PDF files and return
them to user.

Is it possible to call this win service from within the website?
If yes how could we do this?

thanks
Lalit
Date:Tue, 14 Aug 2007 21:10:57 +0530   Author:  

Re: Calling Windows service from a website.   
It is much easier to communicate with the service via a file that the web 
app will write and the service will read.

-- 
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Lalit"  wrote in message 
news:eyt4Dmo3HHA.2108@TK2MSFTNGP02.phx.gbl...

>I want to create an application possibly windows service that will generate
> PDF files and place them into a specific folder.
> I have a website that will use this service to generate PDF files and 
> return
> them to user.
>
> Is it possible to call this win service from within the website?
> If yes how could we do this?
>
> thanks
> Lalit
>
> 
Date:Tue, 14 Aug 2007 19:45:15 +0300   Author:  

RE: Calling Windows service from a website.   
Hi Lalit,
the basic technique you are looking for is called RPC (remote procedure 
call) - in .net world it is known as remoting. But is this really what you 
need? Why do you need to run you pdf component as separate application?

Regards,
Ladislav

"Lalit" wrote:


> I want to create an application possibly windows service that will generate
> PDF files and place them into a specific folder.
> I have a website that will use this service to generate PDF files and return
> them to user.
> 
> Is it possible to call this win service from within the website?
> If yes how could we do this?
> 
> thanks
> Lalit
> 
> 
> 
Date:Tue, 14 Aug 2007 11:30:00 -0700   Author:  

Re: Calling Windows service from a website.   
"Lalit"  wrote in message 
news:eyt4Dmo3HHA.2108@TK2MSFTNGP02.phx.gbl...


>I want to create an application possibly windows service that will generate
> PDF files and place them into a specific folder.
> I have a website that will use this service to generate PDF files and 
> return
> them to user.
>
> Is it possible to call this win service from within the website?
> If yes how could we do this?


Following on from Ladislav' response, have you considered something like 
this: http://www.siberix.com ?

No need for a separate application at all...


-- 
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Tue, 14 Aug 2007 19:43:35 +0100   Author:  

Re: Calling Windows service from a website.   
Hi,

Ladislav Mrnka wrote:

> Hi Lalit,
> the basic technique you are looking for is called RPC (remote procedure 
> call) - in .net world it is known as remoting. But is this really what you 
> need? Why do you need to run you pdf component as separate application?
> 
> Regards,
> Ladislav


Note however that if you go the "remoting" route, you should definitely 
take a good look at WCF (in .NET 3.0), which supercedes (and will 
eventually replace) remoting.

Greetings,
Laurent
-- 
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Date:Wed, 15 Aug 2007 09:15:45 +0200   Author:  

Re: Calling Windows service from a website.   
"Eliyahu Goldin"  wrote  ..

> It is much easier to communicate with the service via a file that the web 
> app will write and the service will read.
>


I agree with this assessment. Given the vagaries of knowing how many web 
instances may be open at any time and the fact that there is only one web 
service active, a good methodology is to have the web page create a command 
file with the instructions for what to do a guid for a name in some format 
(xml perhaps) and have it place it into a "drop" directory.

The web service has a loop where it waits on changes in the drop directory 
and processes the files located there. Once processed they are deleted or 
moved to a 'processed' directory. This makes it easy to handle a large burst 
of activity, requests are just queued up and processed when the service gets 
to it and the service is not overwhelmed.

John
nice clean examples at www.nicecleanexamples.com



>
> "Lalit"  wrote in message 
> news:eyt4Dmo3HHA.2108@TK2MSFTNGP02.phx.gbl...
>>I want to create an application possibly windows service that will 
>>generate
>> PDF files and place them into a specific folder.
>> I have a website that will use this service to generate PDF files and 
>> return
>> them to user.
>>
>> Is it possible to call this win service from within the website?
>> If yes how could we do this?
>>
>> thanks
>> Lalit
>>
>>
>
> 
Date:Wed, 15 Aug 2007 10:57:59 -0500   Author:  

Re: Calling Windows service from a website.   
I have issues with the user rights while doing this. We are using a pdf 
printer driver to create pdf.
Using ASPNet user we cannot do this. we tried impersanation but it gives 
problem and that user has to be logged into the webserver while printing.
we tried WinAPI to call this but that did not work too.

So now we are trying to run this service outside of webserver (i.e. 
webserver will not start the exe). It will just request to do the job.

"Ladislav Mrnka"  wrote in message 
news:3B62E661-5964-4887-8E6F-A6081F7E45F7@microsoft.com...

> Hi Lalit,
> the basic technique you are looking for is called RPC (remote procedure
> call) - in .net world it is known as remoting. But is this really what you
> need? Why do you need to run you pdf component as separate application?
>
> Regards,
> Ladislav
>
> "Lalit" wrote:
>
>> I want to create an application possibly windows service that will 
>> generate
>> PDF files and place them into a specific folder.
>> I have a website that will use this service to generate PDF files and 
>> return
>> them to user.
>>
>> Is it possible to call this win service from within the website?
>> If yes how could we do this?
>>
>> thanks
>> Lalit
>>
>>
>> 
Date:Thu, 16 Aug 2007 17:02:57 +0530   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us