"Louis Delouiser - Systems Consultant" <Louis Delouiser - Systems
[quoted text, click to view] Consultant@discussions.microsoft.com> wrote in message
news:2BC82378-4F6F-4364-AE97-8D9D1480DB1E@microsoft.com...
> 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'.
This is telling you that the web method is not returning
'PO_XML.POEntry.MethodResponse' , but rather is returning an array of them.
Check the definition of the web service.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer