Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / June 2007

Tip: Looking for answers? Try searching our database.

"WSE101: An asynchronous operation raised an exception."

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TV - 08 Dec 2004 18:07 GMT
Hi,
Does anyone get the error above when using WSE2.0 soap client as below when
call SendRR(...) to send soap to a web service that is using SoapService in
WSE2.0. In debug mode on server (SoapService) I can receive the soap message
but when the soap return to client which is method SendRR(...) I receive
error above. Thanks

TV

using System;

using Microsoft.Web.Services2;

using Microsoft.Web.Services2.Messaging;

namespace Console2.Soap

{

public class SoapClient1 : Microsoft.Web.Services2.Messaging.SoapClient

{

public SoapClient1(System.Uri URI) : base(URI)

{

}

public SoapEnvelope SendRR(SoapEnvelope env)

{

return base.SendRequestResponse("Method", env);

}

}

}
Martin Kulov - 08 Dec 2004 18:41 GMT
Hello tv,

What is the error?

Martin Kulov
http://www.codeattest.com

MCAD Charter Member
MCSD.NET Early Achiever
TV - 08 Dec 2004 20:28 GMT
Hi Martin,
The exception I got from soapclient is "WSE101: An asynchronous operation
raised an exception.". The InnerException is "The security token could not
be authenticated or authorized"

The soap response from SoapService (server side) is required to have
usernameToken attached? how the authenticate happen?

Thanks

TV.

> Hello tv,
>
[quoted text clipped - 5 lines]
> MCAD Charter Member
> MCSD.NET Early Achiever
Dilip Krishnan - 08 Dec 2004 23:01 GMT
Hello TV,
Are you using any policies? Seems like your're server is getting a token
that it cant authenticate.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com

> Hi Martin,
> The exception I got from soapclient is "WSE101: An asynchronous
[quoted text clipped - 17 lines]
>> MCAD Charter Member
>> MCSD.NET Early Achiever
TV - 09 Dec 2004 19:12 GMT
Hi Dilip,
Yes, server send usernameToken (PlainText password) to client and client
receive those errors. I am trying to find out how can I use custom
authentication in this scenario at runtime.

Thanks.

TV

> Hello TV,
> Are you using any policies? Seems like your're server is getting a token
[quoted text clipped - 27 lines]
> >> MCAD Charter Member
> >> MCSD.NET Early Achiever
Martin Kulov - 09 Dec 2004 09:10 GMT
Hello tv,

Are you sending UsernameToken from the client? If you send the password in plain text you need to create an account for this user in Windows. The authentication when you use password in plain text is against the domain\machine accounts.

Regards,

Martin Kulov
http://www.codeattest.com

MCAD Charter Member
MCSD.NET Early Achiever
VT - 09 Dec 2004 19:03 GMT
Hi Martin,
Yes I send UsernameToken to client and password send (either plain text or
hash) I still get these error. I look at Hand-On Lab web service security
from Microsoft that show me how to use custom usernameTokenManager. But I
need to set up in web.config.

Is there any method that i can use custom usernameTokenManager or anyother
method to overwrite this authentication process at runtime rather than setup
in config file , so I can authenticate by myself rather than using default
one which is authenticating against domain\machines.

Thanks.

TV

> Hello tv,
>
> Are you sending UsernameToken from the client? If you send the password in plain text you need to create an account for this user in Windows. The
authentication when you use password in plain text is against the
domain\machine accounts.

> Regards,
>
[quoted text clipped - 3 lines]
> MCAD Charter Member
> MCSD.NET Early Achiever
Dilip Krishnan - 10 Dec 2004 01:48 GMT
Hello VT,
   By default you need to send username of the format DOMAIN\user because
WSE supports windows auth by default. Otherwise you can send a username and
create a custom username token manager to retrieve the pwd from whatever
source (SQL, AD/AD etc) you wish, based on the username. Then you need to
configure wse to use this username manager. Something like the example below.

<configuration>
 <microsoft.web.services2>
   <security>
     <securityTokenManager qname="wsse:UsernameToken" type="CustomSecurityNamespace.CustomSecurityClass,
AssemblyName"
         xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
   </security>
 </microsoft.web.services2>
</configuration>
   You;re probably getting this error cos' yr username  is not in the windows
format.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com

> Hi Martin,
> Yes I send UsernameToken to client and password send (either plain
[quoted text clipped - 29 lines]
>> MCAD Charter Member
>> MCSD.NET Early Achiever
Suba - 22 Jun 2007 10:44 GMT
Hi Martin

I am trying out CSF samples which in turn using WS 3.0. When i try to call the webservice from my windows client application its throwing the same error WSE101: An asynchronous operation raised an exception. I am not passing any user name or password  when i call the webservice.

You have any idea why this is happening

From http://www.developmentnow.com/g/28_2004_12_0_0_11326/WSE101-An-asynchronous-oper
ation-raised-an-exception-.ht


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.