none
PowerShell to consume WCF service with multiple contracts RRS feed

  • General discussion

  • I have implmented two WCF services for managing two different types of resources. There are some APIs implemented to connect to these resources. Both WCF services are hosted as Windows Service.

    As there is need one more resource arising, hence we wanted to unify the WCF service as one which will enable us to reduce the effort to manage these windows services.

    Now there will one WCF service which will host all these 3 different resources.

    I have implemented 3 different Interfaces for these resources and implemented in main service.

    My client is PowerShell script which consume this WCF service as "$wcf = New-WebServiceProxy <URL>".

    I have assigned different contracts to take care different resources and assigned them to different bindings.

    Now i am only able to access only one contract thorugh PowerShell and i guess it is attached to basicHttpBinding.

    How can i access contract with other bindings.

    Please help me.

    Thanks,

    Mukul

    Wednesday, July 31, 2013 6:11 AM