Hi Alan,
For SOAPExtension, of course if can be used at both serverside and
clientside (for .net webservice implementation). And the configuration of
soapExtension at clientside proxy is just like we do in asp.net server
application. We can register the SoapExtension through:
1. client application's app.config file, for example:
==============
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type="SimpleExtensionLib.ReverseMessageExtension,
SimpleExtensionLib"
priority="3"
group="0" />
<add type="SimpleExtensionLib.LogMessageExtension, SimpleExtensionLib"
priority="4"
group="0" />
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>
==============
2. Also, we can apply soapExtension for individual webmethod in proxy class
by directly applying our cutsom ExtensionAttirbute on the webmethod in the
autogenerated proxy source file, like:
=================
[SimpleExtensionLib.ReverseMessageExtension(Priorit y=1)]
public string HelloWorld() {
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
}
=================
Hope helps. Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
From: "A.M-SG" <al******@newsgroup.nospam>
Subject: How do I deploy a SOAP extension on the client proxy
Date: Tue, 13 Sep 2005 10:41:37 -0400
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <ue**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: 199.71.241.10
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:7879
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Hi,
I understand that we can install SOAP extensions through web.config at the
server side. How do I install them at the client proxy side?
Thank you,
Alan