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" ?>
<configuratio n>
<system.web>
<webServices>
<soapExtensionT ypes>
<add type="SimpleExt ensionLib.Rever seMessageExtens ion,
SimpleExtension Lib"
priority="3"
group="0" />
<add type="SimpleExt ensionLib.LogMe ssageExtension, SimpleExtension Lib"
priority="4"
group="0" />
</soapExtensionTy pes>
</webServices>
</system.web>
</configuration>
==============
2. Also, we can apply soapExtension for individual webmethod in proxy class
by directly applying our cutsom ExtensionAttirb ute on the webmethod in the
autogenerated proxy source file, like:
=============== ==
[SimpleExtension Lib.ReverseMess ageExtension(Pr iority=1)]
public string HelloWorld() {
object[] results = this.Invoke("He lloWorld", new object[0]);
return ((string)(resul ts[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******@newsg roup.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.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: 199.71.241.10
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
Xref: TK2MSFTNGXA01.p hx.gbl
microsoft.publi c.dotnet.framew ork.webservices :7879
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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