小编Ant*_*ony的帖子

如何将WCF IncludeExceptionDetailInFaults添加到端点行为?

我如何添加IncludeExceptionDetailInFaults = true; 到下面的代码.我需要获取Web服务抛出的FaultException的详细信息.目前我没有收到任何细节.看起来我唯一能回来的就是.有任何想法吗?

c#代码

CustomBinding Binding = new CustomBinding(BINDING_NAME);

EndpointAddress EndPoint = new EndpointAddress(WsEndpoint);

// Trust all certificates
ServicePointManager.ServerCertificateValidationCallback = ((Sender, certificate, chain, sslPolicyErrors) => true);

_WsProxy = new MyDataSoapClient(Binding, EndPoint);

//_WsProxy.Endpoint.Behaviors.Add(????);

_WsProxy.ChannelFactory.Credentials.UserName.UserName = "username";
_WsProxy.ChannelFactory.Credentials.UserName.Password = "pwd";
Run Code Online (Sandbox Code Playgroud)

c# wcf wcf-binding

6
推荐指数
1
解决办法
4572
查看次数

当人们选择器从浏览弹出窗口将值返回到主窗体时,我需要触发jquery

当人们选择器从弹出的浏览窗口将值返回到主窗体时,是否有人试图尝试触发jquery更改事件?我在jquery语句中尝试了几个标签,但似乎没有任何效果.(SP 2010)

<wssawc:PeopleEditor AllowEmpty="false" AcceptAnyEmailAddresses="true" ValidateResolvedEntity="true"
ShowButtons="true" ShowDataValidationErrorBorder="true" ShowEntityDisplayTextInTextBox="true"
ShowErrorPlaceHolder="true" ValidatorEnabled="true" MultiSelect="false" ID="primaryOwnerPicker"
runat="server" SelectionSet="User" Width="12em" AllowTypeIn="false" DoPostBackOnResolve="false"
EnableBrowse="true" ForceClaims="true" Title="Primary Owner People Picker" />
Run Code Online (Sandbox Code Playgroud)

我试过了

$("textarea[title='Primary Owner People Picker']").change(function ()
{
    alert("here");
});
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激...

c# sharepoint jquery peoplepicker

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

c# ×2

jquery ×1

peoplepicker ×1

sharepoint ×1

wcf ×1

wcf-binding ×1