R
RobertHillEDS
While using the Soap generated ASP code, I would like to dump the raw
contents of the request and response objects using Response.AppendToLog.
I have tried using variations of the following code, but I may be barking up
the wrong tree with this approach. Any expert help would greatly be
appreciated.
Dim objReader
Set objReader = CreateObject("MSSOAP.SoapReader")
objReader.Load Request
add code to output to the log
objReader.Load Response
add code to output to the log
===SOAP GENERATED CODE===
<%@ LANGUAGE=VBScript %>
<%
Option Explicit
On Error Resume Next
Response.ContentType = "text/xml"
Dim SoapServer
If Not Application("CUCTransactionInitialized") Then
Application.Lock
If Not Application("CUCTransactionInitialized") Then
Dim WSDLFilePath
Dim WSMLFilePath
WSDLFilePath = Server.MapPath("CUCTransaction.wsdl")
WSMLFilePath = Server.MapPath("CUCTransaction.wsml")
Set SoapServer = Server.CreateObject("MSSOAP.SoapServer")
If Err Then SendFault "Cannot create SoapServer object. " &
Err.Description
SoapServer.Init WSDLFilePath, WSMLFilePath
If Err Then SendFault "SoapServer.Init failed. " & Err.Description
Set Application("CUCTransactionServer") = SoapServer
Application("CUCTransactionInitialized") = True
End If
Application.UnLock
End If
Set SoapServer = Application("CUCTransactionServer")
SoapServer.SoapInvoke Request, Response, ""
If Err Then SendFault "SoapServer.SoapInvoke failed. " & Err.Description
contents of the request and response objects using Response.AppendToLog.
I have tried using variations of the following code, but I may be barking up
the wrong tree with this approach. Any expert help would greatly be
appreciated.
Dim objReader
Set objReader = CreateObject("MSSOAP.SoapReader")
objReader.Load Request
add code to output to the log
objReader.Load Response
add code to output to the log
===SOAP GENERATED CODE===
<%@ LANGUAGE=VBScript %>
<%
Option Explicit
On Error Resume Next
Response.ContentType = "text/xml"
Dim SoapServer
If Not Application("CUCTransactionInitialized") Then
Application.Lock
If Not Application("CUCTransactionInitialized") Then
Dim WSDLFilePath
Dim WSMLFilePath
WSDLFilePath = Server.MapPath("CUCTransaction.wsdl")
WSMLFilePath = Server.MapPath("CUCTransaction.wsml")
Set SoapServer = Server.CreateObject("MSSOAP.SoapServer")
If Err Then SendFault "Cannot create SoapServer object. " &
Err.Description
SoapServer.Init WSDLFilePath, WSMLFilePath
If Err Then SendFault "SoapServer.Init failed. " & Err.Description
Set Application("CUCTransactionServer") = SoapServer
Application("CUCTransactionInitialized") = True
End If
Application.UnLock
End If
Set SoapServer = Application("CUCTransactionServer")
SoapServer.SoapInvoke Request, Response, ""
If Err Then SendFault "SoapServer.SoapInvoke failed. " & Err.Description