We have a web service that takes a complex type as input and returns a complex type as output
How do we SEE the entire XML of the output?
Private Sub BtnSend_CORS_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSend_CORS.Click
Dim svc As New SxM.Service1
Dim CORs As New SxM.CustomerOrderRequests()
Dim COR As New SxM.CustomerOrderRequest
COR.CreatedBy = Me.tbCreatedBy.Text
COR.DateCreated = Now()
COR.MessageId = CInt(Me.tbMessageId.Text)
COR.MessageTypeId = 0
COR.StatusChangeAuthor = "StatusChangeAuthor"
Dim CORCO As New SxM.CustomerOrderRequestCustomerOrder()
CORCO.AffiliateId = 0
CORCO.AffiliateIdSpecified = CBool(False)
CORCO.AffiliateOrderNumber = Me.tbAffiliateOrderNumber.Text
CORCO.CustomerOrderId = CInt(Me.tbCustomerOrderId.Text)
CORCO.PromotionalMaterialType = "PromotionalMaterialType"
Dim CORCOCOU As New SxM.CustomerOrderRequestCustomerOrderCustomerOrderUnit()
CORCOCOU.Address1 = Me.tbAddress1.Text
CORCOCOU.Address2 = "Address2"
CORCOCOU.BillingAmount = 0
CORCOCOU.City = "City"
CORCOCOU.Company = Me.tbCompany.Text
CORCOCOU.Country = "Country"
CORCO.CustomerOrderUnit = CORCOCOU
COR.CustomerOrder = CORCO
CORs.CustomerOrderRequest = COR
'The response is a complex type returning an object SxM.CsiNotification
Dim ret As SxM.CsiNotification
'Here we call the Web Service and pass in the complex CORS structure
ret = svc.postCOU(CORs)
'Here we want to SEE the xml ... below doesn't work
tbResponse.Text = ret.ToString()
'all I get in text box is: Client.SxM.CsiNotification
I want to see the entire XML received back from the web service call