Wrox Programmer Forums
|
BOOK: Professional ASP.NET 1.0, Special Edition/1.1
This is the forum to discuss the Wrox book Professional ASP.NET 1.1 by Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson; ISBN: 9780764558900
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 1.0, Special Edition/1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 6th, 2004, 12:38 PM
Authorized User
 
Join Date: Jun 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Raif
Default Soap Extensions

Hi, is the soap extension ecryption code broken? because in the extensionencrtypion file there is a stream declared as global but then when you attempt to use it in the encrypt() function it says that the object is null. but then when you try to declare it as new in the function it says you can't do this because it is a must inherit class. And frankly I can't understand how the Encrypt() function is supposed to get it's hands on teh message. it is present in the calling function ( messageproccessing) but that function calls Encrypt() which obviously doesn't have any params.
Any help with this would be greatly appreaciated.
Thanks
Raif

 
Old December 7th, 2004, 03:12 AM
Authorized User
 
Join Date: Jun 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Raif
Default

Allow me to answer my own question. Yes in deed it is broken. It appears that the code was taken from c# tossed in a translater and served ready to eat with out testing. in the encryptionextenstion chainstream method there is a line "Dim newStream As New MemoryStream()" This line should read "newStream = New MemoryStream()". this got me as far as the encrypt soap method which has a stringbuider that tries to append a byte and a " ". Doesn't work don't know why talk to microsoft but inorder for it to work you must seperate the two items. instead of
   s.Append(outData(i) + " ")
you must use
   s.Append(outData(i))
   s.Append(outData(" "))
that gets the message out the door. however my webserver doesn't seem to like what it gets. I can't put that on the code as I haven't figured it out yet but I wouldn't be supprised







Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Extensions plb BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 130 November 24th, 2009 07:10 PM
AJAX Extensions ilegend .NET Framework 3.5 1 September 19th, 2008 03:32 AM
Some Extensions plb BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 July 29th, 2008 11:57 AM
PHP Extensions Dnigma Pro PHP 0 June 22nd, 2006 12:41 AM
File Extensions nbnelson C# 2 August 25th, 2003 12:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.