wcf-binding

How to set Visibility of Label which is bound to Textbox?

我怕爱的太早我们不能终老 提交于 2020-11-29 19:14:52
问题 I have three TEXTBOX which are bound to LABEL. When I type something in TEXTBOX then TextBox text value is set to Label. Problem is i want to set Visiblity of LABEL to COLLAPSED when text box is blank and vice versa . how to do it using Visibility Convert in WPF? in .XAML file: <TextBox Name="txtEmail1" Grid.Column="1" Grid.Row="0" Text="Email" HorizontalAlignment="Stretch" Margin="2" VerticalAlignment="Stretch"/> <TextBox Name="txtEmail2" Grid.Column="1" Grid.Row="0" Text="Email2" Visibility

PHP Soap Client call to WCF service?

安稳与你 提交于 2020-04-30 06:42:05
问题 How to do this, I m new Soap API, Any sample Code $soapClient = new SoapClient("http://website.com/EComintegration/IntegrationService.svc?wsdl"); // Prepare SoapHeader parameters $sh_param = array( 'UserName' => 'admin', 'Password' => 'admin'); //'ClientID' => 1, //'OutletID' => 1, //'TerminalID' => 1); $headers = new SoapHeader('http://website.com/EComintegration/IntegrationService.svc', 'UserCredentials', $sh_param); // Prepare Soap Client $soapClient->__setSoapHeaders(array($headers)); //

Bad Request Error On REST service Method call with POST (json Data)?

非 Y 不嫁゛ 提交于 2020-02-24 05:32:07
问题 Hi i am new to the RESTful WCF I am trying to do the the simple call to the webservice method using POST here is my code Service Interface code [ServiceContract] public interface IJsonSave { [OperationContract] [WebInvoke(UriTemplate = "/SaveJason", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest)] string SaveJason(string value); } web.config file code <?xml version="1.0"?> <configuration> <system

A registration already exists for URI - How to programmatically check / remove registration?

二次信任 提交于 2020-01-25 10:06:27
问题 I am hosting my WCF services in service fabric. One of the WCF service starts a HttpSelfHostServer on a port after startup. I sometimes gets the error: A registration already exists for URI 'http://localhost:10503/'. at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels.CommunicationObject.EndOpen(IAsyncResult result) at System.Web.Http.SelfHost.HttpSelfHostServer.OpenListenerComplete(IAsyncResult result) In service fabric, I think there could be

WCF hosting issues

本小妞迷上赌 提交于 2020-01-24 12:37:25
问题 Hi I wonder if someone can help me, I've been banging my head against the wall trying to solve this but no luck yet :( I have a WCF hosted on IIS6 on a remote server on our internal network, http://systemservices/ServiceManagerServices.svc. I can access the service in my browser, however when trying to send a request using WcfTestClient, i get the following error: > Error: Cannot obtain Metadata from > http://systemservices/ServiceManagerServices.svc If this is a Windows > (R) Communication

WCF - Cannot obtain Metadata

折月煮酒 提交于 2020-01-22 16:27:46
问题 It is running in an Intranet using IIS 7 and it works fine whenever I enable Anonymous Authentication in the IIS Manager. If I disable it and try to run it using wcftestclient then I get the following error, Error: Cannot obtain Metadata from http://myserver/testing/eval.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to

Can I differentiate a timeout from a message size issue using only CommunicationException?

若如初见. 提交于 2020-01-17 11:11:11
问题 Folks, I hit the following exception and I know for a fact that its not a timeout issue and that its a message size issue. Using ONLY the CommunicationException, is there a way to tell that this issue was a message size issue and not a timeout issue? Perhaps one of the properties on CommunicationException? or maybe it can be cast in a certain way? I'm willing to explore any proposals. System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an

how to call https wcf soap from android with WSHttpBinding

末鹿安然 提交于 2020-01-17 03:03:29
问题 Is there any way to call HTTPS wcf ksoap from Android with WSHttpBinding? With http and basichttpbinding it is working fine but I can't get it to work with HTTPS and WSHttpBinding. 回答1: For WSHttpBinding Support KSoap will support WSHttpBinding. Use Version12 tag. SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER12); soapEnvelope.implicitTypes = true; soapEnvelope.dotNet = true; soapEnvelope.headerOut = SoapUtils.buildHeader(url, soapAction); Add the

Running WCF Test Client and receiving MaxReceivedMessageSize error after increasing in app.config

拟墨画扇 提交于 2020-01-14 10:07:35
问题 I am trying to set up my first WCF service in VS 2013. I'm busy working my way through a tutorial, but have hit a snag... Running a simple Service (DataViewerService) which calls out to a database to return a recordset. I have changed my bindings to: <bindings> <basicHttpBinding> <binding allowCookies="true" maxReceivedMessageSize="20000000" maxBufferSize="20000000" maxBufferPoolSize="20000000"> <readerQuotas maxDepth="32" maxArrayLength="200000000" maxStringContentLength="200000000"/> <

Running WCF Test Client and receiving MaxReceivedMessageSize error after increasing in app.config

空扰寡人 提交于 2020-01-14 10:04:50
问题 I am trying to set up my first WCF service in VS 2013. I'm busy working my way through a tutorial, but have hit a snag... Running a simple Service (DataViewerService) which calls out to a database to return a recordset. I have changed my bindings to: <bindings> <basicHttpBinding> <binding allowCookies="true" maxReceivedMessageSize="20000000" maxBufferSize="20000000" maxBufferPoolSize="20000000"> <readerQuotas maxDepth="32" maxArrayLength="200000000" maxStringContentLength="200000000"/> <