Soap header error

J

Justin Dutoit

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
/aspplus/doc/secureservices.aspx

I also get an error sometimes, saying 'AuthHeader' is ambiguous. I'd
appreciate any help. Thanks

Justin Dutoit

void callws(Object Source, EventArgs e) {

BusinessLayer business = new BusinessLayer();
AuthHeader auth = new AuthHeader();
auth.Username = "justindutoit";
auth.Password = "paulpaul";
business.MySoapHeader = auth; // <<< error here

info.Text = business.Test();

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
VetaMcRae
Top