I need to create a WebService that takes the name of a city as input and returns Location, Country and Weather information of the City. The thing is that the ID, Location, Country is in one XML file and all weather details in another. <City> <ID&
In a client application, I am using an asynchronous WCF method being called from the following code: public void doActiveDx() { this.dataservice.GetActiveDxCompleted += (s,e) => { ...do something... }; this.dataservice.GetActiveDxAsync( ); } Why is t
I created a WCF service in separate project name is AaWs then added this project in a website project as a reference . website project name is AaNuWs in website project web.config file is <system.web> <compilation debug="true" /> <
Please explain in detail. I have been telling my mentor that everything I've researched on WCF and many programmers all over the net say it is NOT good to pass DataSets to the service, why is that? I created a BUNCH of classes in the service and the
I am trying to make a rest service and test it. Following is the resulted wsdl file, but I am not able to get the GetData method work. My WSDL file from http://localhost:21611/Service1.svc?wsdlis a working url. WebConfig: <?xml version="1.0"
If I want to self host WCF in a Windows Azure Website by spinning up my own ServiceHost can I host end points on 8080 or any other port I want to? Is there any specific usable range of ports I have access to or is port access entirely blocked? Edit:
At my workplace we are in the process of upgrading our Time and Attendance setup. Currently, we have physical terminals that employees use to check in and check out. These terminal communicate to a 3rd party T&A system via web service calls. About th
Saving data in windows phone received from WCF/web service . The response may be received after sometime so how to handle this situation. Saving data is no problem but How to handel if data is received lateYou can use this code (show the code from my
I am developing a WCF service which will be consumed by multiple different client applications. In order to make one functionality work, the server needs to read an XML file into a C# DataContract which is then passed on to the concerned client. As f
I have an ASP.NET MVC solution and also a WCF service for data access. In my WebUI I have some enums like this: public enum CompanyColumsEnumViewModel { CompanyName, CompanyPostCode, CompanyCity } This enum allows me to perform a search based on spec
I have around 15-20 services - each service has its own contract and implementation file. I want to host all these service in a console app so that it will be easier to debug during development. Project structure Services - Solution ServiceContracts
I have a WCF where all the calls work. All of them to silver light. But this one call it says it cannot find, yet it exists and it also shows silver light side. I am stumped for the lat 4 hours. Any ideas? This works: _client.GetHandSetsCompleted +=
I am currently using the WCF Web API and it is working great with synchronous tasks. However, when I try and implement asynchronous operations using Task/Task like so: [WebGet(UriTemplate = "landmark")] Task<IEnumerable<Closest>> Get
I send generic list of data by wcf service using REST. I understand that on server side it was serializing, and on client side deserializing. How can I get data before deserialization in JSON format to show it to user ?Take a look at this page, and d
My computer have a proxy server defined globally (in internet options configuration). I have a .Net 4 application that use a WCF client to a remote host. The client code has been generated by VS add service reference dialog. As my proxy can't reach t
I'm writing WCF service and his client. I want to send/receive objects of my custom classes, between service and client. I have 3 modules WCF service WCF client common class library Both WCF service and client have references to common class library.
We have a WCF service, hosted on IIS7.5, that has to fetch some data from an external web service. Is there some way to schedule this action to be started, in our WCF service, on a regular (timed) basis? ThanksYes, create a Windows service which wake
I want to bind POSTed form values to parameters in my WCF operation in the same way that ASP.Net MVC allows me to do. So, for example if my form has "customer.Name" and "customer.Age" parameters, I want to make a standard HTML POST to
Here's my scenario - I am working with SL3 (and WCF Data Services) and I have a custom form that manages Employees. On the form, I have some simple TextBox(es) and some ComboBox(es) for entering basic information for an Employee. In my architecture,
When I am running a WCF service on my development machine it works as long as the client is connected to the domain. When the machine is disconnected I get the following exception: System.ServiceModel.Security.SecurityNegotiationException: A call to
I feel like it should be easier to test my WCF Services. Is there an alternative to WCF Test Client? Something with these features: Can save my object trees (method parameters) to be used again. Ideally it would even let me identify GUIDs that need t
I have a web service that is used by many different clients using many different languages. I want to switch it to wcf to take advantage of the many different endpoints. However what has been stopping me is that I am afraid that the clients will have
How can you make WCF use xs:All instead of xs:Sequence when it defines complex object types in the wsdl/xsd for a web service? The issue I am having is that xs:Sequence requires that calling applications pass the elements in the soap message in the o
I am trying to consume a remote svc web service. I created the proxy class using svcutil.exe, and after that I've added that class to my console application, but it yields an error: An unsecured error or incorrectly secured fault was received from th
We're connecting to a web service and the fault message we're getting back isn't deserializing (at all), and no version of class that I can make will deserialize correctly. We have no control over the server side of things. The server does not allow
I have an application where client and server share types, and interoperability is not one of our concerns. I am planning to have a single repository for all web enabled objects, and i was thinking of a generic interface for my exposed service. somet
i'm new to the WCF service i have WCF service, in which i use to do file operation to a shared drive. when i try writing/reading to shared location, it throws me a Exception saying "login failure unknown username or bad password" i can do file o
I have a WCF service that is hosted via IIS on multiple web servers. I have a logging method that logs the calls to the database and I'd like to log which server the call is executing on. Does anyone know how to get the host server name or IP address
I'm writing my first WCF service. I decided to write the service just as a DLL to begin with and then aspect the WCF stuff on afterwards which is where I am now. I was advised by the architect that I should stick to a specific format for message obje
I have a WCF service that is hosted in a windows application. The service uses netMsmqBinding. The client and the host are in different domains. My question is how do I configure the security settings? The data that is transferred is sensitive so I w