473,850 Members | 2,248 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 14100
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
5730
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 because I break-pointed it and when the proxy function gets called the SOAP extension runs fine....
4
6033
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
2346
by: A.M-SG | last post by:
Hi, Can I use SoapExtensionAttribute at the client proxy side? Thank you, Alan
1
3098
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
1398
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
2865
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> sections, and the client proxy (generated with wsdl.exe) is missing the definitions of the...
2
4041
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 and ProcessMessage) my chainstream method:
5
3079
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 subsequent requests, even to the same method, take the half second.
1
4846
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
9741
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11011
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10666
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10351
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9503
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7899
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7071
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5929
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4546
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

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.