wcfservice

The provided URI scheme 'https' is invalid; expected 'http Error Help

Hello, I set up a custom binding with http and https endpoints for my WCF webservice. However, when I attempt to call the https endpoint, I get the following The provided URI scheme 'https' is invalid; expected 'http Here are my two bindings <customBinding> <binding name="jsonpBinding"> <jsonpEncoding/> <...

login failed error when connecting to database from WCF service

Hi, I created a WCF service and one of its methods connects to database to perform some task. when I call the WCF service method from the client (website or console app), I get a login failed error ("login failed", login is from an untrusted domain"). I can connect to the database from the website successfully, but when I do the same b...

Custom IdentityVerifier with BasicHttpBinding

Hi there, I want to implement a custom identity validator in my client for my WCF service, however I want to use BasicHTTPBinding. Can anyone tell me where I set my IdentityVerifier? The only examples I have seen extract a type of SecurityBindingElement from a secure binding (i.e. WsHttpBinding) and set the IdentityVerifier on that, b...

WCF Service returning 400 error: The body of the message cannot be read because it is empty.

I have a WCF service that is causing a bit of a headache. I have tracing enabled, I have an object with a data contract being built and passed in, but I am seeing this error in the log: <TraceData> <DataItem> <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"...

WCF config for a service class implementing multiple contracts on separate endpoints

I have a MyService class implementing IService1 and IService2 interfaces. I would like to expose these two contracts on two separate endpoints, like: IService1 exposed on /Service/S1 IService2 exposed on /Service/S2 How would such a config look like? ...

Scrolling Datagrid in editmode, the control disappears

Hi, I am using datagrid in silverlight 3 with custom binding and In editmode I have datepicker and checkbox display in grid , when I scroll the grid the datapicker and checkbox disapear and normal database date value get display in some rows and vice versa. Please help me out from this problem I have a release after 2 days. till now I...

WCF Instance Management

Hi I am creating a silverlight card game which talks to a WCF service using a duplex binding Each client communicates with the service when it is their turn by sending their ID and the cards they want to play And in response, the updated Game state is transmitted to each client While I've been testing, I have had the instancing set...

Two-way WCF service operation returns no reply instead of an exception.

I have two different WCF services doing mostly your basic CRUD operations. For both services, regardless of the client, if the service throws an exception the exception will not be returned to the client. In fact, the only way I can see the actual exception is to turn on tracing in the services and view the trace file. This is true rega...

Running WCF service shows directory listing instead of the service

I'm fiddling with a wcf service, and I've created a simple test one. When I 'run' the service, I get a directory listing in ie of the folder that the service is in. I can click on the 'myservice.svc' and it brings me to the page I'd expect, so that's ok. I get the eerie feeling that this is wrong. Is it? If so, how is it fixed? ...

Did anybody use WS-AtomicTransaction protocol to propagate transactions in WCF over the Internet?

Hi, Just curious, did anybody use WS-AT protocol to propagate transactions in WCF over the Internet in production(wsHttpBinding)? Is it hard to deploy/support? Is it a good approach to keep a WS-AT port open? Or maybe it is better to have a custom solution to support transactions? What do u think? ...

WCF client to display stackoverflow questions through REST? Examples?

Hello, Can someone point me to a Sample WCF client to display stackoverflow questions through REST? Thanks so much ...

URL of WCF service in my .NET solution

I am trying to adapt some JavaScript code to call a working WCF service in my C# .NET 3.5 solution. I need to figure out the URL of the WCF. Should be pretty simple, I would hope. ...

WCF and ExtJS FileUpload

I been trying to upload File throught WCF using ExtJS here a snippted of my code browseFile = new Ext.ux.form.FileUploadField({ id: 'form-file', name: 'BrowseFile', fieldLabel: 'Browse', allowBlank: false, maxLength: 8000, emptyText: '' }); added to the form and use the fileupload:true property too but havent been...

WCF endpoints are driving me insane.

Maybe I'm just not getting it, but I have a service that is deployed to an IIS 6 machine. That machine has a LAN address and a Public internet address. How on earth am I supposed to be able publish this service with both accessible? Address 1: http://serverName/ServiceName/Service.svc Address 2: http://www.companyName.com/ServiceName/...

WCF Service Not Connecting to SQL Database

Problem When making calls to a SQL database from a WCF service we receive the following error: "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to...

WCF Service, JSON Input Datatype, Error in deserializing body of request message for operation

Hi I have a WCF Service method SavePlannerData that has one of input Guid datatype. Now if there is no Guid, it is coming as EmptyString ("") instead of null. If it is null, it is working fine. If it is emptystring, it is not calling WCfService and It is throwing the following error: Error in deserializing body of request message for...

Understanding Json structure generated by an AJAX-enabled WCF Service

Good afternoon In Visual Studio 2010 I am able to add to my solution a new item called in AJAX-enabled WCF service. That will add a new a .svc file. Later, I have created a method just for debugging purposes: [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allo...

WCF endpointBehaviors extension not picked up when the name param is present?

I am trying to extend my service endpoint behaviour with custom MessageInspector, extension works fine and its picked up, but only if I don’t define the “name” parameter on behaviour tag and don’t define specific behaviorConfiguration on the endpoint. This means I am extending all endpoints and this is what I don’t want. Could anyone ple...

The protocol 'net.tcp' is not supported.

When I try to browse my service.svc file,I keep getting this error. I've enabled tcp in the default website in IIS. The port number 808:* is already there in my IIS bindings Ive installed WAS and support for non http protocols... TcpChannellistener service and tcp port sharing services are running.. But,now why am I unable to browse ...

Difference between Window Service, WCF Service application and ASP.NET web service application?

Hi, I don't know this is a right forum for my question or not? I am new in Web Services. Today i just open VS2008 and found 3 type of SERVICE project 1. Window Service 2. WCF Service application 3. ASP.NET web service application Please help me to find out the difference between these three project? When should we decide which typ...