By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

Web serveces

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.