Similar Threads:
1.Using a COM object from within a Windows Service
From within a Windows Service how can I determine my current ProcessID or
ProcessName. I'm creating a COM object and want to return focus back to my
original process to allow the application to register in the (ROT - not sure
what it stands for anyway but that's how it works in a WinForm).
Subsequently, the code looks for a running instance of the COM object using
the GetObject command.
From a Windows Form, the command in question is
AppActivate(title:=me.title)
In a service, you don't have a form so what would you use instead.
Thus I'm looking for...
Function GetApplication(parms) as object
MyProcess = something
dim oAccess as "Access.Application"
create / open a new comobject (e.g. Microsoft Access in Hidden mode) ...
' Return to Main Process to allow it to Register in ROT
AppActivate(myprocess) <===
' Wait a few seconds and then get the object
oAccess = Getobject(database I opened earlier)
Return oAccess
end function
In this instance, I am attempting to load an instance of Microsoft Access,
run a report to disk from within a Windows Service. Given that a service can
have no user interface am I destined for failure? If so, what is my best
alternative to accomplish this task. I want this action to happen on a
schedule without requiring a user to login (thus I'm trying to use a
service). I've got it (report generator) working from within a regular .net
WinForm application and simply want it to be triggered by the service.
Any ideas / suggestions would be much appreciated.
Thanks,
2.initialize COM within a web service
I'm currently trying to use API's in Microsoft Virtual Server 2005. I can
initialize COM just fine from anything other then a web service whihc is were
i would like to make available the methods that will do the virtual server
work i need.
I have tryed to initialize COM from everywhere in the web service and i
always get the same message that states that you have to initialize COm
before doign anything or marshaling ect...
I'm starting to think that this cant be done but i'm new to all this so that
could explain alot.
Thanks for any help
3.COM+ Web Services (ie remoting com+ from IIS)
Whilst I await a response for the problem I have getting this working for me
I would like to ask another question related to enabling COM+ components to
be called as web services (checking the SOAP checkbox on the activation tab
of the com+ application properties).
Are there any performance issues with this method, instead of wrapping up
the classes and exposing webmethods yourself? If so what can be done to
minimise these?
All com+ applications in this scenario are c# (managed code).
--------------------------
Shaun Venus
emailid: sunevnuahs
domain: hotmail.com
--------------------------
4.Referencing web service complex data type within a second web service (like a delegate)
Hi,
I am trying to figure out if ASP.NET XML Web Services and the WSDL
standard can handle this type of scenario:
I have two web services, and one consumer client application. Lets
call web service 1 "basews", and web service 2 "custom", and the
client app "client".
I want basews to define a delegate of sorts (where the delegate
signature contains complex data types as arguments and return types),
and then custom ws would conform to the basews delegate signatures, so
that within client, I can call them similar to how delegates actually
work in .NET (with the obvious overhead of SOAP, etc).
If basews has the following pseudo-structure (VB'ish) :
-----------------
Class basews
<WebMethod()> Public Function getComplexDataType(byval req as
MyRequest) as MyDataType
...
End Class
Public Class MyDataType
Public field as String
...
End Class
Public class MyRequest
Public field as Integer
...
End Class
-----------------
where MyDataType and MyRequest (really can be more complex) are added
to basews WSDL automatically by .NET.
Can I create "custom" ws like this:
-----------------
Class custom
<WebMethod()> Public Function customGetComplexDataType(byval req as
basews.MyRequest) as basews.MyDataType
...
End Class
-----------------
such that within "client", it treats the return type of both web
service's methods as the same type? Or if this is not possible, is
there a way of at least being able to treat
basews.MyDataType/MyRequest and custom.MyDataType/MyRequest the same
so that I only have to write one routine to populate/read MyDataType
and MyRequest within "client"?
This is going to be used with dynamic web service binding techniques
so that I can take an arbitrary WSDL and method names that conform to
certain signatures (like delegates) and be able to call them
appropriately.
Thanks for the replies. Also, if you could copy me at 'mdearman
NOSPAM at libera.com' I would be grateful so I don't accidently miss
any replies.
5.calling a web service from within a web service
hi
i'm looking for some heads up info regarding calling and using a web service
from within another web service. is this acceptable practice? if not why?
what should i be thinking about here?
cheers
6. Using an object pool within a web service
7. DataGridView object within a collection from web services
8. Problem with Web Service and COM Object