Web Services: Security handler failed

276 views
Skip to first unread message

Star Bright

unread,
Jun 4, 2012, 1:29:19 AM6/4/12
to lr-loa...@googlegroups.com
I created a small WCF service in visual studio 2010, which has WCF-WShttpbinding-windows
authentication. I uses web service protocol to call this service in Load Runner. Web service calls are successfully added in Load runner script; i also set "WCF-WShttpbinding- windows" scenario type in "Protocol and Security" tab in "Manage Services"  but facing following error during replay:
 
Error: SOAP security negotiation with 'http://sqa045:8080/ZedServices/ThreeService' for target 'http://sqa045:8080/ZedServices/ThreeService' failed. See inner exception for more details.
Error: Security Support Provider Interface (SSPI) authentication failed. The server may not be running in an account with identity 'host/sqa045'. If the server is running in a service account (Network Service for example), specify the account's ServicePrincipalName as the identity in the EndpointAddress for the server. If the server is running in a user account, specify the account's UserPrincipalName as the identity in the EndpointAddress for the server.
 
I also tried with web_service_set_security function but following error has been seen even web service set security function successfully passed:


Action.c(9): Web service set security started.
Action.c(9): Web set security was successful.
Action.c(14): Web service call "add_104" started
Action.c(14): Error: Security handler failed - WSE005: The input was not a valid SOAP message because it has either the wrong name or the wrong namespace. The name specified follows: Envelope. The namespace it was defined under follows: http://www.w3.org/2003/05/soap-envelope.
Action.c(14): Error: Failed to process the request.
Action.c(14): Error: InvokeMethod failed: JHTTPEngine sendRequest threw an exception.
Action.c(14): Error: InvokeMethod failure: AXIS engine threw an exception.
Action.c(14): Error: Internal error, please call customer support. Details: Error while retrieving body -- can not parse output parameters
Action.c(14): Error: Web service call "add_104" execution failed

Does anyone worked with WS protocol with security and could assist me??
Thanks in advance,
 

Star

unread,
Jun 5, 2012, 7:02:37 AM6/5/12
to LoadRunner
Hi,

I m using default WSHttpBinding & I also tried it by giving expected
upn value (from wsdl file), but having same following error:

Action.c(14): Error: Security handler failed - WSE005: The input was
not a valid SOAP message because it has either the wrong name or the
wrong namespace. The name specified follows: Envelope. The namespace
it was defined under follows: http://www.w3.org/2003/05/soap-envelope.
Action.c(14): Error: Failed to process the request.
Action.c(14): Error: InvokeMethod failed: JHTTPEngine sendRequest
threw an exception.
Action.c(14): Error: InvokeMethod failure: AXIS engine threw an
exception.
Action.c(14): Error: Internal error, please call customer support.
Details: Error while retrieving body -- can not parse output
parameters
Action.c(14): Error: Web service call "add_104" execution failed

What could be the reason ??

Thanks in advance,





On Jun 4, 2:39 pm, Yaron Naveh <yaron...@gmail.com> wrote:
> Hi
>
> In VS did you use the default WSHttpBinding or customized it?
>
> This error typically means you have misconfigured the "Expected spn" or
> "Expected upn" field.
> Build a working VS client for this WCF service - check out in its config
> whether it sets upn or spn (only one should be set) and what is the value.
> Sometimes that value also appear in the bottom of the wsdl.
>
> Yaronhttp://webservices20.blogspot.com/
> > Thanks in advance,- Hide quoted text -
>
> - Show quoted text -

Yaron Naveh

unread,
Jun 5, 2012, 9:17:44 AM6/5/12
to lr-loa...@googlegroups.com
you imported the wsdl with the java toolkit. try to build a new script with the .net toolkit.


--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en



--

I'm on Twitter (@YaronNaveh)


Star

unread,
Jun 6, 2012, 2:33:41 AM6/6/12
to LoadRunner
I tried with .net toolkit but no success! Following error has been
seen:

Action.c(12): Error: SOAP security negotiation with 'http://
server01:8080/MyServices/ThreeService' for target 'http://
server01:8080/MyServices/ThreeService' failed. See inner exception for
more details.
Error: The Security Support Provider Interface (SSPI) negotiation
failed.

Action.c(12): Error: InvokeMethod failure: External component has
thrown an exception..
Action.c(12): Error: ExtractResultArg failure: Object reference not
set to an instance of an object..
Action.c(12): Error: Web service call "rtrCodeString_102" execution
failed

Where rtrCodeString is the name of the function in the service.

What could be the reason?
Thanks In advance.
> I'm on Twitter (@YaronNaveh <http://twitter.com/#!/YaronNaveh>)- Hide quoted text -

Yaron Naveh

unread,
Jun 6, 2012, 11:02:14 AM6/6/12
to lr-loa...@googlegroups.com
can you build a very simple c# client that consumes this service with success? should have 2 lines of code + config. If so please publish that config here, in addition to the cugen config which is the .stss file in %script%/WSDL/@config

you can also mail me directly yaro...@gmail.com

I'm on Twitter (@YaronNaveh)


Star Bright

unread,
Jun 7, 2012, 8:07:23 AM6/7/12
to lr-loa...@googlegroups.com
I also tried a small c# application but having same problem. I think that i m missing something in configurations. I also tried by changing my server's machine but problem is same.

Attached are the required files (.stss, config, wsdl file)
Please have a look and let me know, if u find something.
 
Thanks in advance!


Date: Wed, 6 Jun 2012 18:02:14 +0300
Subject: Re: Web Services: Security handler failed
From: yaro...@gmail.com
To: lr-loa...@googlegroups.com
wsdl.wsdl
WpfZedClient.exe.config
ThreeSer.stss

Yaron Naveh

unread,
Jun 7, 2012, 9:17:11 AM6/7/12
to lr-loa...@googlegroups.com
Is this config from the auto generated visual studio client? If so this should not fail. Try to turn on wcf trace on the server to get more error info.
Reply all
Reply to author
Forward
0 new messages