473,545 Members | 2,095 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I deploy a SOAP extension on the client proxy

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


Nov 23 '05 #1
8 14066
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

Nov 23 '05 #2
Hi Steven,

Thank you for reply.

I have to use the second method for the client proxy, because only a few of
my proxy methods need to have the extension functionality.

The problem is that the proxy class is being generated by IDE, therefore any
change that I apply to the proxy web methods are being replaced by new code
when we update the web reference.

Do you any remedy for that problem?

Regards,

Alan

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:Oe******** *****@TK2MSFTNG XA01.phx.gbl...
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


Nov 23 '05 #3

Yes, this is a real pain. What I ended up doing was writing a small utility
which
(using regular expressions) modifies the auto-generated proxy file with
the custom changes I needed. The developer has to remember to run this
utility each time after the proxy is auto-generated.

HTH,
Stephen
"A.M-SG" <al******@newsg roup.nospam> wrote in message
news:OL******** ******@tk2msftn gp13.phx.gbl...

The problem is that the proxy class is being generated by IDE, therefore
any change that I apply to the proxy web methods are being replaced by new
code when we update the web reference.

Nov 23 '05 #4
Hi Alan,

Yes, the problem you mentioned is an existing limiation for the
webservice's auto generated proxy from VS.NET/WSDL.EXE. Currently we
haven't any good means to prevent this, just need to modify them after the
autogenerated code complete. Also, the workaround stephen mentioned may
also be a possible means to help if there're any webmethods need to apply
the SoapExtension attribute in your proxy.

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: "Stephen Ahn" <noaddress_at_n oaddress.com>
References: <ue************ **@TK2MSFTNGP09 .phx.gbl>
<Oe************ *@TK2MSFTNGXA01 .phx.gbl>
<OL************ **@tk2msftngp13 .phx.gbl>
Subject: Re: How do I deploy a SOAP extension on the client proxy
Date: Thu, 15 Sep 2005 10:07:10 +1000
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
Message-ID: <u7************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: cpe-144-137-91-83.nsw.bigpond. net.au 144.137.91.83
Path: TK2MSFTNGXA01.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP09.phx. gbl
microsoft.publi c.dotnet.framew ork.webservices :7902
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Yes, this is a real pain. What I ended up doing was writing a small utility
which
(using regular expressions) modifies the auto-generated proxy file with
the custom changes I needed. The developer has to remember to run this
utility each time after the proxy is auto-generated.

HTH,
Stephen
"A.M-SG" <al******@newsg roup.nospam> wrote in message
news:OL******** ******@tk2msftn gp13.phx.gbl...

The problem is that the proxy class is being generated by IDE, therefore
any change that I apply to the proxy web methods are being replaced by new code when we update the web reference.


Nov 23 '05 #5
Thank you Steven.

Now I know that I am not missing any technique.

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:tk******** *****@TK2MSFTNG XA01.phx.gbl...
Hi Alan,

Yes, the problem you mentioned is an existing limiation for the
webservice's auto generated proxy from VS.NET/WSDL.EXE. Currently we
haven't any good means to prevent this, just need to modify them after the
autogenerated code complete. Also, the workaround stephen mentioned may
also be a possible means to help if there're any webmethods need to apply
the SoapExtension attribute in your proxy.

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: "Stephen Ahn" <noaddress_at_n oaddress.com>
References: <ue************ **@TK2MSFTNGP09 .phx.gbl>
<Oe************ *@TK2MSFTNGXA01 .phx.gbl>
<OL************ **@tk2msftngp13 .phx.gbl>
Subject: Re: How do I deploy a SOAP extension on the client proxy
Date: Thu, 15 Sep 2005 10:07:10 +1000
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
Message-ID: <u7************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: cpe-144-137-91-83.nsw.bigpond. net.au 144.137.91.83
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 :7902
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Yes, this is a real pain. What I ended up doing was writing a small
utility
which
(using regular expressions) modifies the auto-generated proxy file with
the custom changes I needed. The developer has to remember to run this
utility each time after the proxy is auto-generated.

HTH,
Stephen
"A.M-SG" <al******@newsg roup.nospam> wrote in message
news:OL******** ******@tk2msftn gp13.phx.gbl...

The problem is that the proxy class is being generated by IDE, therefore
any change that I apply to the proxy web methods are being replaced by

new
code when we update the web reference.


Nov 23 '05 #6
You're welcome Alan,

Thanks & Regards,

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>
References: <ue************ **@TK2MSFTNGP09 .phx.gbl>
<Oe************ *@TK2MSFTNGXA01 .phx.gbl>
<OL************ **@tk2msftngp13 .phx.gbl>
<u7************ **@TK2MSFTNGP09 .phx.gbl>
<tk************ *@TK2MSFTNGXA01 .phx.gbl>
Subject: Re: How do I deploy a SOAP extension on the client proxy
Date: Thu, 15 Sep 2005 09:09:15 -0400
Lines: 73
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Message-ID: <eo************ **@TK2MSFTNGP10 .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 2MSFTNGP10.phx. gbl
microsoft.publi c.dotnet.framew ork.webservices :7910
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Thank you Steven.

Now I know that I am not missing any technique.

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:tk******** *****@TK2MSFTNG XA01.phx.gbl...
Hi Alan,

Yes, the problem you mentioned is an existing limiation for the
webservice's auto generated proxy from VS.NET/WSDL.EXE. Currently we
haven't any good means to prevent this, just need to modify them after the
autogenerated code complete. Also, the workaround stephen mentioned may
also be a possible means to help if there're any webmethods need to apply
the SoapExtension attribute in your proxy.

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: "Stephen Ahn" <noaddress_at_n oaddress.com>
References: <ue************ **@TK2MSFTNGP09 .phx.gbl>
<Oe************ *@TK2MSFTNGXA01 .phx.gbl>
<OL************ **@tk2msftngp13 .phx.gbl>
Subject: Re: How do I deploy a SOAP extension on the client proxy
Date: Thu, 15 Sep 2005 10:07:10 +1000
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
Message-ID: <u7************ **@TK2MSFTNGP09 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
NNTP-Posting-Host: cpe-144-137-91-83.nsw.bigpond. net.au 144.137.91.83
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 :7902
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
Yes, this is a real pain. What I ended up doing was writing a small
utility
which
(using regular expressions) modifies the auto-generated proxy file with
the custom changes I needed. The developer has to remember to run this
utility each time after the proxy is auto-generated.

HTH,
Stephen
"A.M-SG" <al******@newsg roup.nospam> wrote in message
news:OL******** ******@tk2msftn gp13.phx.gbl...

The problem is that the proxy class is being generated by IDE, therefore
any change that I apply to the proxy web methods are being replaced by

new
code when we update the web reference.



Nov 23 '05 #7
Hi,

I found this article that may be what you are looking for:
http://msdn2.microsoft.com/en-us/library/x4s9z3yc

I am having the same issue and I am going to try the method described in the
article.

Good Luck,

Jim

"A.M-SG" wrote:
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


Nov 23 '05 #8
faheemitian
1 New Member
can i have the copy of that utility to add my customer attribute please.

thanx

faheem

Yes, this is a real pain. What I ended up doing was writing a small utility
which
(using regular expressions) modifies the auto-generated proxy file with
the custom changes I needed. The developer has to remember to run this
utility each time after the proxy is auto-generated.

HTH,
Stephen


"A.M-SG" <alanalan@newsg roup.nospam> wrote in message
news:OLHKuVWuFH A.2792@tk2msftn gp13.phx.gbl...[color=blue]
>
> The problem is that the proxy class is being generated by IDE, therefore
> any change that I apply to the proxy web methods are being replaced by new
> code when we update the web reference.
>
>[/color]
Apr 21 '06 #9

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

Similar topics

1
5715
by: David C. allen | last post by:
I have created a simple Client-side SOAP Extension for a webclass that I have. When I apply the extension attribute to the the calling function in the proxy class I get an error 'Value cannot be null'. When the extension attribute is not applied it runs fine. The wierd thing is that it does not appear to be an error within the SOAP extension...
4
6006
by: pepcag | last post by:
I used http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconalteringsoapmessageusingsoapextensions.asp as a template to create a very simple web method with soap extension. The code like this: public string HelloWorld() { return "Hello World.";
1
2331
by: A.M-SG | last post by:
Hi, Can I use SoapExtensionAttribute at the client proxy side? Thank you, Alan
1
3068
by: A.M-SG | last post by:
Hi, Can I view/modify SOAP message at the client proxy side without using soap extensions? Thank you,
0
1380
by: Robert Rotstein | last post by:
I want to write a SOAP extension that gets activated from both the client and the server. From whast I have read, this should be quite easy to do. Yet I can only activate it from the server. I have a service (.asmx file) which contains the following: namespace OfficerCallIn { public class OfficerCallInService :
1
2844
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive types and of more elaborate classes implementing IXmlSerializable. The resulting WSDL file for the webservice has two separate schemas in its <types>...
2
4023
by: Frederik Vanderhaegen | last post by:
Hi, I'm writing a simple soap extension for a webservice I developed (without the use of an extension the webservice works perfect). The extension is registered through the web.config files of my webservice and my application. In my extension I override the Chainstream method and implement the abstract methods (GetInitializer, Initialize...
5
3058
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... I've got a .Net client to a soap service that works for the most part, but there are a couple of things I'd like to improve: 1) the first request to the client wrapper always takes 12-15 seconds even though the web server shows < a half second spent on the request. What takes so much time for the client wrapper to warm up? All...
1
4811
by: klerik123456 | last post by:
I try set soap extension attributes on client side. For example: Implementation in web service: public class EncryptMessageAttribute : SoapExtensionAttribute { private string strKey="null";
0
7464
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7396
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7413
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5323
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
1874
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
700
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.