47968Re: Executing Java/C# server method from svg
- Mar 2, 2005"Jan"
<janlmiller@comca To: sholla@...
Subject: Re: Executing Java/C# server method from svg
--- In email@example.com, sholla@a... wrote:
> I'd posted some information on this a while back.
> What I'm doing is this:
> Write COM component which you can embed in a parent HTML doc.
I think in my case, the COM component would be a C# compiled class
that has methods to retrieve data updates from the data source. What
do I need to put in my html doc? By the way, I have no COM
experience AT ALL. If you have an example you could send me, that
would be great.
---I tried this through the Interop samples - but the approach is not good
for me - since IE expects the # Dll on the web server and all that. I'll
see what I can send to you. But, basically this is the same as any Interop
samples that you have.
>Embed the SVG
> doc. in this HTML doc.
I am already doing this.
>In you event handler you can refer to the COM
> component interface methods as: parent.COMCompID.SendEvent(evt)
> where COMCompID is the id of the embedded COM object;SendEvent(evt)
> COM interface method
Would SendEvent be the name of the method in my C# class? What about
Yes - but again - this is Interop - so same rules apply i.e. IE can access
the methods off a C# interface only.
> You can embed a C# component too - I believe IE supports that. But,
> it easier to use a COM component and then use a C# app. to process
> SVGDocument directly to do whatever you need to do - you can get
> updates into your C# app. and process the data and accordingly
> SVG document with C# routines i.e. on the SVG DOM - based on the
> received SVGDocument object.
I may be missing something here, but I thought that the COM component
would reside on the web server and then would be called by the web
a C# component into my client app. I will be processing the svg doc
Also, I only want to do this if it will be supported by most browsers
and not just IE. Do you know if this is the case? If the component
is on the server, I didn't that that would matter.
If you need to do all you processing on the client - then it sounds like
you just need to parse some data updates through JS and update your SVG
document with that. So, in that case you just need a normal C# or other web
application that pulls in the required data. Your HTML based JS can process
this data and pass it in to SVG for update or further SVG JS processing I
guess. There are many examples of this around.
What I mentioned above is for a situation where all processing happens on
the server and no significant JS is used at all. The C# component support i
know exists for IE. You wuld have to see what Firefox and all support. I
think they'll all support ActiveX/COM components since I believe that is
part of the JS spec.
Thanks for your help.
> Thanks for the info. My understanding is that I will write a C#
> class that implements IHttpHandler and accesses my data store. This
> will somehow be registered within ASP.NET and my IIS web server.
> execute the "servlet" and retrieve data updates.
> Someone that I work with suggested that instead of using ASP.NET, it
> would probably be easier to use COM+. The C# dll would be
> with COM+. Then, I would just have to figure out how to execute
> way? If so, can you also use getURL/postURL? Does anyone have any
> opinions as to which method is preferable/easier? I don't know
> anything about ASP.NET or COM+ at this point.
> Thanks for your help.
> --- In firstname.lastname@example.org, "Rick Bullotta"
> <Rick.Bullotta@l...> wrote:
> > 1) Yes, but you would more likely be building a C# class than an
> ASP page
> > 2) Not unless you wanted to write in Java. If you use C#, ASP.NET
> > everything you need.
> > 3) Yes.
> > I would visit the Microsoft MSDN site to learn how to write
> > -----Original Message-----
> > From: Jan [mailto:janlmiller@c...]
> > Sent: Wednesday, March 02, 2005 10:33 AM
> > To: email@example.com
> > Subject: [svg-developers] Re: Executing Java/C# server method from
> > More basic questions. I am a Java/C# developer with not much web
> > experience. I don't know anything about ASP or JSP.
> > 1) I'm assuming that ASP.NET use C# (similar to JSP using Java)?
> > 2) I am using IIS web server and the client's requirement is to
> > with this. Do I need an app server to go along with this (such as
> > JBoss) or extension or something in order for servlets to run? Or
> > will my asp just run within IIS alone?
> > the asp class to retrieve my data?
> > Thanks a ton!! I'm a newbie to web development.
> > Jan
> > --- In firstname.lastname@example.org, "Rick Bullotta"
> > <Rick.Bullotta@l...> wrote:
> > > You'll want to write an ASP.NET class that implements
> > IHttpHandler. This is
> > > essentially the .NET equivalent of a servlet.
> > >
> > > Rick Bullotta
> > > Lighthammer Software (http://www.lighthammer.com)
> To unsubscribe send a message to:
> visit http://groups.yahoo.com/group/svg-developers and click "edit
> Yahoo! Groups Sponsor
> (Embedded image moved to file: pic28145.gif)
> (Embedded image moved to file: pic23281.gif)
> Yahoo! Groups Links
> To visit your group on the web, go to:
> To unsubscribe from this group, send an email to:
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> [Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>