Iam trying to connect my App to a WCF service that I created in asp.net.
The service runs on my localmachine:
http://localhost:8080/Service.svc/
But for some reasons my Android can not connect to this http-adress.
This is the error:
09-12 14:50:44.540: WARN/System.err(593): org.apache.http.conn.HttpHostConnectException: Connection to...
Iam connecting my Android app to a wcf service, and in my Log.i I can see that it return data correct, The only thing I want to handle it as JSON but my service sends as XML-(I think): this is how the code in the app looks like:
if (entity != null)
{
InputStream instream = entity.getContent();
BufferedReader reader = new Buff...
I am currently developing a WCF service .net 4.0 which has got 2 properties. For some reason those property is not visible on the client.
Following is the code for the service.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.We...
I wonder if there are some differences between creating a WCF service and an MVC web-application.
If you know of good links on how to create such a service for an MVC application that returns a JSON object please do post them.
...
I am trying to make my WCF service method to return JSON-object, but it doesn't work, when I open in a web browser it shows xml.
How can I make this method return JSON?
I have inserted [WebGet(ResponseFormat = WebMessageFormat.Json)], but that didn't help
[WebGet(ResponseFormat = WebMessageFormat.Json)]
protected override IEnumer...
1st of all, apologies if this is a basic/simple WCF question, i'm a WCF newbie and haven't come across this so far.
Question 1 - Is there a way to see what data is marshalled on a wcf service call ?
and given the following definitions
Interface IX
{
List<string> list;
Dictionary<string,MyType> dict;
}
Interface IY : IX
{
L...
I am relatively new to .Net and C# development and am having an issue decoupling WCF services from an app into a network DLL I am creating. The DLL's goal is to offer a simple way to host and access a service from a server and client application and to add some functionality to the basic service for heartbeat and automatic reconnection w...
I have a windows service that is heavily multithreaded. Each thread calls various methods of WCF Service. After around some time all the calls I do to the WCF Service result in a timeout:
The request channel timed out
attempting to send after 00:10:00.
Increase the timeout value passed to
the call to Request or increase the
S...
I am going to develop a WCF service that connects back-end system with two e-commerce websites. Back-end system sits behind the internet as opposed to other components. Each website has a SQL database with identical schema. The back-end system acting as inventory master will be the service consumer and will be pushing product data to eac...
Has anyone created a WCF service that subscribes to the TFSEventService and listens for the WorkItemChangedEvent? There are a couple SO questions I found regarding this but from the small bit of info I could find it seems that 2010 might be slightly different and these two SO questions are from 2009 (1537302 and 1891773) so not sure if ...
i want to use wshttpbinding (with ssl and without ssl) in single service but it not works,,anybody had implemented ittt,,,so please guide how can i achieve that????
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="CommonBehaviour">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
<servi...
I am creating a WCF service, and it is timing out when it is used in some of my integration tests. I have been able to narrow it down and it is demonstrated by the following code. It appears that creating a Form before you create the host causes the problem, but I'm not sure why.
class Program
{
[ServiceContract]
public interfac...
Basic architecture: Application consumes 2 databases one SQL Server 2005 and another third party SQL Server 2008. The 2008 database is accessible only via a WCF service behind a network load balancer.
So, in the data access layer of my app I need some method of distributed transactions to access both databases. What are my options?
The ...
Hi,
I have a need to run multiple WCF services at the same time, from a single windows service. Each WCF service is basically the same, but has one object specific to that instance. So with the following service class:
public class MyService : IMyContract
{
public MyType MyObject { get; set; }
public MyService(MyType myObject)...
I am using the WCF Collection Service in asp.net,
Just to learn I am using the SampleItem.
The xml looks like this in the web browser:
- <ItemInfoList xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ItemInfo>
<EditLink>http://localhost:8080/Service.svc/A</EditLink>
- <Item>
<Value>A</Value>
</Item>
</ItemInf...
I have a WCF service set up to serve data through multiple endpoints (SOAP, JSON and XML) the SOAP and XML is working perfect, but when I try to view the json I get a prompt to download a file with the json results instead of displaying the results in the browser. This probably won't matter as the client will most likely be consuming th...
Get correct data from JsonObject..
This is how the jsonstring looks like:
[
{
"EditLink": "http:\/\/localhost:8080\/Service.svc\/A?format=json",
"Item": { "Value": "A" }
},
{
"EditLink": "http:\/\/localhost:8080\/Service.svc\/B?format=json",
"Item": { "Value": "B" }
},
{
"EditLink": "http:\/\/localhost:808...
Hi,
I have an xaml app which is trying to use to wcf service. When i invoke a contract method is friezed and didn't work at all.
I implemented the wcf service as a console application, using the same contract and same configuration and everything worked properly, even through the network everything go well.
I don't have any idea about...
Hi,
I have a wcf discoverable service called "GetNameService" which is hosted on a PC @ 10.0.0.5:8732. It is hosted with wsHttpBinding and is discoverable thru' UdpEndpoint. I also have a client @ 10.0.0.9 which discovers for such services in the same network. When I ran the client, I am able to discover the service but the end point o...
Same WCF Service works at another environment but got error in my local, error message -
Could not load type 'System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy' from assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
I checked much info, for example - http://code.msdn.microsof...