Search code examples
c#wcfsap-pisap-xi

How to specify username in ClientCredentials (Basic) while calling SAP PI service from WCF


I need to use http not https

The provided URI scheme 'http' is invalid; expected 'https'. Parameter name: via

What I have to change?

enter image description here


Solution

  • Using configuration file I need to switch from:

    <customBinding>
        <binding>
            <httpsTransport />
        </binding>
    <customBinding>
    

    to

    <customBinding>
        <binding>
            <httpTransport />
        </binding>
    <customBinding>