473,386 Members | 1,668 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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=yes to the web method and web.config has:
<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="false"
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@sneakemail - com>

Oct 10 '06 #1
4 1273
6k*******@sneakemail.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@sneakemail - com>
--
David Mediavilla <6kjfsyg02@sneakemail - com>

Oct 10 '06 #2
<6k*******@sneakemail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.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*******@sneakemail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.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
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...
179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
1
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...
1
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...
0
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
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...
1
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...
3
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();...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.