473,761 Members | 1,808 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error 'BusinessLayer' does not contain a definition for 'MySoapHeader'

Hey. I have the error CS0117 'BusinessLayer' does not contain a definition
for 'MySoapHeader'. Below is a link to the asmx source, and the code which
calls the web service. MS seems to do the same thing at
http://www.dotnetjunkies.com/QuickSt...rl=/quickstart
/aspplus/doc/secureservices. aspx

I'd appreciate any help. Thanks

Justin Dutoit

http://justindutoit.port5.com/Quicks...layer.asmx.txt

void callws(Object Source, EventArgs e) {

BusinessLayer business = new BusinessLayer() ;
AuthHeader auth = new AuthHeader();
auth.Username = "justinduto it";
auth.Password = "paulpaul";
business.MySoap Header = auth; // <<< error here

info.Text = business.Test() ;

}
Nov 18 '05 #1
3 2045
try:
SampleSvcs.Serv ice1 svcs = new SampleSvcs.Serv ice1();
svcs.Credential s = new System.Net.Netw orkCredential(" user", "password",
"domain");
"Justin Dutoit" wrote:
Hey. I have the error CS0117 'BusinessLayer' does not contain a definition
for 'MySoapHeader'. Below is a link to the asmx source, and the code which
calls the web service. MS seems to do the same thing at
http://www.dotnetjunkies.com/QuickSt...rl=/quickstart
/aspplus/doc/secureservices. aspx

I'd appreciate any help. Thanks

Justin Dutoit

http://justindutoit.port5.com/Quicks...layer.asmx.txt

void callws(Object Source, EventArgs e) {

BusinessLayer business = new BusinessLayer() ;
AuthHeader auth = new AuthHeader();
auth.Username = "justinduto it";
auth.Password = "paulpaul";
business.MySoap Header = auth; // <<< error here

info.Text = business.Test() ;

}

Nov 18 '05 #2
Thanks for replying, but I don't think I need NetworkCredenti al, it's custom
authentication, where a distant web app is calling my web service by
supplying a username and password. Have a look at the web service code.

Tks
Justin

"tom wisnowski" <to**********@d iscussions.micr osoft.com> wrote in message
news:7F******** *************** ***********@mic rosoft.com...
try:
SampleSvcs.Serv ice1 svcs = new SampleSvcs.Serv ice1();
svcs.Credential s = new System.Net.Netw orkCredential(" user", "password",
"domain");
"Justin Dutoit" wrote:
Hey. I have the error CS0117 'BusinessLayer' does not contain a definition for 'MySoapHeader'. Below is a link to the asmx source, and the code which calls the web service. MS seems to do the same thing at
http://www.dotnetjunkies.com/QuickSt...rl=/quickstart /aspplus/doc/secureservices. aspx

I'd appreciate any help. Thanks

Justin Dutoit

http://justindutoit.port5.com/Quicks...layer.asmx.txt

void callws(Object Source, EventArgs e) {

BusinessLayer business = new BusinessLayer() ;
AuthHeader auth = new AuthHeader();
auth.Username = "justinduto it";
auth.Password = "paulpaul";
business.MySoap Header = auth; // <<< error here

info.Text = business.Test() ;

}

Nov 18 '05 #3
So your proxy object doens't contain a def for your soap header field. I just
tried writing a quick web service that uses a soap header. It seems to work
fine in c#, the only difference between my code and yours is that the proxy
contained a field for the header in the syntax [SoapHeaderObjTy pe]Value.

Refresh your web reference (right click on the web reference in the solution
explorer, choose update). then clikc "show all files" for that project.
Expand the serivice in the explorer and drill down to the reference file.
this is your proxy. Look at the class def. you will see the field that
exposes your header and the type defined in this fiel as well.

I tested my code in C# but i assume it to work the same in VB

Let me know if this helped....

"Justin Dutoit" wrote:
Thanks for replying, but I don't think I need NetworkCredenti al, it's custom
authentication, where a distant web app is calling my web service by
supplying a username and password. Have a look at the web service code.

Tks
Justin

"tom wisnowski" <to**********@d iscussions.micr osoft.com> wrote in message
news:7F******** *************** ***********@mic rosoft.com...
try:
SampleSvcs.Serv ice1 svcs = new SampleSvcs.Serv ice1();
svcs.Credential s = new System.Net.Netw orkCredential(" user", "password",
"domain");
"Justin Dutoit" wrote:
Hey. I have the error CS0117 'BusinessLayer' does not contain a definition for 'MySoapHeader'. Below is a link to the asmx source, and the code which calls the web service. MS seems to do the same thing at
http://www.dotnetjunkies.com/QuickSt...rl=/quickstart /aspplus/doc/secureservices. aspx

I'd appreciate any help. Thanks

Justin Dutoit

http://justindutoit.port5.com/Quicks...layer.asmx.txt

void callws(Object Source, EventArgs e) {

BusinessLayer business = new BusinessLayer() ;
AuthHeader auth = new AuthHeader();
auth.Username = "justinduto it";
auth.Password = "paulpaul";
business.MySoap Header = auth; // <<< error here

info.Text = business.Test() ;

}


Nov 18 '05 #4

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

Similar topics

0
956
by: Justin Dutoit | last post by:
Hey. Take a look at this link. http://justindutoit.port5.com/QuickshopDocs/businesslayer.asmx.txt When I call the web service, I have the error CS0117 'BusinessLayer' does not contain a definition for 'MySoapHeader'. Below is the code which calls the web service. MS seems to do the same thing without any problems at http://www.dotnetjunkies.com/QuickStart/aspplus/default.aspx?url=/quickstart
3
3003
by: Ann Marinas | last post by:
Hi there, I am currently developing an ASP.NET program that connects to a SQL Server 2000 database. I also have SQL Server 2005 Express installed on the same local machine. Prior to installing SQL Server 2005, my apps were working and is connecting flawlessly to a database on the SQL Server 2000. Now, whenever I connect to the same database with the 2005 version installed, I keep on getting this error:
1
1291
by: rcoco | last post by:
Hi, I'm having this error, 'Bsc_Test1.src.controls.cont' does not contain a definition for 'ChartTitle' 'Bsc_Test1.src.controls.cont' does not contain a definition for 'gcolors' 'Bsc_Test1.src.controls.cont' does not contain a definition for 'XAxisTitle' 'Bsc_Test1.src.controls.cont' does not contain a definition for 'YAxisItems'
0
985
by: rcoco | last post by:
Hi, I'm having this error, 'Bsc_Test1.src.controls.cont' does not contain a definition for 'ChartTitle' 'Bsc_Test1.src.controls.cont' does not contain a definition for 'gcolors' 'Bsc_Test1.src.controls.cont' does not contain a definition for 'XAxisTitle' 'Bsc_Test1.src.controls.cont' does not contain a definition for 'YAxisItems'
0
9554
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9377
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9989
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9925
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7358
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.