Yes, i've added Web reference. And I am updating it every time I make change
Nikolay,
Did you set a normal reference in you program to that project?
In the solution explorer
references ->right click ->add reference ->projects -> etc
And you have everytime to build and update the webservice when you make
changes in that.
Cor
"Nikolay Petrov" <
[email protected]>
Cor,
I don't see the localhost.MyFields in my client app. I see the
myservice.GiveFields function, but not the structure. I've made it
public, but without improvement.
Nikolay,
I would never do it this way, however the shortest sample I could
make
from it to give you an idea.
\\\
<WebMethod()> _
Public Function GiveFields() As MyFields
Dim myrecord As New MyFields
myrecord.fielda = "Hello"
myrecord.fieldb = "World"
Return myrecord
End Function
Structure MyFields
Public fielda As String
Public fieldb As String
End Structure
///
\\\add this to the webproject and set a reference to the project itself
\\\a listbox on this form
Private Sub Form1_Load(ByVal sender As Object, ByVal e _
As System.EventArgs) Handles MyBase.Load
Dim myservice As New localhost.NewService
Dim a As localhost.MyFields = myservice.GiveFields
ListBox1.Items.Add(a.fielda)
ListBox1.Items.Add(a.fieldb)
End Sub
///
I hope this helps you a little bit?
Cor
"Nikolay Petrov"
.
In my WebService I have structure
Structure myStr1
Dim text as String
Dim Key as Byte()
End Structure
and a Web Method, containing Function which retruns data as this
Structure
My qustion is, How to expose this structure to my apps, so they