Hi All
I have written a wcf service and hosted it on windows service. This windows service is started and running on a machine say 'A'.
Now I wanted to write a client application on another machine say 'B' and wanted to consume the wcf servie on machine 'A'.
For this when I tried to add Service reference, I have given the endpoint addre...
Hello people,
I developed a library in VS 2010 that uses classes generated by SPMETAL in order to access information available at a Sharepoint site. This library may get called from two places:
A console application (merely for testing purposes, but the problem is here)
A webpart inside Sharepoint itself.
Now, whenever I call the li...
Hey there!
I am getting the following exception and don't have much clue about what and how it should be fixed:
The operation 'ShowData' could not be loaded because it has a parameter or return type of type System.ServiceModel.Channels.Message or a type that has MessageContractAttribute and other parameters of different types. When usi...
Here is a trivial example that is supposed to return "Hello World" string. However, a browser displays something like SGVsbG8gV29ybGQ=. Which is the right way to return plain text from an oldskul-style service?
please know that:
I can't return a string: three Unicode characters will be automatically prepended and the legacy HTTP clien...
This question came to my head while working with a map in silverlight that displays some harbours, and after mouse_overing the harbour, its data gets displayed in the screen. I did it and now it works, using WCF service, but I get some big delays. My friend told me that maybe Json could handle better with this delay, but I have no idea.
...
I'm building a simple ASP.NET MVC 2.0 web application. I'd like to serve up a AtomPub endpoint so that I can publish/update content from Windows Live Writer. I originally went down the path of implementing the AtomPub protocol as an Controller with a set of custom ActionResults. That worked until I tried to get authentication working, wh...
Hi All,
I have a IIS hosted service http://localhost/someProject/services/myservice.svc . Is it possible to somehow make say http://locahost:9705 point to it? How do I set this up? It seems to be pretty straightforward with a Windows Service hosted WCF service, but I cannot figure how to accomplish this when using .svc files and IIS. In ...
Hi all,
I have been given a xxxxx.wsdl file and some xsd files.I have to create the proxy class.
I have tried wsdl command and svcutil but not able to create it.
in case of wsdl command "wsdl xxxxx.wsdl" it gives error "Element message names xxxxxxxportypefrom namespace yyyyyy is missing "
in case of svcutil command "svcutil xxxxx.wsd...
Hello
I am looking for way to not require a client to use the ClientViaBehavior.
I have built a routing service and do not want have to provide the client the address manually.
Any ideas would be appreciated.
Thanks
...
I have an ASP.NET Ajax service set up using WebSriptServiceHostFactory in the *.svc file - no web.config configuration. In the contract, I'm starting with two very simple methods:
[OperationContract()]
[WebGet]
string GetPersonalInformationLabel();
[OperationContract()]
[WebGet]
string GetCorporateInformationLa...
I have a Duplex service (Singleton), which used to work with WSDualHttpBinding, and after changing it to duplex CustomBinding to support BinaryEncoding for performance reasons, it stopped working. The problem traces to GetCallBackChannel always returns with same HashCode (within that service instance) for all the client requests and the ...
Why is this so hard in WCF 4.0
I add a custom header in my client
Authorization: 18732818 gfdsgShoyh3sfayql6jWCRc=
so that my header looks like the following
GET http://HOSTNAME/Public/Xml/SyncReply/TestClearUsername?Id=1 HTTP/1.1
Authorization: 18732818 gfdsgShoyh3sfayql6jWCRc=
Host: HOSTNAME
Connection: Keep-Aliv...
I am working on the WCF REST Service project. The WCF REST will be set on the IIS. The service is to update the database in SQL server. The updated store procedure will get the login username and look for the id on the user table as a parameter. Therefore, the connection to SQL server must use the client’s username and password; I am no...
The following code throws an exception which I have no idea what goes wrong , can anyone shed some light on this one please?
RestAPIDataContext ctx = GetContext();
var songsQuery = (from item in ctx.Songs
where item.Artist.Title == "George Michael"
select...
For proof of concept and learning purposes, I'm trying to do the most simple possible use of SecurityAction.Demand as follows:
[PrincipalPermission(SecurityAction.Demand, Role = @"MyDomain\MyGroup")]
public string GetData(int value)
{
return string.Format("You entered: {0}", value);
}
I wrote a console test program, and I'm getti...
I'm having a difficult time setting up this WCF Service with wsHttpBinding, Transport Security, x509 and, the key part, the Load Balancer (F5). This all works without a problem in our Dev environment but as soon as I put it behind the F5 it fails giving me this message:
System.ServiceModel.Security.SecurityNegotiationException: Could n...
How to determine an attachment is there or not in WCF service when an user send a mail(either simple text mail or an attachment email) using C#.NET
...
WCF Custom BehaviorExtension Error: An extension "silverlightFaults" already appears in extension
collection. Extension names must be unique.
I have a custom behaviorExtension for a silverlight project which helps in communicating faultcontract
messages to client. This error occurs when the service is called. Works good in Dev and Q...
I have created a workflowservice in .net 4.0
I am trying to secure this (WCF) service and used the following link to see how this is done.
I followed the instructions, however when a define a servicebehavior everthing works fine.
The configuration is like this:
<behaviors>
<serviceBehaviors>
<behavior>
<servi...
I am confused on how can I use generic methods to parse generic list into datatable/dataset. My setup:
1. I have a class Customers defined in WCF Service Library.
namespace Wcf.Sample.ServiceLibrary
{
public class Customers
{
public string ID = string.Empty;
public string CompanyName = string.Empty;
publi...