Wednesday, May 07, 2003 6:52 PM Jan Tielens

Eureka! SoapExtension problems solved!

Maybe you've read my post about the problems I had while using a custom SoapExtension class. Thanks to an anonymous reaction, I found the sollution!! I was testing the webservice by using the default test page from Internet Explorer, but the testpage in IE uses the GET protocol, not the SOAP protocol. So there was nothing wrong with my code (I started believing I really sucked ;-), I only had to make a very simple test application. Thanks again to the person who submitted this tip!

So the result was that I had an application that showed the encrypted data... After some searching I discovered that I needed to alter the Reference.vb file manually and add an extra attribute on the Webservice proxy method:

<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/TestEncr/Service1/TestMe", RequestNamespace:="http://tempuri.org/TestEncr/Service1", ResponseNamespace:="http://tempuri.org/TestEncr/Service1", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped) _
, EncryptionExtension(decrypt:=DecryptMode.Response)> _
Public Function TestMe() As String
   Dim results() As Object = Me.Invoke("TestMe", New Object(-1) {})
   Return CType(results(0), String)
End Function

It's great to have such a nice community of people to help you out!

Comments

# Jan Tielens' Bloggings

Wednesday, May 07, 2003 12:52 PM by TrackBack

Jan Tielens' Bloggings

# re: Eureka! SoapExtension problems solved!

Sunday, December 21, 2003 12:17 PM by David Sanz (davids@systemtronic.net)

Hello, my name es David and now I'm studing the SoapExtension.
I have a problem and I don´t found the solution. I do a client application that call a webservice. In my webservice I have a class that inherit of SoapExtension and save all the message that my web service receive. The problem is that never execute this class, and I have the correct configuration in a web.config file. (I use Visual basic.net)
Where is my fault?

There are another option.

Thanks for all
David

# re: Eureka! SoapExtension problems solved!

Thursday, May 25, 2006 7:20 AM by siva prasath

Need EncryptionExtension class for the windows application in VB lanugague..
my mail id is sivap@nic.in

Thanks in advance

Rgards,
Siva

# re: Eureka! SoapExtension problems solved!

Friday, January 18, 2008 2:09 PM by Matt

A very good app t work with SOAP webservices is dubbed ".NET WebService Studio", by Microsoft. It´s written in .NET (I guess it´s C#)  and you can load any ws in it, then just fill in the parameters and let roll! Usefull indeed.

Best Regards,

_____________________

Matheus Safraid

Curitiba, Brazil