Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 17th, 2003, 06:49 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default .NET Remoting application in vb.net

I need to build a VB.NET app (exe) that will reside on one machine, and will communicate with clients (browser sessions on the network). I need to have the clients send data that will be "seen" by the vb app, which then in turn will process data and handle a bunch of other tasks. The client is already built in an ASP.NET App. The problem I am having is in the "server" vb app, how do i communicate with browser clients? I mimiced the "server" functionality in a web service but that is not the model I want to use. I need to be doing Remoting but I don't know where to start on the server portion (vb exe).

Please, any help is greatly appreciated!
(I have exhausted every ms link I could find, but none have an example of what I am trying to do)
THANKS!
Reply With Quote
  #2 (permalink)  
Old November 17th, 2003, 10:28 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

There isn't really a way to communicate TO a client browser (oh wait.. what ever happened to push technology?? ;)). It sounds like you could use something like this (I'm a web guy so my suggestions usually involve web stuff):

You have an ASP.Net app on a server. It does whatever it is you need it to do.

You create a web service on that server, or you just add web service files to the existing web application. This web service will provide access to the data that the asp.net application also uses.

Then you create a VB.Net desktop application that talks to the web service to get data. It can then go off and do its work and when complete call back to the webservice to send data that's been processed.


I just found this article which might be useful to you:
http://www.codeproject.com/vb/net/RemotingTech.asp

Peter
------------------------------------------------------
Work smarter, not harder.
Reply With Quote
  #3 (permalink)  
Old November 17th, 2003, 11:24 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Planoie, from reading your other posts in these forums you seem very knowledgable and I was hoping you'd see my question - consider yourself trapped in my twisted world for a few hundred posts! LOL ;) Please endulge me a bit longer...

Anyway so what you are saying is that "Remoting" is not actually what I need, but to use a web service as the intermediary piece of the puzzle. From what I have read all roads seem to point to remoting but now as I think about it, remoting is not necessary, I don't think.

I did a test earlier and I can instantiate a webservice from the vb app and call it's functions no problem - the question I have really, should the asp.net portion and the vb.net portion be calling the same webservice object? How would I store the data in the WS object and trigger the vb exe to know when something was received. Can I hook the vb portion into some event from the web service? I am a little fuzzy on this part. Technically the vb server portion is not looking to push any data out to the IE browser, the other way round, the ie browsers are pushing the data to the vb exe via a web service - right? (I do however want to make a push server but that is another project entirely)

Any further insights into my middle piece of the puzzle is greatly appreciated - my eyes are bleeding and i have not slept (much).
thanks again
Reply With Quote
  #4 (permalink)  
Old November 18th, 2003, 12:00 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

I have not worked with remoting. You might want to investigate further.

What I am describing is basically more like two "pull" applications. You have your web app which could run adjacent to the webservice (both in the same ASP.net project/application). Then you have the VB.net windows app which "pulls" from the web service. You could have the ASP.Net app interface with the webservice, but that's not necessary, especially if it's residing in the same project as the webservice. There's little reason to include the extra middleman of the webservice if you can access the data directly. This is what I'm picturing:
Code:
+ - - - - - - - - - - +
    Web Application
|                     |
    +---------------+      +---------------+
|   |   ASP Pages   | |    |  Web Browser  |
  +-|               |<-----|               |
| | +---------------+ |    +---------------+
  |
| |                   |
  | +---------------+      +---------------+
| | |  Web service  | |    |  VB.Net App   |
  +-|     pages     |<-----|               |
| | +---------------+ |    +---------------+
  |
+ | - - - - - - - - - +
  |
  |   +------------+
  |   |  Database  |
  +-->|   Server   |
      +------------+
Using this model, you need to have the VB app poll the webservice for changes at some regular time period. This is how I would do it if I were building this type of setup that ran over the internet. However, this wouldn't be ideal if you are going to be running all of this in the same network. In that case you might be able to use remoting for a more affective system. I don't know much about remoting, and I don't hear a whole lot on these forums about it.

Peter
------------------------------------------------------
Work smarter, not harder.
Reply With Quote
  #5 (permalink)  
Old November 18th, 2003, 01:43 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, you have laid out my exact scenario. I have thought of the polling thing but I really don't want to go that route, and after doing some tests a little while ago, the webservices thing doesn't suit my needs either - I definitely have to use remoting but I am having a hard time finding the correct examples of what i am trying to do. I have to find a way to marshal the traffic entering IIS and redirect it to my VB Server portion, once the data is there I am good - then I can push responses back to the clients letting them know either the data went through ok or there was a bank or print error.

Thanks for your time - I will continue looking. if I find/devise a solution i will post it back up here. May take some time though.
Best regards,
James
Reply With Quote
  #6 (permalink)  
Old November 18th, 2003, 04:45 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just went to Barnes and Noble looking for "Advanced .NET Remoting in VB.NET", by Ingo Rammer July 2002 but they didn't stock it. Guess I will order it.
Reply With Quote
  #7 (permalink)  
Old November 19th, 2003, 09:59 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In case anyone is interested, if you go to IngoRammer.com he has the VB.NET code samples from the book on his site as a zipped download. It's worth a look and they run out of the box, but I still find I need the book which hopefully I will be able to find today.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.NET remoting fashley All Other Wrox Books 1 December 4th, 2008 03:46 AM
Remoting with C# and VB.Net AliJ General .NET 0 March 11th, 2007 06:07 AM
Vb.net application snowydust VB How-To 4 August 26th, 2004 08:57 PM
.NET Enterprise Development in VB.NET Remoting burkert All Other Wrox Books 0 June 24th, 2003 09:04 AM
.NET Remoting VB.NET Torro VS.NET 2002/2003 1 June 5th, 2003 05:47 PM



All times are GMT -4. The time now is 07:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.