473,503 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing Remote objects in an XML Web Service - Which port is use

Hi,

I am making a prototype system with Remoting in the bottom of the system. An
XML Web Service is using the remote object on an IIS to present data.

I am using a TcpChannel for communicating between the XML Web Service and
the host for the remote object. Within the host a port is defined and the
channel registered. It starts listening for requests. The destination port is
therefore clearly defined.

However, when using the remote object in the XML Web Service - what is the
outgoing port for the communication with the listening host?

Architecture:

Client
|
|HTTP Port 80
|
XML Web Service
|
Port? |TCP Port 8080
|
Host for remote object
Thanks,
Fredric Ragnar
Nov 23 '05 #1
3 2480
Hello Fredric,
There is no notion of a port on the outbound request... I believe the
..net implementation for tcp/ip just opens a socket to the remoting host.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I am making a prototype system with Remoting in the bottom of the
system. An XML Web Service is using the remote object on an IIS to
present data.

I am using a TcpChannel for communicating between the XML Web Service
and the host for the remote object. Within the host a port is defined
and the channel registered. It starts listening for requests. The
destination port is therefore clearly defined.

However, when using the remote object in the XML Web Service - what is
the outgoing port for the communication with the listening host?

Architecture:

Client
|
|HTTP Port 80
|
XML Web Service
|
Port? |TCP Port 8080
|
Host for remote object
Thanks,
Fredric Ragnar

Nov 23 '05 #2
Hello Dilip and everybody else,

Thank you - that explains why I did not found it in the documentation of
remoting.

One intriguing thing I came across with this architecture concerns
HttpChannel. When accessing the host for the remote object, the Windows
Service (NT Service), I did not need to declare a TcpChannel and register it
in the client, i.e. the XML Web Servic. If a TcpChannel is declared and
registered the application will not work.

The ideas for the server/client architecture using Remoting I got from:
http://www.mastercsharp.com/chapter_06.htm

There it explicitly says that a declaration of the channel and registration
is needed in the client. However, when I modified the client and uncommented
the declaration and registration of the channel it still worked. This was
illogical and I do not have an explanation! Is there any obvious reason I am
missing concerning Remoting?

Regards,
Fredric Ragnar
I got the

"Dilip Krishnan" wrote:
Hello Fredric,
There is no notion of a port on the outbound request... I believe the
.net implementation for tcp/ip just opens a socket to the remoting host.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I am making a prototype system with Remoting in the bottom of the
system. An XML Web Service is using the remote object on an IIS to
present data.

I am using a TcpChannel for communicating between the XML Web Service
and the host for the remote object. Within the host a port is defined
and the channel registered. It starts listening for requests. The
destination port is therefore clearly defined.

However, when using the remote object in the XML Web Service - what is
the outgoing port for the communication with the listening host?

Architecture:

Client
|
|HTTP Port 80
|
XML Web Service
|
Port? |TCP Port 8080
|
Host for remote object
Thanks,
Fredric Ragnar


Nov 23 '05 #3
Hello Dilip and everybody else,

Thank you. That was helpful and it explains why I did not find it in the
documentation.

There is one intriguing fact I came across in this prototype using the
HttpChannel class. I based the client/server architecture idea from:
http://www.mastercsharp.com/chapter_06.htm. There it says that the client has
to declare a HttpChannel and register it. When using that concept in my
client, i.e. the XML Web Service, only one call is possible since the service
stops responding after one call to a remote object. Uncommenting the
declaration of the HttpChannel and registration solves the malfunctioning
service.
I went back to the sample client/server solution from
http://www.mastercsharp.com/chapter_06.htm and uncommented the declaration of
the HttpChannel and registration of the channel in the client and it worked
anyway.

This seems illogical. However, I must miss something obvius feature in
Remoting. The question is then why does it work to invoke a method on a
remote object without declaring and register a HttpChannel in the client?

Regards,
Fredric Ragnar

"Dilip Krishnan" wrote:
Hello Fredric,
There is no notion of a port on the outbound request... I believe the
.net implementation for tcp/ip just opens a socket to the remoting host.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I am making a prototype system with Remoting in the bottom of the
system. An XML Web Service is using the remote object on an IIS to
present data.

I am using a TcpChannel for communicating between the XML Web Service
and the host for the remote object. Within the host a port is defined
and the channel registered. It starts listening for requests. The
destination port is therefore clearly defined.

However, when using the remote object in the XML Web Service - what is
the outgoing port for the communication with the listening host?

Architecture:

Client
|
|HTTP Port 80
|
XML Web Service
|
Port? |TCP Port 8080
|
Host for remote object
Thanks,
Fredric Ragnar


Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2975
by: Jaydeep | last post by:
Hello, I am facing a strange problem. Problem accessing remote database from ASP using COM+ server application having VB components (ActiveX DLL) installed. Tier 1 : ASP front End (IIS 5.0) Tire...
1
1655
by: Joel Lyons | last post by:
I have a remote object with a public property (see code below). A client can use this property to receive a ref to another remote object and use it's properties. This works great over a LAN, but...
2
1653
by: wan2tri | last post by:
hello, good day to all of you, hi, im am new in .net , how can i access two or more object remotely , because currently im only accessing one object, windows services is the host, i have a...
1
1937
by: Peter Lorz | last post by:
Hello, I have a simple problem. I got two visual studio projects, one is an application, the other a common windows service. The application needs to get a remote reference of the service. Now...
2
1222
by: Mark | last post by:
I have a .NET service I wrote running on my web server. I'd like to be able to make infrequent calls from my my web application to this service. For example, my service does some work every 30...
15
2051
by: JJ | last post by:
A current requirement I am facing is the all business objects be stateless remote components hosted in IIS. I am partial to web services myself. However, it is insisted that IIS hosted remoting be...
5
3895
by: Mike | last post by:
I'm having trouble accessing SQL2005 Standard Edition as a second instance of SQL Server where the first instance is SQL 2000 Enterprise Edition. I installed SQL 2005 as a named instance...
0
995
by: 124256 | last post by:
I'm trying to get an event-handler relationship set up over a remote tcp connection. I have set the security level so that I can serialize any object (full). My server has a "game" object which has...
8
7269
by: John | last post by:
Hi We had an sbs 2003 with isa 2000 server. We wre able to access a remote sql server (hosted at our web host) just fine. We replaced the server with a new sbs 2003 r2 with isa 2004 server and...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.