I am writing a soap client to talk to a java web service. Using VB6 and the MS SOAP toolkit 3.0. I am able to send the request to the server but when I receive the response I keep getting the error:
Connector: Http error while parsing the server's response
I am using the low-level api because there is no WSDL file. Here is the code:

VB Code:
  1. Option Explicit
  2. Private Const SoapAction = _
  3. "http://zeus:8080/Portal/services"
  4. Private Const END_POINT_URL = _
  5. "http://zeus:8080/Portal/services"
  6. Private Const CALC_NS = "http://zeus:8080/Portal/services"
  7. Private Function Execute(ByVal Method As String, _
  8.                          ByVal A As String, _
  9.                          ByVal B As String) As String
  10.    
  11.     Dim Serializer As SoapSerializer30
  12.     Dim Reader As SoapReader30
  13.     Dim ResultElm As IXMLDOMElement
  14.     Dim FaultElm As IXMLDOMElement
  15.     Dim Connector As SoapConnector30
  16.    
  17.     Set Connector = New HttpConnector30
  18.     Connector.Property("EndPointURL") = END_POINT_URL
  19.     Connector.Connect
  20.    
  21.     ' binding/operation/soapoperation
  22.    ' Connector.Property("SoapAction") = SoapAction & Method
  23.     Connector.BeginMessage
  24.    
  25.     Set Serializer = New SoapSerializer30
  26.     Serializer.Init Connector.InputStream
  27.    
  28.     Serializer.StartEnvelope
  29.     Serializer.StartBody
  30.     Serializer.StartElement Method
  31.     Serializer.StartElement "term"
  32.     Serializer.WriteString CStr(A)
  33.     Serializer.EndElement
  34.     Serializer.StartElement "bank"
  35.     Serializer.WriteString CStr(B)
  36.     Serializer.EndElement
  37.     Serializer.EndElement
  38.     Serializer.EndBody
  39.     Serializer.EndEnvelope
  40.    
  41.     Connector.EndMessage
  42.        
  43.     Set Reader = New SoapReader30
  44.     Reader.Load Connector.OutputStream
  45.    
  46.     If Not Reader.Fault Is Nothing Then
  47.         MsgBox Reader.FaultString.Text, vbExclamation
  48.     Else
  49.         Execute = CDbl(Reader.RpcResult.Text)
  50.     End If
  51.    
  52. End Function
  53.  
  54. Private Sub Command1_Click()
  55. MsgBox Execute("getTodaysSaltRequest", "000", "MCM1")
  56. End Sub

Here is what the response looks like:

<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<getTodaysSaltReturn xmlns="">
<salt>30mHVAuwByScg</salt>
</getTodaysSaltReturn>
</soapenv:Body>



Was wondering if the response was not formatted right but do not know much about XML. Any help would be appreciated.