473,395 Members | 1,679 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.

SoapExtensions & RequestSoapContext

Hello,

I was working with WSE & SoapExtensions and I realized something subtle, but
could be an issue to consider.

Using the SoapExtensions, I alter the contents of the SOAP message before
the deserialization happens on the server. Now, in my web method, if I check
the contents of the envelope using
RequestSoapContext.Current.Envelope.OuterXml, I see that it does not reflect
the changes to the Xml content that I have made in my Soap Extenstion. This
may be due to the reason that my extension is chained after the soap
extensions of WSE, where the SoapContext is created and persisted.

So, I just wanted to know if it is my responsibility to update the contents
of the Envelope object after I modify the message stream ? Or am I missing
something here?

Thanks,
Manoj G
Nov 12 '05 #1
1 4177
Hello,

Your understanding is correct on that RequestSoapContext object will be
created before your SoapExtension's ProcessMessage method, so that it will
output original version of Request. We had better not use
RequestSoapContext.Current.Envelope.OuterXml in a web method.

Luke
..

Nov 12 '05 #2

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

Similar topics

1
by: Imran | last post by:
Hi, Please bear with me as I have only 1 weeks .NET experience. I am using VB.NET to write a stand-alone client application that connects to a Web service. I successfully send a request for a...
0
by: John Bundred | last post by:
I have a SoapService with an Input and Output filter. In the output filter I get some info from the RequestSoapContext to set up the response header i.e. From, To, RelatesTo. If I change the...
0
by: | last post by:
Hi Im trying to convert a webservice to use WSE security (username/password). The webservice has a few webmethods, one that I want protect with a username/password. On the client side Im...
0
by: Marco Mendonça | last post by:
Hi, Is it possible to configure SoapExtensions in a WindowsForms application configuration file, like the Web.Config in ASP.NET applications? Best regards, Marco Mendonça.
2
by: Ravikanth | last post by:
I created a web application in vs2003 which cosumes a web services. I used SoapExtensions to log the Request sent to server and Response received from server by adding a SoapExtension attribute to...
4
by: 6kjfsyg02 | last post by:
I am trying to keep some cached information across several SoapExtensions: In my project there are client applications (web and console) that ask a web service. The web service is also mine. But...
2
by: Keith Wilson | last post by:
Hello all I am trying to upload/download files via a webservice to/from a PDA. The webservices are secured using WSE 2.0 (this cannot change). ..NETCF 2 does not support WSE 2.0 so am using...
1
by: Max André Bündchen | last post by:
Suppose I have a WinForm project that call two Web Services: the AService and the BService :-)... In the AService I apply the ASoapExtension and in the BService I apply the BSoapExtension. This...
1
by: vaibhavchavan | last post by:
Hi I am doing application for signing of soap message with digital certificate . I am using WSE 2.0 I worte the the simple webservice & deployed it on in our server machine . To make it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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
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,...
0
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...
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...

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.