Hi All,
I am having difficulty creating a new instance of a proxy for an XML
Web Service in my Web Form Client (VB) .NET code. When I try to run my
'hello world' file, hw.aspx, I receive the following error:
Compiler Error Message: BC30002: Type 'PayPalAPIInterfaceService' is
not defined.
Do I have all the files necessary to create a simple Web Form Client?
Am I missing a step? How can I find the class names to use without
using Visual Studio .Net? I compiled the WSDL file using the wsdl
command, which created a *.cs file (with a couple of warnings, but no
errors). I compiled the *.cs file using the csc command, which created
a *.dll file. I created a Bin directory in the same folder as the
hw.aspx file and copied-over the *.dll file. I have been following the
Microsoft Article...
..NET Framework Developer's Guide
Creating an ASP.NET Web Form Client
....located at...
http://msdn.microsoft.com/library/de...formclient.asp
File Contents Of hw.aspx:
<%@ Page Language="VB" %>
<asp:Label id="Label1" runat="server" />
<script runat=server language="VB">
Sub Page_Load(o As Object, e As EventArgs)
Dim UsageCount As Integer
' Create an instance of the XML Web service class.
Dim myPayPalAPIInterfaceService As New PayPalAPIInterfaceService()
' Call the XML Web service method ServiceUsage.
UsageCount = myPayPalAPIInterfaceService.ServiceUsage()
Label1.BackColor = System.Drawing.Color.DarkSlateBlue
Label1.ForeColor = System.Drawing.Color.Gold
Label1.BorderStyle = System.Web.UI.WebControls.BorderStyle.Inset
' Display the results in a Label Web Form server control.
If UsageCount = 1 Then
Label1.Text = "XML Web service has been utilized >" &
UsageCount.ToString() & "< time."
Else
Label1.Text = "XML Web service has been utilized >" &
UsageCount.ToString() & "< times."
End If
End Sub
</script>
My System Specifications...
-I do NOT have Visual Studio .Net Development Environment.
-Windows 2000 Server
-.Net Framework 1.1
-.Net Framework SDK 1.1
Any Help Would Be Much Appreciated.
Thanks,
Nate