B
Bob
I have a web service that has been running nicely for four years now. I need
to update the Web Application that consumes it to use Silverlight. I don't
much want to write the web service. The service web methods pass credentials
in the SOAP header.
So the old app goes something like this:-
MyService srv = new MyService();
MyService.MyCredentials cred = new MyService.MyCredentials();
cred.UserName="foo";
Cred.Password = "bar";
MyService.MyCredentialsValue = cred;
string[] results = MyService.GetMyData();
Now we are in a Silverlight Page and I have to use the async methods
something like this:-
MyService srv = new MyService();
srv.GetMyDataCompleted+= new GetMyDataCompleteHandler...;
There is no MyService.MyCredentialsValue.
So is there a way to pass the header credential info to the method?
to update the Web Application that consumes it to use Silverlight. I don't
much want to write the web service. The service web methods pass credentials
in the SOAP header.
So the old app goes something like this:-
MyService srv = new MyService();
MyService.MyCredentials cred = new MyService.MyCredentials();
cred.UserName="foo";
Cred.Password = "bar";
MyService.MyCredentialsValue = cred;
string[] results = MyService.GetMyData();
Now we are in a Silverlight Page and I have to use the async methods
something like this:-
MyService srv = new MyService();
srv.GetMyDataCompleted+= new GetMyDataCompleteHandler...;
There is no MyService.MyCredentialsValue.
So is there a way to pass the header credential info to the method?