imports another VB from a VB.

  • Thread starter Thread starter Mr. x
  • Start date Start date
M

Mr. x

Hello,

I am using Web-service (*.asmx) with the language = "VB".
How can I include another *.asmx which I make.

What I did is :
imports "myWS.asmx'

.... which doesn't work

Thanks :)
 
Hi Mr x.
I think this is typical a question done in the asp.net group
I think you have there a better change to get an answer for this question.
The people who visit this newsgroup are mostly using *.aspx.vb in the
asp.net group *.asmx
I hope you have succes
Cor
 
....
There's no answer at that newsgroups, since a month...
on subject : "calling web-service from another web-service".
group : microsoft.public.dotnet.framework.aspnet.webservice.
 
Hi Mr. x.
I did understand it totaly wrong.
I did a long time nothing with a webservice and was mixing up 2 things .
I did not know if it could, but thought why not, therefore I made as example
2 "hello world" webservices and one normal window form, 3 projects in one
project.
The asmx.vb code was.
First Webservice Service1
\\\
<WebMethod()> _
Public Function HelloWorld() As String
Return "First Service"
End Function
///
Second Webservice Service2
\\\
<WebMethod()> _
Public Function HelloWorld() As String
Dim me1 As New localhost.Service1
Return me1.HelloWorld
End Function
///
Window Form
\\\
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim me2 As New localhost.Service2
Me.Label1.Text = me2.HelloWorld()
End Sub
///
On my window form was when I did push the button,
and there was "First Service" on my screen.

I hope this answers your question?
Cor
 
Back
Top