Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the SOAP envelope
Message
From
15/04/2009 12:10:48
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web Services
Title:
Getting the SOAP envelope
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01395001
Message ID:
01395001
Views:
98
When the framework is used within a Web Service environment, I have something like this to include the SOAP envelope into my Error log property field when an error occurs:
            ' In Web Service
            If oApp.nApplicationMode = 2 Then

                ' Get a file name
                lcFile = oApp.GenerateFileName()

                ' Save into a temporary directory
                oRequest.SaveAs(oApp.cTempDir + lcFile, True)

                ' Add this into the property
                lcProperty = lcProperty + oApp.cCR
                lcProperty = lcProperty + FileToStr(oApp.cTempDir + lcFile) + oApp.cCR

            End If
So, basically, we are using the Request object SaveAs() method to get the data. The first issue with that is that is requires saving the file on disk and I need to grab that file content after and store it into a property. Secondly, this method, sometimes, will encode the content instead of saving it as is. So, I am looking for a better approach to get that information. I am looking for an approach that will allow me to do that without creating a file on disk and where the encoding will not happen.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Reply
Map
View

Click here to load this message in the networking platform