473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 14051
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

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*************@TK2MSFTNGXA01.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" ?>
<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


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******@newsgroup.nospam> wrote in message
news:OL**************@tk2msftngp13.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_noaddress.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.public.dotnet.framework.webservices
NNTP-Posting-Host: cpe-144-137-91-83.nsw.bigpond.net.au 144.137.91.83
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
microsoft.public.dotnet.framework.webservices:7902
X-Tomcat-NG: microsoft.public.dotnet.framework.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******@newsgroup.nospam> wrote in message
news:OL**************@tk2msftngp13.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*************@TK2MSFTNGXA01.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_noaddress.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.public.dotnet.framework.webservices
NNTP-Posting-Host: cpe-144-137-91-83.nsw.bigpond.net.au 144.137.91.83
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:7902
X-Tomcat-NG: microsoft.public.dotnet.framework.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******@newsgroup.nospam> wrote in message
news:OL**************@tk2msftngp13.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******@newsgroup.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.public.dotnet.framework.webservices
NNTP-Posting-Host: 199.71.241.10
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP10.phx.gbl
microsoft.public.dotnet.framework.webservices:7910
X-Tomcat-NG: microsoft.public.dotnet.framework.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*************@TK2MSFTNGXA01.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_noaddress.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.public.dotnet.framework.webservices
NNTP-Posting-Host: cpe-144-137-91-83.nsw.bigpond.net.au 144.137.91.83
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP09.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:7902
X-Tomcat-NG: microsoft.public.dotnet.framework.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******@newsgroup.nospam> wrote in message
news:OL**************@tk2msftngp13.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
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@newsgroup.nospam> wrote in message
news:OLHKuVWuFHA.2792@tk2msftngp13.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
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...
4
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...
1
by: A.M-SG | last post by:
Hi, Can I use SoapExtensionAttribute at the client proxy side? Thank you, Alan
1
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
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...
1
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...
2
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...
5
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...
1
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...

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.