Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2010 Trivial WCF Question

$
0
0
I'm just getting started with WCF. I created the service and added it to a project. I was able to see my new function but
not my new data contract when I consume the service.

I'm probably missing something simple, but here's my code. On the client end, CompositeType shows up ( the sample ), but
not my object ( TwoInts ).


<DataContract()>
Public Class CompositeType

<DataMember()>
Public Property BoolValue() As Boolean
<DataMember()>
Public Property StringValue() As String

End Class

<DataContract()>
Public Class TwoInts

<DataMember()>
Public Property MyInt1() As Integer

<DataMember()>
Public Property MyInt2() As Integer

End Class

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>