473,320 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

problem consuming my service

s
'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
service invoke method returns the data.)
Jan 20 '06 #1
2 1323


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/
Jan 21 '06 #2
s


"Martin Honnen" wrote:


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/

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
generic uses. So I have to return the same type that will be consuming it??
Jan 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sparky | last post by:
Hi, I am trying to use a typed dataset with a web service and am having problems with type casting errors. I have a typed dataset which is in both my web service and my consuming application....
1
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return...
2
by: Glenn Venzke | last post by:
Is there any way to tell what type of application is consuming a web service? I'm writing a web service that returns a string with 2 carriage returns. What I want to do is replace these carriage...
0
by: ryan | last post by:
I've been tasked with consuming a Perl web service that was written by a person in a different department of my company. The problem is it's the guy's first attempt at web services and he doesn't...
0
by: plmanikandan | last post by:
I need to develop a application to consume a webservice. For consuming web service i tried a example in Consuming a Web Service in C# in http://www.csharphelp.com.But i am uanble to use that...
1
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
2
by: Philip Reimer | last post by:
Hello. We have here a Java web service that has been created using Apache Axis 1.4, using the document/literal wrapped style, and returns complex types in its methods. When consuming the web...
1
by: =?Utf-8?B?R29yZG9u?= | last post by:
Hi; I can consume a web service from an asp.net application with no problem. The web service connects to a remote server through ODBC and returns a data set to the consuming software. When...
0
by: menmaatre | last post by:
Hi all, I have a very odd problem: - System A: Win 2k3 with IIS 6 exposing a little WSDL Webservice - System B: Win 2k3 with MSSQL Server 2k5 - System C: RedHat Enterprise Server running...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.