异常提示api.SendOrder(o)

   阅读
错误提示api.SendOrder(o)
Imports Marketiva.Streamsterapi


Public Class Marketiva
  Dim api As StreamsterApiInterfaceClient = New StreamsterApiInterfaceClient()
  Dim q As Quote
  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  Timer1.Interval = 500
  Timer1.Start()

  End Sub

  Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

  q = api.GetQuote("EUR/USD")
  TextBox.Text = q.Last
  TextBox1.Text = q.Bid
  TextBox2.Text = q.Offer
  TextBox3.Text = q.Change
  TextBox4.Text = q.High
  TextBox5.Text = q.Low
  TextBox6.Text = q.Time

  End Sub

  Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  Dim o As Order = New Order

  o.Instrument = "EUR/USD"
  o.Desk = "Virtual Forex"
  o.Quantity = 10
  o.QuantitySpecified = True

  api.SendOrder(o)
  End Sub
End Class

倒数第三行出现错误时为什么?

系统提示如下:
反序列化操作“SendOrder”的响应消息的正文时出现错误。所需的命名空间“http://schemas.xmlsoap.org/soap/envelope/”中的结尾元素“Body”。找到 命名空间“http://www.novativa.com/ws/streamsterapi”中的元素“result”。 行 1,位置 190。

------解决方案--------------------
WebService吧。估计你本地代理类和服务端已经不一致了。需要重新本地代理。
阅读