473,727 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keeping information across SoapExtensions

I am trying to keep some cached information across several
SoapExtensions:

In my project there are client applications (web and console) that ask
a web service. The web service is also mine. But both the client and
the server could be different as long as they keep to the message
format defined. The information goes through some SoapExtensions in the
server and the client to do some processing like signing, schema
validation, signature validation.

There is a piece of information that I get from another web service.
This piece is used in the client and in several of the soap extensions.
Since it is the result of a network operation, I try to cache it, but,
since it is not explicitly part of the message, I don't know how to
pass it from client to client SoapExtension and across SoapExtensions.
I don't intend to pass it from client to service since each could be
done with a different technology.

I have tried with Session variables but I found that, while I have
access to the Session object in the client SoapExtensions, probably
because I tried with a web application, the Session is null in the
SoapExtensions of the service.
I have added EnableSession=y es to the web method and web.config has:
<sessionState mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424" sqlConnectionSt ring="data
source=127.0.0. 1;Trusted_Conne ction=yes" cookieless="fal se"
timeout="20"/>
So I guess that SoapExtensions don't have access to Session state.

I have rejected SOAP headers since I don't know how to fill them from
the client and the information should not be transmitted to an unknown
web service or client.

I could use the Apllication state, but either I keep only the result of
one check disabling the processing of parallel web service request, or
it could grow big from storing many pieces that might never be used
again.

So I think that I have to use the Cache state from the client and the
SOAP extensions. I have to find a key that avoids collisions between
the different requests, and the Cache will purge itself from old data.

Is that the proper way?

--
David Mediavilla <6kjfsyg02@snea kemail - com>

Oct 10 '06 #1
4 1294
6k*******@sneak email.com wrote:
I am trying to keep some cached information across several
SoapExtensions:

In my project there are client applications (web and console) that ask
a web service. The web service is also mine. But both the client and
There is a piece of information that I get from another web service.
This piece is used in the client and in several of the soap extensions.
So I think that I have to use the Cache state from the client and the
SOAP extensions. I have to find a key that avoids collisions between
the different requests, and the Cache will purge itself from old data.

Is that the proper way?
The Cache state works in the Soap Extensions, but I now realize that I
will not have a Cache in the console client.

Ideas?
--
David Mediavilla <6kjfsyg02@snea kemail - com>
--
David Mediavilla <6kjfsyg02@snea kemail - com>

Oct 10 '06 #2
<6k*******@snea kemail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
>I am trying to keep some cached information across several
SoapExtensions:

In my project there are client applications (web and console) that ask
a web service. The web service is also mine. But both the client and
the server could be different as long as they keep to the message
format defined. The information goes through some SoapExtensions in the
server and the client to do some processing like signing, schema
validation, signature validation.

There is a piece of information that I get from another web service.
This piece is used in the client and in several of the soap extensions.
Since it is the result of a network operation, I try to cache it, but,
since it is not explicitly part of the message, I don't know how to
pass it from client to client SoapExtension and across SoapExtensions.
I don't intend to pass it from client to service since each could be
done with a different technology.

Please be more clear about the flow of this piece of information. Does the
server get it from another web service during a client request, and is it
then used back on the client? Is it a SoapExtension on the server which
retrieves the information, and is it a SoapExtension on the client which
consumes it, or is it the client application itself?

In general, and without knowing the answers to the above questions, I'd
suggest you take another look at SOAP Headers, which are frequently used for
sending out of band information between SoapExtensions.

John
Oct 10 '06 #3
John Saunders wrote:
<6k*******@snea kemail.comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
I am trying to keep some cached information across several
SoapExtensions:

In my project there are client applications (web and console) that ask
a web service. The web service is also mine. But both the client and
the server could be different as long as they keep to the message
format defined. The information goes through some SoapExtensions in the
server and the client to do some processing like signing, schema
validation, signature validation.

There is a piece of information that I get from another web service.
This piece is used in the client and in several of the soap extensions.
Since it is the result of a network operation, I try to cache it, but,
since it is not explicitly part of the message, I don't know how to
pass it from client to client SoapExtension and across SoapExtensions.
I don't intend to pass it from client to service since each could be
done with a different technology.


Please be more clear about the flow of this piece of information. Does the
server get it from another web service during a client request, and is it
then used back on the client? Is it a SoapExtension on the server which
retrieves the information, and is it a SoapExtension on the client which
consumes it, or is it the client application itself?
Sorry, I'll try.

This pìece of information is about the X.509 certificate used to sign
the message. It is obtained from a web service in another organization.
It is required by the client application, several client SOAP
extensions and several server SOAP extensions. The server SOAP
extensions cannot trust the client so at least one asks the remote web
service itself with input extracted from the message.

Some of the SOAP extensions are used in both the client and the server,
so I'd like not to have to distinguish where the extension is.
In general, and without knowing the answers to the above questions, I'd
suggest you take another look at SOAP Headers, which are frequently used for
sending out of band information between SoapExtensions.
Can the SOAP headers be passed from the client application to its SOAP
extensions?
I'd have to manually delete them before actually putting the SOAP
message on the wire, wouldn't I?
John
Thanks.

--
David Mediavilla <6kjfsyg02 - sneakemail.com>

Oct 10 '06 #4
The client can create the header, and then the client SoapExtensions will be
able to see it as the message heads out towards the server. The server
SoapExtensions will also be able to see it.

There is no reason not to allow it to pass from the client to the server. In
fact, that's how the server SoapExtensions will see it.

Of course, your WSDL will have to describe the fact that the header exists,
and that the operation which accepts the header supports it.

John
Oct 10 '06 #5

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

Similar topics

6
3954
by: Astra | last post by:
Hi All I've noticed on quite a few ASP sites that when they have a 'MyAccount' section they transfer the site to https and then when you have logged into your account successfully and gone back to the majority of the site you move back to http whilst still being logged in. I've used the Session var method before to check if a user can have access to pages, but how on earth can I keep a handle on this when I flip the user between my...
179
44405
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
1
4225
by: Manoj G | last post by:
Hello, I was working with WSE & SoapExtensions and I realized something subtle, but could be an issue to consider. Using the SoapExtensions, I alter the contents of the SOAP message before the deserialization happens on the server. Now, in my web method, if I check the contents of the envelope using RequestSoapContext.Current.Envelope.OuterXml, I see that it does not reflect the changes to the Xml content that I have made in my Soap...
1
6119
by: Imran | last post by:
Hi, Please bear with me as I have only 1 weeks .NET experience. I am using VB.NET to write a stand-alone client application that connects to a Web service. I successfully send a request for a list of items (i.e. getItemList), and successfully receive the list. I then send a request for individual items from the list (i.e. getItem), and successfully receive the item.
0
1073
by: Marco Mendonça | last post by:
Hi, Is it possible to configure SoapExtensions in a WindowsForms application configuration file, like the Web.Config in ASP.NET applications? Best regards, Marco Mendonça.
2
1746
by: Ravikanth | last post by:
I created a web application in vs2003 which cosumes a web services. I used SoapExtensions to log the Request sent to server and Response received from server by adding a SoapExtension attribute to the web method in Reference.cs. This logic worked fine. But now I have a similar requirement and that has to be done vs2005. In vs2005 I created a Web Site project and added a web reference to the WSDL provided. But after adding the web...
1
1352
by: Max André Bündchen | last post by:
Suppose I have a WinForm project that call two Web Services: the AService and the BService :-)... In the AService I apply the ASoapExtension and in the BService I apply the BSoapExtension. This SoapExtensions work in two hands: client and server side, like a cryptography-decryptograpy extension. So, I have in the WinForm two proxies, the AProxy and the BProxy. How apply the correct SoapExtension for each one and don't lose that each time...
3
8293
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4. I have two domains -- www.mydomain1.com and www.mydomain2.com. Both point to the same IP address. I have two pages on that IP -- first.php <?php session_start(); $_SESSION = "hello"; ?>
0
1507
by: jehugaleahsa | last post by:
On Jun 13, 3:09 pm, "Bob Powell " <b...@spamkillerbobpowell.net> wrote: I apologize for the size. I should have probably put this on a blog or something. I'm not interested in tools. I interested in concepts / better ways of handling day-to-day design decisions.
0
8891
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9260
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6703
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4786
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.