Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > internal web service calling multiply types of external web servic

Reply
Thread Tools

internal web service calling multiply types of external web servic

 
 
Wendy Elizabeth
Guest
Posts: n/a
 
      11-06-2004
I am going to be writing a web service in Visual Basic .NET internally for
my company. This web service is going to be setup to send various kinds of
messages to the internet since the main production servers currently reside
in the DMZ. The main production servers are in the DMZ and are behind a
firewall so they are not able to send messages externally to the internet.
This internal Visual Basic.NET web service will be calling various types
of other external web services so that the information can be consumed. For
example one call will be setup to obtain financial information, another web
service would be to obtain weather data, other web service would be to obtain
travel information.
Thus each type of call to an external web service will be different.
How would you setup this internal web service to be able to process the
different types of web service calls that it needs to be made in Visual
Basic.NET?


 
Reply With Quote
 
 
 
 
Wendy Elizabeth
Guest
Posts: n/a
 
      11-08-2004
"Christian Weyer [MS RD, MVP]"

This infomation was very helpful. You did answer my question. However, I am
new to .NET and this will be my first programming project usually any .net
application.

My question is what kind of information would I pass to the internal server
so it knows what program is calling it and how to send the response back to.
I have also heard about thread programming when different applications are
calling a particular server. Would I do that type of programming here?

Thank you for your assistance.

Wendy Elizabeth

"Christian Weyer [MS RD, MVP]" wrote:

> The obvious option is to have a (static) proxy calss for each of the
> external Web services.
>
> Then there is the DynWsLib which you might want to try:
> http://weblogs.asp.net/cweyer/archiv...7/07/9769.aspx
> Maybe it can help you here...
>
> Cheers,
> --
> Christian Weyer
> thinktecture
> http://www.thinktecture.com
> In-depth support and consulting for software architects and developers
>
> *Smells like service spirit-Weblog
> http://weblogs.asp.net/cweyer
>
> *Independent Microsoft Regional Director
> http://www.microsoft.com/rd
>
>
> "Wendy Elizabeth" <(E-Mail Removed)> wrote in
> message news:(E-Mail Removed)...
> > I am going to be writing a web service in Visual Basic .NET internally
> > for
> > my company. This web service is going to be setup to send various kinds of
> > messages to the internet since the main production servers currently
> > reside
> > in the DMZ. The main production servers are in the DMZ and are behind a
> > firewall so they are not able to send messages externally to the internet.
> > This internal Visual Basic.NET web service will be calling various types
> > of other external web services so that the information can be consumed.
> > For
> > example one call will be setup to obtain financial information, another
> > web
> > service would be to obtain weather data, other web service would be to
> > obtain
> > travel information.
> > Thus each type of call to an external web service will be different.
> > How would you setup this internal web service to be able to process the
> > different types of web service calls that it needs to be made in Visual
> > Basic.NET?
> >
> >

>
>
>

 
Reply With Quote
 
 
 
 
Dan Rogers
Guest
Posts: n/a
 
      11-15-2004
Hi Wendy,

Without a more in-depth conversation, it is difficult to determine the data
that your original callers will need to pass. In general, you should be
designing the service interface on the aggregating service (the one that
calls the other services and aggregates a response) to take in parameters
that satisfy your requirements. If you want the caller to pass in three
flags that make the service implementation decide that if flag1 is set, it
calls the first service, then checks flag2 and calls a second service, etc,
then your web method needs to expose these parameters.

As for aggregating the responses into a single type, your web method will
need to return a compound type that includes the data from the called
services that you want to have passed back to the original caller. This is
most likely a class that you create an instance of on the service side,
fill with the data as received from the other service calls, and then when
all filled up, gets returned as the return type from your method call.

I hope this helps,

Dan Rogers
Microsoft Corporation
--------------------
>Thread-Topic: internal web service calling multiply types of external web

se
>thread-index: AcTFRgYcF2jLDMRhQPyQGRl3JP55fg==
>X-WBNR-Posting-Host: 68.13.53.21
>From: =?Utf-8?B?V2VuZHkgRWxpemFiZXRo?=

<(E-Mail Removed)>
>References: <(E-Mail Removed)>

<#(E-Mail Removed)>
>Subject: Re: internal web service calling multiply types of external web se
>Date: Sun, 7 Nov 2004 19:50:01 -0800
>Lines: 64
>Message-ID: <(E-Mail Removed)>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl

microsoft.public.dotnet.framework.aspnet.webservic es:26407
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>"Christian Weyer [MS RD, MVP]"
>
>This infomation was very helpful. You did answer my question. However, I

am
>new to .NET and this will be my first programming project usually any .net
>application.
>
>My question is what kind of information would I pass to the internal

server
>so it knows what program is calling it and how to send the response back

to.
>I have also heard about thread programming when different applications are
>calling a particular server. Would I do that type of programming here?
>
>Thank you for your assistance.
>
>Wendy Elizabeth
>
>"Christian Weyer [MS RD, MVP]" wrote:
>
>> The obvious option is to have a (static) proxy calss for each of the
>> external Web services.
>>
>> Then there is the DynWsLib which you might want to try:
>> http://weblogs.asp.net/cweyer/archiv...7/07/9769.aspx
>> Maybe it can help you here...
>>
>> Cheers,
>> --
>> Christian Weyer
>> thinktecture
>> http://www.thinktecture.com
>> In-depth support and consulting for software architects and developers
>>
>> *Smells like service spirit-Weblog
>> http://weblogs.asp.net/cweyer
>>
>> *Independent Microsoft Regional Director
>> http://www.microsoft.com/rd
>>
>>
>> "Wendy Elizabeth" <(E-Mail Removed)> wrote in
>> message news:(E-Mail Removed)...
>> > I am going to be writing a web service in Visual Basic .NET

internally
>> > for
>> > my company. This web service is going to be setup to send various

kinds of
>> > messages to the internet since the main production servers currently
>> > reside
>> > in the DMZ. The main production servers are in the DMZ and are behind a
>> > firewall so they are not able to send messages externally to the

internet.
>> > This internal Visual Basic.NET web service will be calling various

types
>> > of other external web services so that the information can be

consumed.
>> > For
>> > example one call will be setup to obtain financial information,

another
>> > web
>> > service would be to obtain weather data, other web service would be to
>> > obtain
>> > travel information.
>> > Thus each type of call to an external web service will be different.
>> > How would you setup this internal web service to be able to process

the
>> > different types of web service calls that it needs to be made in Visual
>> > Basic.NET?
>> >
>> >

>>
>>
>>

>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP System Files Error when installing Servic Pack 2 Majongtore Computer Support 1 08-02-2007 11:26 PM
erquest for a servic/repair manual of a Nikon SQ Jan Digital Photography 0 08-01-2007 04:44 PM
RE: Finding user that caused FileSystemWatcher event in Windows Servic =?Utf-8?B?Sm9lbA==?= MCSD 1 02-06-2007 09:08 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
Possible to add a Progress Bar to a Client consuming a slow Servic johnmann56 ASP .Net Web Services 2 06-17-2004 09:18 AM



Advertisments