1-dimensional array error

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi all - I hope someone can help me out with this web services error I'm
receiving when trying to pass an XML string document to this simple web
service to create a PO. Here's my button click code:

Public Sub btn_ProcessImportXML_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles btn_ProcessImportXML.Click

'Declare variable for the PO Entry Service
Dim MyService As POEntry.POEntryService = New POEntry.POEntryService()
'Declare variable for the results
Dim myResult As POEntry.MethodResponse()
Dim Doc = New XmlDocument()
Doc.Load("c:\temp\poentry.xml")
Dim thisXML As String = Doc.outerxml
myResult = MyService.POEntryimport("PO", "1", thisXML) ' expects
systemname as string, company_id as string, document as string

End Sub

I am unable to compile my application and run because I receive the
following error:

Error 20 Value of type 'PO_XML.POEntry.MethodResponse' cannot be converted
to '1-dimensional array of PO_XML.POEntry.MethodResponse'.

I'm new to web services. I've tried several options with no success.

Any help would be great.

Thanks!
.


Quantcast