Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the SOAP envelope
Message
De
15/04/2009 12:10:48
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Titre:
Getting the SOAP envelope
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01395001
Message ID:
01395001
Vues:
99
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
Répondre
Fil
Voir

Click here to load this message in the networking platform