Discussion:
AX2009 Web Service StaticClassMethod caching?
(too old to reply)
Axel Kühn
2009-09-08 21:49:12 UTC
Permalink
HI Chris,

are you using the com or the net connector (business connector)?

if you are using the com connector, there was (AX 3.0) a option in the
client configuration tool to reset the com connector to release all old or
cached object versions.

Which version of AX you are using?
--
Sincerely yours
Axel Kühn (visit my Dynamics AX blog at: http://blog.ak-home.net)
Hello,
We have built a bunch of web services using the CallStaticClassMethod to
retreive and set data from within AX.... I have wrapped these calls using
visual studio to create a web service.
The issue I am having is after I make a change to a static class method and
add a new field that will be returned in the Web service call, sometimes the
new field is not shown in the webservice.
It's as if IIS or the .Net connector is running a cached/older version of
the static class method.
I've tried an IIS Reset, restart AOS, IIS disconnect & re-connect, AX
Dance... to attempt to get the web service to see the latest/modified results.
Even stranger, when debugging the web service in Visual studio the correct
fields are being returned. But viewing the re-generated web service shows the
results from the older (overwritten) static method.
Any Ideas on what I'm missing here?
Thanks a ton in advance.
--
Chris
Axel Kühn
2009-09-09 09:56:01 UTC
Permalink
Hi Chris,

never seen this for AX2009 or the .net business connector.

Did you tried to called the refresh functions after you modified the
method(s)?

under "Tools/Development/Tools/Application objects" please call
1. Refresh Dictionary
2. Refresh Data
3. Refersh AOD
--
Sincerely yours
Axel Kühn (visit my Dynamics AX blog at: http://blog.ak-home.net)
Hey Axel,
Using AX2009 & the .NET business connector.
We used to be using version 3 and I have looked everywhere for the similar
function... can't find it anywhere.
Chris
--
Chris
Post by Axel Kühn
HI Chris,
are you using the com or the net connector (business connector)?
if you are using the com connector, there was (AX 3.0) a option in the
client configuration tool to reset the com connector to release all old or
cached object versions.
Which version of AX you are using?
--
Sincerely yours
Axel Kühn (visit my Dynamics AX blog at: http://blog.ak-home.net)
Hello,
We have built a bunch of web services using the CallStaticClassMethod to
retreive and set data from within AX.... I have wrapped these calls using
visual studio to create a web service.
The issue I am having is after I make a change to a static class method and
add a new field that will be returned in the Web service call, sometimes the
new field is not shown in the webservice.
It's as if IIS or the .Net connector is running a cached/older version of
the static class method.
I've tried an IIS Reset, restart AOS, IIS disconnect & re-connect, AX
Dance... to attempt to get the web service to see the latest/modified results.
Even stranger, when debugging the web service in Visual studio the correct
fields are being returned. But viewing the re-generated web service shows the
results from the older (overwritten) static method.
Any Ideas on what I'm missing here?
Thanks a ton in advance.
--
Chris
Ralph
2010-04-14 11:05:01 UTC
Permalink
Hi Chris, Axel,

Thanks for your post. I experienced the very same issue, but unfortunately
your suggestions didn't work for me.

For me, clearing the *.auc files did the job. See more info how to clear
here:
http://dynamics-ax-live.blogspot.com/2010/03/more-information-about-auc-file.html

A complete list of things you can try (this includes your suggestions and
clearing the *.auc files) here:
http://www.artofcreation.be/2009/05/13/problem-solving-in-ax/

Cheers
Ralph
upzone
2010-08-06 09:23:03 UTC
Permalink
Here is my solution, maybe can help you.

1. Open SQL Server and find your ax databaes, update the GlobalGUID in the
SysSQMSettings table with an empty GUID
(00000000-0000-0000-0000-000000000000).

3. restart AOS

4. restart IIS.
Hello,
We have built a bunch of web services using the CallStaticClassMethod to
retreive and set data from within AX.... I have wrapped these calls using
visual studio to create a web service.
The issue I am having is after I make a change to a static class method and
add a new field that will be returned in the Web service call, sometimes the
new field is not shown in the webservice.
It's as if IIS or the .Net connector is running a cached/older version of
the static class method.
I've tried an IIS Reset, restart AOS, IIS disconnect & re-connect, AX
Dance... to attempt to get the web service to see the latest/modified results.
Even stranger, when debugging the web service in Visual studio the correct
fields are being returned. But viewing the re-generated web service shows the
results from the older (overwritten) static method.
Any Ideas on what I'm missing here?
Thanks a ton in advance.
--
Chris
mawa
2010-09-16 17:09:03 UTC
Permalink
Many thanks upzone!

Clearing the cache guid is a very good trick! Just restarting the iis & aos
and refreshing AOD seems not to work allways(strange)

Loading...