all groups > dotnet xml > january 2006 >
You're in the

dotnet xml

group:

problem consuming my service


problem consuming my service s
1/20/2006 12:19:03 PM
dotnet xml:
'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



----------------------------------------------------------------------------
'project that consumes web service
ws = New com.domain.www.WebService
dgWS.DataSource = ws.myws(100)
dgWS.DataBind()

Here is what is returned in the datagrid:

Prefix HasChildNodes Value HasAttributes NamespaceURI InnerText InnerXml
Name OuterXml BaseURI LocalName IsReadOnly IsEmpty
True True urn:schemas- Company Company False False


Why is it showing me this rather than the data? (A test ran from the web
Re: problem consuming my service Martin Honnen
1/21/2006 1:17:29 PM


[quoted text, click to view]

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
Re: problem consuming my service s
1/23/2006 10:06:04 AM


[quoted text, click to view]


Yea, ignore the missing as type at the end, I typed up that sample. I don't
know what type should be returned as I won't be consuming the service. I
didn't really think it would matter since these are suppose to be for all
AddThis Social Bookmark Button