wcf

How to use custom binding in WCF and keep message security mode with username client credentials?

Hi, I have WCF service accessible over Internet which uses wsHttpBinding with message security mode and username client credentials. <bindings> <wsHttpBinding> <binding name="wsHttpEndpointBinding" messageEncoding="Mtom" maxReceivedMessageSize="104857600"> <readerQuotas maxArrayLength="104857600"/> <s...

WsHttpBinding with security mode TransportWithMessageCredential in IIS 7 not working

Hi everybody We are currently migrating a WCF service from IIS 6 to IIS 7. The service contains some non-SSL endpoints for internal streaming purposes and some exposed endpoints secured with SSL. The public, secure endpoints are implemented using wsHttpBinding and security mode="TransportWithMessageCredential". The binding reads as fol...

What is WCF webHTTPbinding from TCP point of view?

What is WCF webHTTPbinding from TCP point of view? So - how hard it is from not needed data flow it is? How hard it is in compare to other WCF bindings? ...

How to receive arrays through WebHttpBinding?

Will anything like [OperationContract] [WebGet] string IWannaRead(int[] ids); work? And how to form a link\url (www.example.com/service.svc?ids=1,2,3,4,5,6,7,8) for the request? ...

jQuery SOAP client

Has anyone used the http://plugins.jquery.com/project/jqSOAPClient plugin to call any WCF Services (obviously via SOAP)? Doesn't seem to be working as expected. var soapBody = new SOAPObject("GetSomethingById").attr("id").val(123); var soapRequest = new SOAPRequest("http://tempuri.org/ISomething/GetSomethingById", soapBody); ...

"interface not found" in WCF Moniker without registration for excel

I'm trying to connect excel to a WCF service, but I can't seem to get even a trivial case to work... I get an Invalid Syntax error when I try and create the proxy in excel. I've attached the visual studio debugger to excel, and get that the real error is "interface not found". I know the service works because the test client created by...

Optional query string parameters in URITemplate in WCF?

I'm developing some RESTful services in WCF 4.0. I've got a method as below: [OperationContract] [WebGet(UriTemplate = "Test?format=XML&records={records}", ResponseFormat=WebMessageFormat.Xml)] public string TestXml(string records) { return "Hello XML"; } So if i navigate my browser to http://localhost:8000/Ser...

SQL Server 2008 Express one row write problem

Hi everyone, I have the most bizarre problem (at least it is bizarre to me) with SQL Server Express 2008. The problem is the following: On the development machine I use SQL Server 2008 Enterprise....I get some data from a WCF service and write that data to the database (simple as it can be)....I should point out however that the wr...

How do I separate business logic and database calls from a WCF web service?

This question may have been asked before, but I'm looking for a different answer than what I've seen. Our website is in ASP.NET and we use the model-view-presenter pattern to get business logic out of the markup codebehind. Is there an accepted pattern for web services for getting business logic out of the codebehind? It seems like pu...

WCF Rest service authentication

Hi, I am trying to write my first WCF Rest service following http://msdn.microsoft.com/en-us/library/ee391967%28v=MSDN.10%29.aspx Sometimes when I go to websites they ask a user to enter a username and password... I just wanted to know when Im testing my service with Http Get options in a browser, Is there a way so that the browser a...

Could not find default endpoint element ... in WCF Client.

I created a proxy Library Class in the Service Solution referencing the Contract Assembly as well and copied the libraries (Contract,Proxy) to another solution folder. Then referenced the Proxy,Contract and System.ServiceModel libraries in another class library where i need to use the one method contained, as well as adding an App.Config...

Creating Versatile Web Services sustaining high load - .NET

Hello I've a multi user web tool which makes use of a intermediate web service to communicate with an external datasource. The application makes frequent calls to the web service and it may involve intense data transfer, sometimes. I want to make a scalable architecture where thousands of users can make use of the web service at the sa...

Can I guarantee insertion order of IEnumerables over WCF?

If I have a WCF service which accepts an IEnumerable as a parameter to a function, is the order that I look up the elements guaranteed to be the same as they were added to the collection? (Or at least the same order they were sent across the wire?) If not, is there a way that I can guarantee the order, such as defining it in the service...

Passing SOAP XML Captured in AfterReceiveRequest method to WCF Service method

Hi I am using WCF Service.I have captured the SOAP Request XML message in AfterRecieveRequest method of Inspector File when an service request occurs.How can i send this Request XML to main service method.Please let me know. ...

Channel Factory in WCF

Hi all i am new to WCF i wanted to know if i use channel factory and if i make any changes in service contract whether the changes will be updated automatically in the client system or not???If the changes are updated automatically how???? ...

Channel Factory client side DLL modification

can u give me an example how to use the channel factory and make changes in the service without changing anything in the client side???? ...

Verify that the current user is granted access in the appropriate allowedAccounts section of SMSvcHost.exe.config

I have getting the above error when i try to start wcf service hosted in windows service. i am using net.tcp binding with port sharing and have updated the SMSSvcHost.exe.config with the correct SID. What else I could be missing which is casuing this error i noticed on other forums people suggsting rebooting the server and running the s...

Authenticating a mobile app against a WCF service?

We are working with a vendor to develop a mobile app and plan on using WCF services to handle operations. What are some types of authentication I can use with a WCF service? Would we send a user name and password through the SOAP header? How can we accomplish this securely? Also, this will be authenticated against our .NET membership da...

How do I pass a service to another plugin?

I have a plugin that I will instantiate at runtime and I want to pass it a WCF service from the application host. The application host is responsible for creating the connection to the service. The reason for this is that a single service can be used by multiple plugins, but the plugins should only know about its interface since there ...

How do I setup a really simple WCF Data service and entity model that works?

Ok this is going to seem really daft but but essentially this is what i'm trying to do in a nutshell ... http://msdn.microsoft.com/en-us/library/dd465161.aspx The problem is that when I create the WCF Data Service and browse to it everything looks good at the root level and as soon as I leave the root I get http 500 errors. I get no d...