I am not sure if this is the correct way of doing but I read that you not suppose to have a WCF Service Library reference in your web form project rather you add endpoints to your web.config, is that true?
Here is what I have done:
create a WCF service library project
create a simple service called "MyService.svc"
WebForm:
Create ...
Hi,
I've currently written code to use the ServiceContractGenerator to generate web service client code based on a wsdl, and then compile it into an assembly in memory using the code dom. I'm then using reflection to set up the binding, endpoint, service values/types, and then ultimately invoke the web service method based on xml config...
Hi,
Here is what I have.
XBAP application with WPF Browser control, hosted on Page1.xaml
XBAP in Full Trust, certificate installed in client browser
Once the XBAP loaded, the browser control is navigated to some third party site.
We are using MVVM for XAML stuff
So, when a certain page is loaded, I attach click event handler to th...
I have written a WCF service (I am a newb) that I want to provide 2 endpoints for (net.tcp & basicHttp) The problem comes when I try to configure the endpoints. If I configure them as seperate services, then my service names are the same which causes a problem. I have seen recomended creating shim classes (classA : MyService, and Clas...
Hello Experts!
i'm trying to create an application which connects to internet and consume web services for every of it's operation.As far as i'm concerned i'll like to useasync method which i'm using already to get a collection of Contacts.I've realized that when i'm doing the same for groups (meaning getting groups async) i'm having err...
Hello,
I'd like to create WCF operation contract which consumes a string, produces a public webpage and then returns the address of this new page.
[ServiceContract(Namespace = "")]
public class DatabaseService
{
[OperationContract]
public string BuildPage(string fileName, string html)
{
//writes html to file
...
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 a named endpoint/operation that takes a customer parameter and have it instantiated and populated like ...
So I'll be providing a few functions via a self hosted (in a WindowsService) WebServiceHost (not sure how to process HTTP GET/POST with ServiceHost), one of which may be called a large amount of the time. This function will also rely on a connection in the appdomain (hosted by the WindowsService so it can stay alive over multiple request...
I have an object that is being sent across WCF that is essentially a property holder - it can potentially have a large number of properties, i.e. up to 100, but in general only a small subset will be set, up to 10 for instance.
Example:
[DataContract(Namespace = "...")]
public class Monkey
{
[DataMember]
public string A...
In learning WCF, I'm a bit confused where to go to figure out how I should be handling user authentication. My MVC 2 app uses an Active Directory Membership Provider and this works and is good, but my MVC app doesn't really do anything but call my WCF services. My business logic on the other side of WCF is what really does everything (as...
I am authenticating my ASP.Net application through Active Directory(Microsoft ADFS Proxy). Now I want to move this authentication to WCF service so that authentication will b done there and later on this service will b flexible. Let me know how to proceed for this and what are the binding types required for this
...
I have a IList. where the object PersonDetails consists of the persons name, address and phone number. The list consists of more than 1000 person details. I would like to display 50 PersonDetails per page. Is there a way to select only 50 elements from the list, and return them.
For example.
myList.select(1,50)
myList.select(51, 100)
...
I am new to WCF and have a simple question...
My DataContract class returns an Enum type to the consumer from one of it's exposed methods.
The consumer is able to see the enum type, and instantiate variables of that typel.
However, I have not provided a [DataContract] nor [EnumMember]s for the enum in the service.
My question is, wh...
When using DataContractJsonSerializer to serialize a dictionary, like so:
[CollectionDataContract]
public class Clazz : Dictionary<String,String> {}
....
var c1 = new Clazz();
c1["Red"] = "Rosso";
c1["Blue"] = "Blu";
c1["Green"] = "Verde";
Serializing c1 with this code:
var dcjs = new DataContractJsonSer...
I am writing a service to a international HTTP standard, and there is one method that can return three different XML results, call them Single, Multiple and Error. Now I've written an IXmlSerializable class that can consume each of these results and generate them. However, WCF seems to insist that I can only have a single return XML root...
I have a Windows Service which communicates with WCF services. The WCF services are all fault shielded and generate custom UserFaultContracts and ServiceFaultContracts. No problems there.
In the Windows Service I am using EntLib for exception handling and logging.
I do not want to try catch for faults
try
{
}
catch (FaultException<Us...
I have a silverlight application that is like a portal where user-defined widgets will be calling wcf services. Since these components could be quite chatty I would like to hijack the service calls and have them flow through a single client proxy that could throttle, potentially cache results, etc.
So the idea would be to have the disp...
Hi,
I was playing with powerpivot to directly load 3 million rows from a sql database and performance is suprisingly good.
I tried generating a simple oData service by using vs2010 and silverlight RIA services and access that from powerpivot. Which works with small numbers of rows but blows up on the server if a single method tries to ...
Hi All,
Can anyone help me in this? I am calling a internal Web service using the below config file tags
<identity>
<dns value="DWR"/>
</identity>
</endpoint>
And Here is the behaviour part ,
<clientCredentials>
<!--certificate storage path in the client -->
<clientCe...
I just began studying WCF because i need it for a school assignment. But i have a problem when i am trying to send an object with some custom attributes.
The object is:
[DataContract]
public class Person
{
[DataMember]
[Searchable("ID")]
public virtual String ID
{
get;
set;
}
[DataMember]
[Se...