I've searched the web but i'm not getting it
This is my flex code:
private function callWS():void{
var ws:WebService = new WebService();
//changed this
ws.addHeader(new SOAPHeader(new QName("uri","header1"),{AUTH:"bla"}));
ws.loadWSDL("http://localhost:49548/test/WebService1.asmx?WSDL");
ws.HelloWorld.addEventListener(ResultEvent.RESULT, onResult);
ws.HelloWorld.addEventListener(FaultEvent.FAULT, onFault);
ws.HelloWorld();
}
private function onResult(e:ResultEvent):void{
}
private function onFault(e:FaultEvent):void{
}
and this is my c# code (same old default values):
[WebMethod]
public string HelloWorld()
{
//what to do here?
return "Hello World";
}
how do I use auth in c#?