My client application in VBA scans an exam, creates an xml packet, and sends the exam xml to a VB.NET Web Service that scores the exam and records everything in a database.
Although the client xml packet (strXml below) with SOAP elements wrapped around the exam data (strParam) is correct, the Web service receives only the first data element.
Any help on why this occurs is appreciated!
Received by Web Service:
<customerid xmlns="http://mycompany.org/webservices/">51531811</customerid>
Sent from Client:
strParam = _
"<customerid>51531811</customerid>" & _
"<orderno>3401838770</orderno>" & _
"<meeting>T3CBT</meeting>" & _
"<examid>148</examid>" & _
"<event>122811</event>"
strParam = strParam & _
"<exresp>" & _
"<qnum>01</qnum>" & _
"<resp>2</resp>" & _
"<time>55</time>" & _
"</exresp>"
strParam = strParam & _
"<exresp>" & _
"<qnum>02</qnum>" & _
"<resp>1</resp>" & _
"<time>77</time>" & _
"</exresp>"
strXml = "<?xml version=""1.0"" encoding=""utf-8""?>" & _
"<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""XML Schema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
"<soap:Body>" & _
"<PostExamData xmlns=""http://mycompany.org/webservices/"">" & _
"<dataPacket>" & strParam & "</dataPacket>" & _
"</PostExamData>" & _
"</soap:Body>" & _
"</soap:Envelope>"
Although the client xml packet (strXml below) with SOAP elements wrapped around the exam data (strParam) is correct, the Web service receives only the first data element.
Any help on why this occurs is appreciated!
Received by Web Service:
<customerid xmlns="http://mycompany.org/webservices/">51531811</customerid>
Sent from Client:
strParam = _
"<customerid>51531811</customerid>" & _
"<orderno>3401838770</orderno>" & _
"<meeting>T3CBT</meeting>" & _
"<examid>148</examid>" & _
"<event>122811</event>"
strParam = strParam & _
"<exresp>" & _
"<qnum>01</qnum>" & _
"<resp>2</resp>" & _
"<time>55</time>" & _
"</exresp>"
strParam = strParam & _
"<exresp>" & _
"<qnum>02</qnum>" & _
"<resp>1</resp>" & _
"<time>77</time>" & _
"</exresp>"
strXml = "<?xml version=""1.0"" encoding=""utf-8""?>" & _
"<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""XML Schema"" xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">" & _
"<soap:Body>" & _
"<PostExamData xmlns=""http://mycompany.org/webservices/"">" & _
"<dataPacket>" & strParam & "</dataPacket>" & _
"</PostExamData>" & _
"</soap:Body>" & _
"</soap:Envelope>"