title: Call a Web Service WSDL with VB.NET
body: <p>PLEASE can someone help me before I go stir crazy in trying to figure this out. I am a SQL DBA that has self taught myself some VB.NET to interact with the SQL databases we have in-house for data input etc.</p>
  
  <p>I have a web service that I am trying to build a 'Loader' for as the provided Java based one the company in question gave us cannot deal with multiple files and can only deal with one file at a time.</p>
  
  <p><a href="https://openinterchange.openecommerce.co.uk/OpenInterchange/OpenInterchange?wsdl" rel="nofollow">https://openinterchange.openecommerce.co.uk/OpenInterchange/OpenInterchange?wsdl</a></p>
  
  <p>This is the URL of the WSDL. I have some automation software that has an inbuilt WebService/WCF Executer, while this is great to look at and does the job it doesn't work with my .NET so I am having to do this myself manually.</p>
  
  <p>Essentially I need to fire some XML using a particular FUNCTION from the above WSDL to return a response to my application.</p>
  
  <p>Now according to the automation program it uses the 'OpenInterchange' Class and then uses the OpenInterchange.XStreamMessage(x,x,x,x,1) METHOD to return the information.</p>
  
  <p>I ended up with something along the lines of </p>
  
  <pre><code>    Dim MyService As New XstreamUAT.xStreamMessageRequest(brokreftxtbx.Text, bnumtxtbx.Text, lickeytxtbx.Text, "This", 30)
  
      Dim MyResult As New XstreamUAT.xStreamMessageResponse(MyService.ToString)
  
      MsgBox(MyResult)
  </code></pre>
  
  <p>But I'm getting nothing, I am obviously completely missing the point. I can't give you details to login to their WSDL but with the link I think there is enough information there to point me in the right direction.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I changed some of my code and added:</p>
  
  <pre><code>Public Class Form1
  Implements XstreamUAT.OpenInterchange
  </code></pre>
  
  <p>and then this updated the bottom of my VB with loads of functions, however they are all empty...</p>
  
  <pre><code>Public Function getMessages(request As XstreamUAT.getMessagesRequest) As XstreamUAT.getMessagesResponse Implements XstreamUAT.OpenInterchange.getMessages
  
  End Function
  
  Public Function inStreamMessage(request As XstreamUAT.inStreamMessageRequest) As XstreamUAT.inStreamMessageResponse Implements XstreamUAT.OpenInterchange.inStreamMessage
  
  End Function
  
  Public Function processMessage(request As XstreamUAT.processMessageRequest) As XstreamUAT.processMessageResponse Implements XstreamUAT.OpenInterchange.processMessage
  
  End Function
  
  Public Function returnResponse(request As XstreamUAT.returnResponseRequest) As XstreamUAT.returnResponseResponse Implements XstreamUAT.OpenInterchange.returnResponse
  
  End Function
  
  Public Function xStreamMessage(request As XstreamUAT.xStreamMessageRequest) As XstreamUAT.xStreamMessageResponse Implements XstreamUAT.OpenInterchange.xStreamMessage
  
  End Function
  </code></pre>
  
  <p>Obviously these Functions return nothing, can someone pleas eadd the WSDL and tell me where I'm going wrong here, I'm pulling my hair out and the lack of information on the web for this particular WSDL is doing me over. </p>
  
  <p>I am supposed to be able to fire data to the service using the xStreamMessage Method from the OpenInterchange Class and then return the response back from the web service, I can't even get it to send the Message!! :(</p>
  
  <p>Cheers.</p>