Re: problem consuming my service





s wrote:

'project with web service
<webmethod()> _
public function myws(id as integer)
  'do db stuff with id and build document
  Dim xd As New XmlDataDocument
  xd.Load("D:\Inetpub\webservice_xml\redbook.xml")
  Return xd
end function

What is that, VB.NET? Don't you need to specify the return type of the function e.g.
Public Function myws (id As Integer) As PutReturnTypeHere


What type exactly do you want to return?


--

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/
.



Relevant Pages

  • Re: Whats Stable
    ... Public Function TimeDLookUp() As Long ... Dim varStuff As Variant ... Debug.Print!ContractPropID ... Dim lngTimeDL As Long ...
    (microsoft.public.access.formscoding)
  • Re: Function Warning - Null Reference
    ... Sorry about that Stephany, should have guessed. ... Dim myBool As Boolean ... Public Function Dec2hmsAs String ... Dim success As Boolean = False ...
    (microsoft.public.dotnet.languages.vb)
  • Load registry hive (AdjustTokenPrivileges error)
    ... Public PrivilegeCount As Int32 ... Public Function RegLoadKey(ByVal hKey As Int32, ... String, ByVal lpFile As String) As Int32 ... Dim strKeyName As String ...
    (microsoft.public.vb.winapi)
  • Load registry hive (AdjustTokenPrivileges error)
    ... Public PrivilegeCount As Int32 ... Public Function RegLoadKey(ByVal hKey As Int32, ... String, ByVal lpFile As String) As Int32 ... Dim strKeyName As String ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to fill a listview from LINQ query: Solution
    ... It appears that a .CopyToDataTable class existed in the Linq Betas, but the class was cut due to lack of resources. ... Dim dt As New DataTable ... Public Function CopyToDataTable) As DataTable ... 'enumerate the source sequence and load the object values into rows. ...
    (microsoft.public.dotnet.framework.adonet)