471,351 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,351 software developers and data experts.

Can Not Create A New Instance Of A Proxy For An XML Web Service In A Web Form Client?

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

Jul 21 '05 #1
0 1195

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.