wcf

What to use for building a service tier in PHP?

I come from a MS / C# / .Net background, and am accustomed to everything that the .Net Framework has to offer, including WCF. When building a service tier in .Net, the choice of what framework to use is easy: WCF. WCF gives you the ability to write something once, and the flexibility to expose that functionality in multiple ways and in...

WCF Versioning : Update Attribute Namespaces and Support Previous Namespaces

I have three WCF services (.svc) which generate .wsdl references for SOAP messages. Given that part of the namespace needs to change for all ServiceContract, OperationContract, DataContract attributes, for example [DataContract(Namespace = "http://old.com.au/types/")] to [DataContract(Namespace = "http://new.com.au/types/")] How ...

Sharepoint 2010 custom WCF service

Hello, I am trying to create a custom WCF service and to host it in Sharepoint 2010. I found a howto on how to do that here: http://msdn.microsoft.com/en-us/library/ff521581.aspx the problem is the attribute "BasicHttpBindingServiceMetadataExchangeEndpointAttribute" which should be in Microsoft.Sharepoint.Client.Services. But I could...

WCF large file transfer from a server and vice-versa.

My WCF service contract has to methods like these: [OperationContract] string GetFile(int id); [OperationContract] void UploadFile(int id, string text); GetFile returns a text of a file and UploadFile sends some file's content to a server. There is a strange behavior, when file's size is about few MB (4.37 MB in my ...

Error adding service reference The server committed a protocol violation.

After moving application to shared hosting I cannot add service reference to .asmx and WCF services that used to work on dedicated server. The error in adding WCF service reference is: There was an error downloading 'address ... Service.svc'. The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed b...

Inconsistent type not expected serialization fault

Does anybody have any idea what could cause an inconsistent fault like: [FaultException1: Type 'System.Collections.ObjectModel.Collection1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' with data contract name 'ArrayOfstring:http://schemas.microsoft.com/2003/10/Serialization/Arrays' is not...

WCF Returning HTML Instead of XML

Can some one tell me why am I getting the following data in return of WCF service request? I want the formatted XML so that I can parse it. <?xml version="1.0" encoding="utf-8"?><string>&lt;DocumentElement&gt;&#xD; &lt;UT&gt;&#xD; &lt;UserFirstName&gt;z&lt;/UserFirstName&gt;&#xD; &lt;UserLastName&gt;z&lt;/UserLastName&gt;&#xD;...

Why is ServiceKnownType not needed for my object?

It is my understanding that every type (other than some primitives like int and string) used in a WCF ServiceContract need to be declared with ServiceKnownType attribute. But, I have build a custom object and it is transmitted accross my WCF service with no problem -- even though I have not added a ServiceKnownType for it. Will someone...

RIA Services OData "Query options are not allowed."

Hi, I have a OData endpoint which was created automatically by RIA which seems to work with simple 'get' queries. E.g. http://xxx/Service/BusinessApplication1-Web-DomainService1.svc/odata/ProductSet But when I try to use queries such as 'where' or 'top', e.g: .../BusinessApplication1-Web-DomainService1.svc/odata/ProductSet?$top=50...

Ria Services Passing Complex Object as parameter to a query domain service method

Hi I'm experiencing some difficulties with a WCF RIA Services similar to the problem specified in this thread. The domainservice method I'm creating (a Query method) should take a complex object parameter. example domainservice method: public ComplexObjectResult GetComplexObject(ComplexObjectParameter test) { //do stuff ...

WCF svcutil Error: Cannot obtain Metadata from locahost

I've been looking around the questions here to see if anything similar was addressed already. I've yet to find a solution so hopefully someone can help out and point me in the right direction. I have a service and I can successfully navigate to the svc page on my localhost. https://localhost/WebSite/UploadService/UploadService.svc Thi...

IDIspatchMessageInspector

I Implement IDispatchMessageInspector.AfterReciveRequest Then I configur like this : <configuration> <system.serviceModel> <services> <service name="Microsoft.WCF.Documentation.SampleService" behaviorConfiguration="inspectorBehavior"> <host> <baseAddresses> <add baseAddress="htt...

How do I get the Current ServiceSecurityContext on the server side when using WCF?

I have a client app that can upload some data via a WCF service. I have the client app setup some credentials so the service can authenticate the user using some membership provider. I'm having some issues getting SSL (https) working at the moment so I tried just simplifying the config by setting security modes to none. When doing so ...

WCF The Security Support Provider Interface (SSPI) negotiation failed.

I am using a wcf service that I created, when both hosting machine and the client machine are on the same domain everything works just fine. When I publish the client app to the webserver in the DMZ I am getting the following error: SOAP security negotiation with 'http://10.0.0.14:3790/Bullfrog/QBService/QBService' for target 'http:/...

ASP.NET - Do I need to use Data Transfer Object when I transfer an object to WCF?

is this really necessary, or is there any framework that do this job for me? Thank you ...

Preventing Cross-Domain access to services with WCF

Hello, I have several WCF services in an ASP.NET application. I want to prevent applications from outside of my domain from accessing these services. Is there a configuration setting that allows me to block requests from outside of my domain? Thank you! ...

Output large dataset from web service

Hi, I wonder if anyone experienced with returning large dataset from webservice. The dataset is around 10,000 x 60 floats. I will be using http wcf for my webservice. Any ideas to approach it are welcome :) Thanks. ...

What should I know when developing interoperable WCF web service?

I'm starting this Wiki to collect best practices about creating interoperable web services (not clients) in WCF. Please share your experience if you know any feature which is not generally interoperable or which is not interoperable with specific platform. ...

WF4 service client don't generate proxy class

Hello, I have a windows workflow foundation 4 service and a simple client . When I add the service reference in the client the visual studio don't generate a proxy class, only the interface and types Anybody have any solution? What should I do to work with the wf4 service properly? I need to use qhat kind of namespace and classes and c...

Successfully calling a WCF Service from Ruby? Anyone?

I'm trying to integrate a rails application with a WCF service. I've tried soap4r and Savon with no love at all. As far as I can tell, none of the Ruby libraries support the newest version of SOAP. The error that I was getting was: Cannot process the message because the content type 'text/xml;charset=UTF-8' was not the expecte...