Search:
Namespaces
Discussions
.NET v1.1
Feedback
add web references using notepad ...
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngwebservices' list
.
Giuliano Ronchi
Hi all,
I can write and use a web services using visual studio.NET
I would like to do the same using notepad but I’m missing something.
I do not know how to include the web service (something like the visual add
web references using visual studio)
Here the code is:
-------------
Service
.asmx----------------------------------------------------------------
--------------
Imports System.Web.Services
<WebService(Namespace:="
http://localhost/webservice1"
;)> Public Class
Service1 Inherits System.Web.Services.
WebService
<WebMethod()> Public Function HelloWorld() As String
HelloWorld = "Hello World"
End Function
End Class
-------------
page.aspx-------------------------------------------------------------------
-----------
<%@ page Language="VB" debug="true" %>
<%' missing something like import
http://localhost/webservice1/
...??... %>
<html><body>
<asp:label id=lbl01 runat=server /><br>
</body>
<script language = VB runat=server>
public sub page_load ()
dim foo as new localhost.service1
lbl01.text = foo.HelloWorld
end sub
</script>
</html>
----------- error ------------------------
error: type not defined "localhost.service1"
--------------------------------------------
could someone help me please?
thanks in advance,
Giuliano
Reply to this message...
Kirk Allen Evans
You need to create a client proxy class for your web service. The =
easiest way to do this is to use the WSDL.exe tool that ships with the =
.NET Framework (works on command-line so you don't require Visual Studio =
.NET).
The docs are available online (watch for word wrap):
http://msdn.microsoft.com/library/en-us/cptools/html/cpgrfwebservicesdesc=
riptionlanguagetoolwsdlexe.asp?frame=3Dtrue
Or, if you have the docs installed locally (watch for word wrap):
ms-help://MS.VSCC/MS.MSDNVS/cptools/html/cpgrfwebservicesdescriptionlangu=
agetoolwsdlexe.htm
Kirk Allen Evans
http://www.xmlandasp.net
"XML and ASP.NET", New Riders Publishing
http://www.amazon.com/exec/obidos/ASIN/073571200X=20
[Original message clipped]
Reply to this message...
Dennis West
Here some info
http://aspalliance.com/dotnetsolutions/GetSolution.aspx?ID=12500
over 3000 ASP.NET solutions
sign-up for daily updates
----- Original Message -----
From: "Giuliano Ronchi" <
Click here to reveal e-mail address
>
To: "aspngwebservices" <
Click here to reveal e-mail address
>
Sent: Saturday, June 22, 2002 12:47 AM
Subject: [aspngwebservices] add web references using notepad ...
[Original message clipped]
Reply to this message...
System.Web.Services.Description.Service
System.Web.Services.WebService
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com