473,320 Members | 2,117 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,320 software developers and data experts.

caching webmethods

if my webmethod parameter is an object, it doesn't seem to cache the
output even though the xml serialised version of this object is the
same as the previous call. Is this right?

if I call the same web method with two different RequestObjects(see
below) but both with the same attributes like so:
refTransNum=80
dbId="myDB"
all other attributes not set.

the webmethod output is not cached but I was expecting it to be. Does
this mean the parameters have to be simple parameters? I wanted to use
an object parameter so it could be extended more easily.

i.e. WebMethod parameter is RequestObject.
RequestObject consists of:
public string dbId
public System.Collections.Generic.List<WSAdditionalParama ddParams
public GroupType grpType;
public int refTransNum;
public string[] idList;

public class WSAdditionalParam
{
public WSAdditionalParam()
{
}
public string Name;
public object Value;

public static object GetParam(List<WSAdditionalParam>
addParams, string paramName)
{
ParamFilter filter = new ParamFilter(paramName);
if (addParams != null)
{
WSAdditionalParam param =
addParams.Find(filter.Match);
if (param != null)
return param.Value;
}
return null;
}
}

[Serializable]
public enum GroupType
{
T = 0,
Z= 1,
D = 2,
S = 3,
E = 4,
L = 5,
P = 6,
ST = 7,
TB = 8,
C = 9
}

Also, what happens if 2 calls come in one after the other but the
first call hasn't finished when the second one comes in? Does the
second one do all the work all over again or does it wait for the
first call to output and then use the same output?

thanks

Feb 21 '07 #1
0 1557

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

Similar topics

0
by: mdh | last post by:
I have an application written for mod_perl and Apache that needs to be able to send some XML queries to a WebMethods server for access to corporate systems. I have been attempting to use LWP to...
0
by: Troy Simpson | last post by:
Hi, I have a website which is made up of dynamic pages. Each page that's loaded has some code which looks at which template to load amongst other things, which causes the page to take a little...
4
by: Baldor Renwald | last post by:
How can I make two or more webmethods run under the same transaction? Thanks
14
by: Bert Vandenberghe | last post by:
Hi, I was wondering if there are any best practices on the creation of webmethods? I'll try to explain this a little more: My problem is that we are changing an existing (large) DCOM application...
1
by: khr128 | last post by:
I have a well-tested COM object. Ican use it from c# console and windows apps, but WebMethod in a WebService refuses to load this object. The COM object loads into MTA. Any thoughts and/or...
4
by: DraguVaso | last post by:
Hi, For my webservice I need the folowwing security: - all the webmethods must be accesible inside the LAN (for our employees) - by the internet only some of the methods should be accessible (by...
5
by: Raj | last post by:
What is the purpose of file system caching while creating a tablespace? Memory on the test server gets used up pretty quickly after a user executes a complex query(database is already activated),...
2
by: =?Utf-8?B?SXZhbiBBYnJhbW92?= | last post by:
Everything has been fine for years and the code Dim dsNews As DataSet Dim ws As New localhost.Service dsNews = ws.GetNews() was working on my developer PC, but now I get the error: "There is...
0
by: sdtdevelop | last post by:
Hi all, I have build a webservice and now i am trying to call it from webMethods. Binding succeeds but gives me below warning messages: WSDL code: S-9038 Error: Unknown binding style was...
7
by: Killer42 | last post by:
I'm doing some webMethods training, and just wondered - where would be the appropriate forum to ask questions about it?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.