473,756 Members | 3,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using SoapExtensions to intercept and decrypt MIME formatted SOAP messages

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 list
of items (i.e. getItemList), and successfully receive the list. I
then send a request for individual items from the list (i.e. getItem),
and successfully receive the item.

The situation is that the individual item/SOAP response contains
multipart MIME sections.

I would like to intercept (using SoapExtensions) the SOAP message
before it is deserialized and be able to decode the MIME sections,
before sending the SOAP message onto the deserializer.

I know I must intercept and decode the MIME as the deserializer
complains about the formatting of the SOAP message when it attempts to
read the message. (My requests are not encoded, only the responses
for the individual items are.)

I know that I must intercept the message when the message state is
BeforeDeseriali ze and perform the relevant actions.

I would be grateful if anyone can point me in the right direction for
HOW to decode the MIME and send the decoded message forward onto the
deserializer. Any examples would be greatly appreciated.

Thanks in advance.

AIM
Nov 15 '05 #1
1 6119
Hi!

Maybe I can point you somethings. Here we needed to add
some extra compression to the SOAP body, so we intercept
the messages, then add ZIP compression, and finally we let
the message go.

So, we created the CompressionExte nsion. This is a class
that inherits from:
System.Web.Serv ices.Protocols. SoapExtension. Then, we
created the [CompressionExte nsion] attribute, that
inherits from: SoapExtensionAt tribute. That attribute must
be added to each method that we want to use in the
compressed fashion... At the client, we compress the
outbound messages, and decode the inbound messages... in
the service, we do the opposite.

Hope it helps...

Cheers...
Mariano
-----Original Message-----
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 thatconnects to a Web service. I successfully send a request for a listof items (i.e. getItemList), and successfully receive the list. Ithen send a request for individual items from the list (i.e. getItem),and successfully receive the item.

The situation is that the individual item/SOAP response containsmultipart MIME sections.

I would like to intercept (using SoapExtensions) the SOAP messagebefore it is deserialized and be able to decode the MIME sections,before sending the SOAP message onto the deserializer.

I know I must intercept and decode the MIME as the deserializercomplains about the formatting of the SOAP message when it attempts toread the message. (My requests are not encoded, only the responsesfor the individual items are.)

I know that I must intercept the message when the message state isBeforeDeserial ize and perform the relevant actions.

I would be grateful if anyone can point me in the right direction forHOW to decode the MIME and send the decoded message forward onto thedeserializer . Any examples would be greatly appreciated.

Thanks in advance.

AIM
.

Nov 15 '05 #2

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

Similar topics

1
2462
by: Patrick | last post by:
Hi Does someone know how to decrypt mime messages? Is there a class in .net that helps with that? Thanks Patrick
2
1534
by: ghoernig | last post by:
i i want to recieve from a system soap messages i need for this a litte sample thx for helping
1
3380
by: Clara Yeung | last post by:
I have captured some SOAP messages (using org.wsi.test.monitor.Monitor of the WSI test tool). When I try to analyze the messages with WSI test tool analyzer, the "message" artifact of the report always return "Missing Input". I have tried various "correlationType: endpoint, operation, namespace". When I eyeball the captured SOAP messages, they looks fine with correct namespace and valid operation name within the soap body of the...
3
9795
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the response. As a result of seraching news groups I guessed that the SOAP response defines an array element in a way that causes the dotnet deserialization routines to put the content in a generic object array (object) BUT the content is supposed to...
2
1365
by: Stefan Thieme | last post by:
I'm using a wsdl.exe-generated class to access a web service on the LAN. In case of short messages there is a 200 ms latency per call. If running in the debugger (adds debug info to the SOAP messages), or if setting the UserAgent property to a long string (about 2 KB), the latency is just about 1 ms per call. Any clue?
1
10218
by: bill | last post by:
I know I can use SOAPExtension to read request and response SOAP messages on the server side for a Web Method. Is there a way to do the same thing on the client side when you make a Web Service call? I would like to see what is going out and what is coming in. Thanks for your help.
0
2124
by: maraujo | last post by:
Hi, I have built a customized soap extension in order to log soap messages in client side. Is it possible? On every webservice call, I want to log all soap messages in client side (c:\log.txt for example). Ps: I am using an attribute as it follows: <TraceExtensionAttribute("c:\log.txt")> _ (to enable my soap extension in every webservice call)
4
7236
by: GR | last post by:
Hi, I've got a soap message as a string and would like to post it to a webservice (in C#) asynchronously: For example something like: string soap = "<soap:Envelope >...<MyMessageBody>....</soap:Envelope>"; I use the HttpWebRequest object to send off the message. But I think it does so synchronously. I'd like to do it asynchronously.
3
2316
by: =?Utf-8?B?RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ== | last post by:
I have written a Web service using VS2005 and deployed it to a Web server and it is running using HTTPS. We have a person who is writing a desktop application using a non-Microsoft development tool. He is generating the requests manually and is having some difficulties. I have a Windows test harness application, also written with VS2005, that makes calls to the service without any problems. Is there a way to capture the request messages...
0
9275
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
9872
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...
1
9843
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8713
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
7248
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
6534
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
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
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.