none
C# - passing certificates using SOAP and WS-TRUST to generate authorization tokens RRS feed

  • Question

  • I am working on a project that would consume a 3rd party web service for certain functionality. We have got 2 WSDL files 1) WSDL file related to security token service 2) WSDL file related to certain functionality that our application uses. We are also provided with client certificate in PKCS-12 format, which they say is used by Security Token Service system to generate run time tokens for accessing their service.

    We have also been informed that during run time the authorization token issued by Security Token Service system should be requested by our application using SOAP libraries and WS-TRUST protocols and also they mention some SOAP libraries will automatically request this token and pass it to service using WS-TRUST protocols.

    Since am new to security concepts, I have been trying to research on this for quite a long time but couldn't find relevant information. Can anyone please suggest on below questions and help me understand concepts on certificate file and authorization tokens.

    1) As per their documentation, is there any SOAP library which can automatically request service token and pass into actual service.? 2) How should the certificate be passed using SOAP to generate security token?

    Tuesday, January 10, 2017 11:13 AM

All replies

  • Hi Abishek,

    To consume a web service, I think we need more information about this web service like service security mode. Based on your description, it is difficult to know the design of web service. For consuming this web service, I think the best way is to confirm with developer of this service. They are more familiar with this service and they know how to consume their service.

    Otherwise, it would be helpful if you could share us below information.

    1. The binding of web service
    2. Security mode of web service
    3. The generated code and web.config of your WCF client.

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, January 11, 2017 5:26 AM