PC Review


Reply
Thread Tools Rate Thread

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

 
 
Nate
Guest
Posts: n/a
 
      2nd Mar 2005
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web service client proxy code generator Fred Microsoft Dot NET 0 27th Mar 2009 06:29 AM
web service client without proxy classes Steffen Heinzl Microsoft C# .NET 1 7th Dec 2006 04:06 PM
Common Client Network Proxy Service Zap Eagle Windows XP Help 2 2nd Apr 2004 06:15 PM
Error message: Common Client Network Proxy Service........ Carl Windows XP Networking 4 12th Feb 2004 03:40 AM
XP SP1, Fax service, and Proxy 2.0 client don't work together Keith Windows XP Networking 0 13th Aug 2003 08:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:47 PM.