Calling one web service from another web service

Calling one web service from another web service

Post by ipsita.moh » Fri, 22 Oct 2004 07:02:49


Hi!

I am building an application and incorporating the WS-Security
features like: authentication (by encrypting username token) by X.509
certificates, digitally signing. If my web service needs to contact
another web service, for example a shopping cart web service calling a
credit card web service to verify whether the credit card information
is valid, how do I do so? How do I incorporate security features such
that the credit card web service trusts the shopping card web service
and accepts the data from it? I am using C# and ASP.NET, and using WSE
2.0.

I would appreciate any help.

Thanks and Regards
Ipsita
 
 
 

Calling one web service from another web service

Post by Kirill Gav » Fri, 22 Oct 2004 11:43:23

Same way as you do it in the client-service scenario. Your shopping card web
service is the client for your credit card web service.

If you're using policy, the policy for the shopping card web service needs
to include the client side policy for the credit-card web service.

 
 
 

Calling one web service from another web service

Post by ipsita.moh » Sun, 24 Oct 2004 03:14:33

Hi!

I am still not clear. I am not using policy. I am writing code in the
client and server side to expect encrypted tokens, and I install X.509
certificates accordingly(in Current User and Local Machine) as
mentioned in the WSE 2.0 documentation.

In the case of one web service calling another, e.g. the credit card
company, which will service the request of the shopping cart service,
where do I install the X.509 certificates to indicate that the cc
company trusts the shopping service. Since WSE 2.0 has a single sample
server certificate, and in my case I have 2 web services, I would then
need 2 server certificates. How do I use makecert.exe to generate
server certificates?

I would appreciate if you can give a specific example and code
snippets, since I am a starter.

Thank you so much
-Ipsita