Using HTTPS with basicHttpBinding in WCF Gateway

WCF can work as gateway and in this case you need to configure the service endpoint and client endpoint.

In some cases your client endpoint is HTTPS  and you are using basicHttpBinding. basicHttpBinding suppose you are not using HTTPS.

You need to define your own binding configuration with security mode set to Transport

0

 <client>
    <endpoint name="clientEndPoint" 
              bindingConfiguration="MyBasicHttpBinding" 
              address="https://**********************.svc" 
              binding="basicHttpBinding" 
              contract="*" />
 </client>

 <bindings>
     <basicHttpBinding>
        <binding name="MyBasicHttpBinding">
           <security mode="Transport">
           </security> 
        </binding>
    </basicHttpBinding>
</bindings>

Access Denied When Upload SWF File to SharePoint 2010

I have a user with with “Contribute” permission. But when he need to upload an SWF file to a document library, he got “Access Denied” while he can upload another file????

Solution

The solution is in PowerShell….

Open the PowerShell

write the follwoing commands:

$webApp=Get-SPWebApplication <YOUR WEB APPLICATION URL>
$webApp.WebFileExtensions

This will print the following extensions:
ascx
asmx
aspx
jar
mast
swf
xap
xsf
xsn

“swf” is there…

To remove this file extension use the follwoing CmdLet.
$webApp.WebFileExtensions.Remove(“swf”)

or you can add a new extension if you have security requirements, like this:
$webApp.WebFileExtensions.Add(“js”)

For more details: Microsoft Support