New to WCF.
Can DataContact class inherit from Interface ?
eg:
[DataContract(Namespace = ...........)]
public class VesselSequence : IVesselSequence
{
[DataMember]
public int AllocationId { get; set; }
[DataMember]
public string ScenarioName { get; set; }
}
interface VesselSequence : IVesselSequence
{
public int...
I have a complex RIA client that communicates with a WCF SOAP web service, the second a being the operative word. This has resulted in a dreaded god class containing 131 [OperationContract] methods so far and even more private methods.
Personally, I don't have a problem with this; I use search and the navigation features of Visual Stud...
I developed a WCF REST Router which redirects incoming messages to WCF REST targets by inspecting the message, changing the message.Headers.To uri and forwarding it to the target.
Now I would like to use Basic and NTLM authentication. The authentication of the client against the router works fine. But I need the router to authenticate t...
Hi All,
I have several wcf services which are hosted using ServiceHost class.
Now , I want to implement a separate wcf service which can host these services.
Anyone please suggest me how can I do it?
Suppose I have created some wcf services , I can host them by self hosting using ServiceHost , but I want that a program that can host any...
Hi All,
How can I to get list of all wcf services running on a machine?
...
I have a WCF service implemented with a call back contract that I am trying to send a business object through. I have the business object decorated with DataContract() and DataMember() attributes, and it contains the following number of properties:
ints: 3
strings: 4
XElement: 1
other objects: 5 (also decorated with DataContract() and ...
I want to test whether wcf endpoint is reachable or not. Only available data is URI address to the service.
Can I connect to service to check whether it exist without creating the Client Proxy of service?
I want to do programmatically
bool EndpointReachable(UriAddress)
Also service can be net tcp
...
Context:
I need to develop a monitoring server that monitors some of our applications (these applications are in c#). So I decided to develop the system with WCF which seems suitable for my needs.
These applications must register themselves to the monitoring server when they start. After that the monitoring server can call the methods...
The method that I am trying to call has the following signature:
Results GetPerformanceData(MyEntity entity, bool recurse);
I set a breakpoint at the beginning of the method, but the exception is thrown before code execution gets to the breakpoint.
Tracing the WCF service gives me the following info:
System.NullReferenceException, ...
Let us assume I'm using communicating from my mobile device to my server via WCF web service. I could also do this with a standard web service as well.
I have read the WCF Guidance for Mobile Developers (http://wcfguidanceformobile.codeplex.com/), the only thing I see there is WCF has SSL support while straight web services do not.
No...
Hi All,
I am implementing a peer to peer network using WCF NetPeerTcpBinding connections.
I am using a central server which itself overrides the class CustomPeerResolverService. All this service does is register peers, and publish information about the peers to each other.
On my server application I can visibly see which peers are cur...
I have created a SharePoint web part and inside this web part I am trying to consume a WCF service.To do so I have added the system.serviceModel node (copied from client app.config) into the web.config of my web application.
Is there any other way to do the same? Actually i am trying to avoid any modification in web.config of web applic...
Hi All,
I have a service which has one endpoint , I have defined this endpoint in app.config file.
I want to know how can I create endpoints if I have app.config in program.
Please give me an idea.
...
I've wrapped my wcf client in a IDisposable wrapper and everything appears to work correctly, I have a test case that runs this x times after around 10 times I start to get timeout's
The calling code has the helper wrapped in a using statement, so tbh I'm at a bit of a loss
Anyone shed any light on this?
public class CrmServiceHelper ...
My Flex application does a remote call to weborb to save some data from Flex. When this data is saved, a service is called on another server. All this time Flex is waiting for an answer.
Is it possible to call this service (on the other server) and not wait for an answer. I have tried to call the service asynchronous but all this does i...
Writing a suite of IIS hosted WCF webservices (both GET and POST), and I need to be able to read a cookie for an authentication token so I know the user has been auth'd previously.
Will HttpContext.Current.Cookies give me what I need or is there something cleaner and more appropriate for a WCF web service with WebGet and WebInvoke attri...
I've written a fairly simple little C# web service, hosted from a standalone EXE via WCF. The code - somewhat simplified - looks like this:
namespace VMProvisionEXE
{
class EXEWrapper
{
static void Main(string[] args)
{
WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Mode = SecurityMode.None;
...
Hi, I am getting the following error on my client app
There was an error reading from the pipe: De pipe is beëindigd. (109,0x6d).
when using a specific implementation of my OperationContract. The following is a sample cut down to the point.
My DataContracts as like this:
[DataContract]
public class Person
{
[DataMember]
pub...
I installed .NET 3.5 SP1 on server which previously had .NET 3.0 SP2.
Before install site was working perfectly. After install and subsequeny server restart, site displays but anything that makes use of the WCF service has stopped working. The exception log reports exceptions like the following when any calls are made to the client pro...
Hi All,
How can I create client proxy if I know only the type of service ?
Is there any way , please suggest.
...