Web service autentication problem when call another web service

Web service autentication problem when call another web service

Post by UmVkaG9 » Mon, 20 Jul 2009 06:43:01


- I have 2 .net 2.0/3.5 web services in one web server: WS_A and WS_B.
- WS_A uses WS_B.
- They use integrated autenthication on IIS and anonymous acess is disabled.
- I have a asp.net front end that use WS_A.

The workflow is:

- domain\user1 in active directory asp.net frontend.
- asp.net front end invoke WS_A with domain\user2
- WS_A invoke WS_B with domain\user3

The code usede to pass credentials from WS_A to WS_B is:

CredentialCache cache = new CredentialCache();
cache.Add(new Uri(service.Url),

"Negotiate", new

strPassword, strDomain));
service.Credentials = cache;
service.PreAuthenticate = true;

So far so good, I run the asp.net front end that gets data from WS_A and
WS_A gets data from WS_B, but...it only works int the firts 5 min. after I
make the publish of WS_A and WS_B....

Can anynone help me?

It's the "double hop" problem? There is a solution?

Thank you in advance,
Best regards,

1. InvocationTargetException when calling "new Service()" in Axis web service to call another web service

2. SSRS - Retrieving XML data from a web service/calling web service from report problems...

OK I've been trying to both make my own example, as well as, get the
Microsoft examples located here to work:



I just want the report to call a web service and bring back data.

For the Microsoft example, I follow it exactly and get 'Failed to
execute web request for specified URL / Server did not recognize the
value of HTTP Header SOAPAction:
http://www.yqcomputer.com/ '

For my example, I try to mimmick/mirror the way the Microsoft example
demonstrates, but with my web service (which takes a string and an int
and returns an XML string) I can actually debug into the web service,
but always my passing parameters wind up null at the beginning of the

Can someone point me in the right direction please? Are there other,
working examples of reports calling web services out there? Is there
something else I'm doing wrong?

Thank you...

3. Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat

4. web-service call from inside a web-service - AV

5. Timeout errors making a web service call from another web service

6. Calling Google Web Service in VBA using Web Services Toolkit - Invalid OLEVERB structure error

7. Calling .Net Web Service Operations from Tcl Web Services 1.8 Client - Follow-up

8. Calling .Net Web Service Operations from Tcl Web Services 1.8 Client

9. Web Service that calls an external Web Service

10. calling a web service from within a web service

11. Calling an Asynch web service within a web service.

12. How to call a web service using NT Authentication from Web Service

13. Web solution with Web Service does not start Web Service

14. Does timer in Web Service Global.asax block my Web Service from processing web-site requests?

15. Consuming local web service - ok, remote web service -problem?