"Security requirements are not satisfied because the security header is not present in the incoming message."

1,106 views
Skip to first unread message

Greg

unread,
Jul 7, 2011, 2:55:32 PM7/7/11
to DevTargetProcess
Since setting everything up with WSE 3.0, etc, I too had the issue
with UserServiceWse. So, I tried the below code instead which seemed
kind of logical, and it compiled and ran up to the point of some kind
of security blockage error (also pasted below as a comment). Is there
something our IT people need to do on the server side to allow this
call to go through and gain access, or is there some kind of setting I
need to make in the project? If so, what are the very exact, precise
steps to make the pluming work out?

Thanks.

// Create web service and path authentication.
// "admin" / "admin" is login/password of user
// that has access to TargetProcess

//UserServiceWse userService = new UserServiceWse();
UserServiceSoapClient userService = new
UserServiceSoapClient();
//TpPolicy.ApplyAutheticationTicket(userService, "admin",
"admin");
UserDTO userDTO = new UserDTO();
userDTO.Login = "xxx"; // xxx = my Login
userDTO.Password = "yyy"; // yyy = my Password
userService.Create(userDTO); // leads to this error:
"Security requirements are not satisfied because the security header
is not present in the incoming message."

// Retrieve all users in TargetProcess
UserDTO[] users = userService.RetrieveAll();

// Make something interesting with users list.
// For example, just show users
foreach (UserDTO user in users)
{
Console.WriteLine(user.FirstName + " " +
user.LastName);
}

Andrey Vaskovskiy

unread,
Jul 8, 2011, 6:29:23 AM7/8/11
to devtarge...@googlegroups.com
Hi Greg,

See the working sample attached and let me know if this helped you. The
sample works with our demo host http://demo.tpondemand.com. Just change the
line "http://demo.tpondemand.com/" in the code to your host and it should
work for you.

Let me know if you haqve any questions for me.

Regards,
Andrey

BugServiceCall.zip

Greg Bala

unread,
Jul 8, 2011, 1:47:34 PM7/8/11
to devtarge...@googlegroups.com
Thanks Andrey. After the email exchange yesterday, I decided to try something else where I went to an older version of Visual Studio. I have two on my computer and it usually defaults to 2008. It looks like this solution MUST be done in 2005, and nothing more recent, and it worked fine there. So, it's fine now.

Thanks again.

Jean-Francois Harrington

unread,
Jul 8, 2011, 1:50:21 PM7/8/11
to devtarge...@googlegroups.com

I’m actually using a project in VS.NET 2010 and using this DLL in DotNetNuke to interact with the web services so yes, it’s working fine with recent version.

 

 

De : devtarge...@googlegroups.com [mailto:devtarge...@googlegroups.com] De la part de Greg Bala
Envoyé : 8 juillet 2011 13:48
À : devtarge...@googlegroups.com
Objet : Re: [DEV TargetProcess] "Security requirements are not satisfied because the security header is not present in the incoming message."


No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1388 / Virus Database: 1516/3750 - Release Date: 07/07/11

Greg Bala

unread,
Jul 8, 2011, 1:58:29 PM7/8/11
to devtarge...@googlegroups.com
OK, thanks. That's good to know. I'll probably stick with 2005 for now since it's working well there anyhow at this point.
Reply all
Reply to author
Forward
0 new messages