473,394 Members | 1,831 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,394 software developers and data experts.

Web serveces

Hello

Can someone tel me why My defined object wont work in a WEB servece.
The web servece does not return any XML when TestW is Invoked
<WebMethod()> Public Function TestW() As Returobjekt

TestW.mTest1 = "ABC"

TestW.mTest2 = "DEF"

End Function

' MY Object

Public Class Returobjekt

Public mTest1 As String

Public mTest2 As String

End Class

Regards

Vidar Martinsen
Nov 20 '05 #1
1 999
Try this instead:

<WebMethod()> Public Function TestW as Returobjekt
Dim ret as new Returobjekt()
ret.mTest1 = "ABC"
ret.mTest2 = "DEF"
Return ret
End Function
"news.online.no" <vi*************@ft.dep.no> wrote in message
news:x1*****************@news2.e.nsc.no...
Hello

Can someone tel me why My defined object wont work in a WEB servece.
The web servece does not return any XML when TestW is Invoked
<WebMethod()> Public Function TestW() As Returobjekt

TestW.mTest1 = "ABC"

TestW.mTest2 = "DEF"

End Function

' MY Object

Public Class Returobjekt

Public mTest1 As String

Public mTest2 As String

End Class

Regards

Vidar Martinsen

Nov 20 '05 #2

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

Similar topics

3
by: news.online.no | last post by:
Hello Is it a part of the Web servece standard that the web servece always wil return a spesification file? (the Service1.wsdl) We have a company that are ofering a web service to us, but I...
6
by: raj | last post by:
When I try to sort my combo box I get the following error. "Cannot sort a ComboBox that has a DataSource set. Sort the data using the underlying data model." ...
3
by: Viktor | last post by:
I want the dialog box with the parameters to be sent to the Clipboard, so that later I could past it to the output file. Is there any way in C# to do this? Or maybe through the InterOp serveces? ...
2
by: Sergi Adamchuk | last post by:
I need determine which web service (class WebService or its inheritors) serveces current request (I need Type instance of class that serves request). For example you wrote your own WebService: ...
1
by: martin.nkm | last post by:
Hello, I have two questions. 1/ If I want to use Python and let my WinPC communicate via RS-232 with external embedded computer I know there is a pyserial module, which I can use it. But what will...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.