473,388 Members | 941 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,388 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...

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."
Label1.Text = "XML Web service has been utilized >" &
UsageCount.ToString() & "< times."
End If
End Sub

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.



Jul 21 '05 #1
0 1269

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

Similar topics

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...
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...
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....
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...
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...
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...
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); ...
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"...
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...
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.