473,394 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1270

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: raymond | last post by:
Hi, Is it possible to create a proxy client class or a web service method by VS.NET without using wsdl? My stupid client is using a xml schema (.xsd) to describe all their web service methods...
3
by: Wild Wind | last post by:
Hello all, I apologise in advance for the long windedness of this post, but I feel that if I am going to get any solution to this problem, it is important that I present as much information...
9
by: Codex Twin | last post by:
I am re-sending this in the hope that it might illicit a response. I have a corporate client who forces their workstations to get the proxy server details using an automatic proxy discovery script....
0
by: Nate | last post by:
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...
3
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
8
by: Dave A | last post by:
I have a class called 'PrimaryKey' that represents the primary key of a table. PrimaryKeys can only be created and the class only implements .ToString(). The PrimaryKey class internally stores...
5
by: Joseph Geretz | last post by:
Here's my first attempt at DIME (code below signature). I'ts basically straight out of Microsoft's online sample: For some reason, the statement respContext.Attachments.Add(dimeAttach); ...
0
by: bhu | last post by:
I have a simple helloworld web service , when i call this service from the client this is the message sent. -----SoapRequest at 6/7/2006 10:18:11 PM <?xml version="1.0"...
2
by: Peter | last post by:
Firstly let me be very clear about this, I do not want to create a web service proxy nor do I want to do anything with web services. Basically, I have a shrink wrapped desktop application which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.