SoapExtention on Ajax callback

K

Kevin

Is there a trick to getting a SoapExtenstion to kick in on Ajax callbacks?
Its seems like as soon as the web method is marked as [ScriptService(()] the
extension doesnt get called anymore?
 
W

Walter Wang [MSFT]

Hi Kevin,

This is a quick note to let you know that I am performing research on this
issue and will get back to you as soon as possible. I appreciate your
patience.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Walter Wang [MSFT]

Hi Kevin,

Based on my research, currently after ASP.NET AJAX replaced the default web
service handler, it doesn't call these SoapExtension when calling the web
service.

The web service handler is configured in web.config:

<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"/>


When the calling client is not a AJAX client, the handler will delegate
call to the original web service handler, in these case, the SoapExtension
still works.

Sorry I didn't find a workaround to make the replaced handler call
SoapExtension.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top