Strange exception occurred, when I tried to call the action in my proxy class
exception message: The message could not be processed because the action 'http://testservice//reports/IReportService//Report' is invalid or unrecognized.
...
Is it ok from your real-world-experience to define service contract with one method which will accept some object as a form of request and return some other object as a result of that request. What I mean is instead of having method for creating, deleting, editing and searching customers I would have these activities encapsulated within ...
I have setup a .NET WCF web service that will expose some methods to create/update email alerts for different contactsIds. The webservice is going to live behind the firewall.
My fear is that if we expose a call like:
bool SetAlertTemplate(int alertId, int templateId);
One of the client websites could modify unintentionally an alert...
Hi,
I have a WCF service that runs in my web application that provides data to a Silverlight application and is defined as follows (with an appropriate .svc file)....
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class DispatchService
{
...
I am creating an WCF service for my iPhone project, but I contiinue to return blank and not any result in the browser
I followed couple of guides but continue to experience the issue
Here is what i have
Service.svc
<%@ ServiceHost Language="C#" Debug="true" Service="Service" CodeBehind="~/App_Code/Service.cs" Factory="System.ServiceM...
This a question that already has been discussed a couple of times on SO but I couldn't find any suitable solution to my problem. I have a WCF service hosted on an external server (other domain) and I'm trying to consume it from a command line application. I receive the following error:
The request for security token could not be satisf...
I'm getting the maxreceivedmessagesize error for messages greater than 64K. The problem is that I've already changed everything in both server and client, and it's not fixing the problem.
here's my web.config on the server and then the silverlight client config:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding ...
I'm debugging a WinForms client that calls a WCF service in VS2010 Beta 2.
I want to test my exception handling code, so I intentionally mis-configured my endpoint in app.config. The expected ConfigurationErrorsException is thrown. However, VS2010 stops on the offending line of code even though I have set it not to break for either Th...
I'm currently communicating with an external SOAP service within AX using the a service reference and the generated .NET class. Everything is working out greatly with the exception of how to handle SOAP faults. Ideally, this doesn't happen, but sometimes the SOAP server (which I control as well) throws a SOAP fault with a "code" and a ...
I am wanting to write a WCF web service that can send files over the wire to the client. So I have one setup that sends a Stream response. Here is my code on the client:
private void button1_Click(object sender, EventArgs e)
{
string filename = System.Environment.CurrentDirectory + "\\Picture.jpg";
if (File.Exists(filename))
...
I've read in a few places that the log4net threadContext isn't safe to use in an asp.net scenario. Here are a few articles:
http://stackoverflow.com/questions/1066062/log4net-threadcontext-and-global-asax
http://piers7.blogspot.com/2005/12/log4net-context-problems-with-aspnet.html
So my scenario is I want to use the threadContex...
Windows server 2000 does not support .NEt 3.5, so its not supporting WCF? We, lazy, did not consider this before creating WCF application (Server, client, listener etc). My Client Console application is compiled in 3.5 just to consume WCF. I can recompile Client app to framework 2.0. to able to run it on Windows Server 2000. But how i am...
Is there a way in a WCF Rest Service implementation to require one method be called over https, while allowing others to be called over http or https without having to define two service endpoint bindings? I want to be able to do something in my service implementation such as:
if (CalledOverHttps()) {
//Do Stuff
} else {
throw ne...
I'm using WCF RoleService (I built a custom role service on top of it) to get a list of roles for a given user. What I'm wondering is, should I be setting the FormsAuthenticationTicket's UserData property (when it's created) with these roles on the server side?
Note: I guess it doesn't make sense for a client application to do this (I'...
Is there a quick and reliable way to check if a WCF service is available and accepting requests, perhaps some best practice built in method? Obviously from code.
Thanks
...
Guys,
When I create a custom role provider by inheriting from RoleProvider, I created a method
called public override string[] GetRolesForUser(string username) .. However, when I try
to use this Service Reference all I have access to is GetRolesForCurrentUser(). It works
and calls my method behind the scenes ok. As in, GetRoleseForCurre...
Ok, this is driving me insane. I've been trying to build service implementation code from a predefined wsdl and it is consistently returning a message on the service contract/interface:
// CODEGEN: Generating message contract since the wrapper name (GetMetricsRequest) of message GetMetricsRequest does not match the default value (GetMe...
Hi,
I have to connect from a Java client to a WCF Web Service which has the following binding configuration:
<basicHttpBinding>
<binding name="basicHttpBindingSecurity">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic"/>
</security>
</binding>
</basicHttpBinding>
I'...
I have this wcf method
Profile GetProfileInfo(string profileType, string profileName)
and a business rule:
if profileType is "A" read from database.
if profileType is "B" read from xml file.
The question is: how to implement it using a dependency injection container?
Mark Seemann author of book "Dependency injection in .net" Sugge...
Hello,
I have a WCF RIA project getting my data from an SQL Server 2008 via Entity framework. Everything is going well. However I would like to access data via a windows mobile so, as far as I can understand I have to create an ADO.NET Data Service. My domain service is called BusinessLogicDomainService.cs. Immediately after creating th...