I am new to setting up WCF, I have it going in my project, but I have like 5 different 'services' in my one WCF project and I am wondering if I am doing the right thing. My services for now are 1-1 to my database tables. I end up having something like:
public class Projects : IProjects
{
public List<Project> GetAll()
{
...
Service Location:
http://1.1.1.1:5670/Test_Service/Service.SearchService.svc
Error:
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading 'http://mycompany.com/Test_Service/Service.SearchService.svc?xsd=xsd2'.
- The remote name ...
I have a WSDL that I need to generate a ServiceContract (OperationContract, DataContract)...
I have found a way to do it for ASMX WebServices but can't seem to find how to do it in WCF.
I have tried running
svcutil AuthPartnerWSDL.wsdl /i /messagecontract /tcv:version35
but the resulting interface doesn't deserialize the call comin...
Does anyone have any good examples of calling a WCF service from a classic asp page? I looked at
Calling REST web services from a classic asp page [closed]
and it got me closer but I need to pass parameters to the service and I'm not sure how to do that with a wcf? Currently I'm just getting back the wsdl.
Thanks
Robert
...
Both methods MyBehavior::CreateSerializer() are not called of some reason, but ReplaceBehavior() method is working. It is changing default behavior with my custom one.
Do someone know where could be the problem?
The point is to write custom REST WCF serializer that should generate non-XML text format result.
public class MySerializ...
I am trying to set up a service and I keep getting the following error
The HTTP service located at http://localhost/Service1.svc is too busy.
Its very annoying problem that I wish I could fix.
I am not overloading the system but I am using Threads in my program. Maybe I should disable them? no?
I am using an old computer running Ser...
Following up on using dependency injection for WCF services, is there any way of using DI for WCF validators, so that one could do this:
public class DIValidator : UserNamePasswordValidator
{
private readonly IService service;
[Inject]
public DIValidator(IService service)
{
this.service = service;
}
pub...
We are creating some WCF services that will initially be consumed by .NET clients but in the future will be consumed to Java clients.
As such we want to avoid using any data types in the interface that Java does not support.
The specific one we know of is nullable value types.
One suggestion is that we can support these by using a str...
My requirement is the claims assigned to a user are company aware so say for example
User 1: is publisher for Product Manager for Company 1 but the same user is only editor for Company B. Can this be achieved through Geneva Server, or additional code needs to be written to override classes.
...
I have a seperate assembly ( reference by WebService) in which I have created a class ( Let's say ABC ) and a collection of that class ( ABCCollection : IList where T:ABC ). Now when I build the proxy files (output.config and Service1.cs) then the defienation of these two classes are not exposed. Instead the ABCCollection is exposed in S...
Thanks for your reply but no luck with that code..I am sending you complete config files related to service and application ....Give me any valuable suggession.
Service web.config
...
I need to read some data from a server, transfer it over the internet (no VPN), and write it to the disk of another server. I could have thought many choices, but in the end I implemented:
The sender as windows service, that sends new data every X minutes
The receiver as a WCF self hosted service, with WSHttpBinding.
The data being tra...
I've been using the Service Trace Viewer to analyse the WCF service calls that are made in our application but I really need to see the parameter values that are passed to the service methods? Is this possible? I've tried turning the logging to max output but still can't see anything :(
...
Hi there,
I am trying to make my WCF client communicate with Spring-WS server running WS-Security (SOAP 1.1 over HTTP). The messages are encrypted using certificates.
The key info I send over in my request contains information about the receiver public key I used for encrypting the message. This information is sent to the server as fol...
I have a web service returning JSON, but now I'd like to modify it to allow callers to specify a callback function so the return goes from: JSON DATA to specifiedFunction(JSON DATA); The way I'm returning JSON right now is just by returning an instance of an object and having .NET do its serialization magic, if I change to just returning...
I would like to have a Traffic COP or Controller WCF Web Service that doesn't do anything with data but instead gives orders to another WCF Web Service to do so.
Could someone give me an example of how this might be able to be done. It would be preferable that I was not getting into any APM stuff. Instead just an observer who later ge...
I am trying to use username message security in WCF. I am trying to find out if using transport credential type of None/Anonymous will pose a definite security risk.
My concern is with the initial exchange where binary data is tunneled through using the WS-trust specification (TLS negotiation). Will this attempt to authenticate my user...
Hi, I am developing an ASP.NET application which will be calling (extensively) WCF services. Now, I am obviously having some kind of mental melt down as I can't for the life of me get this wrapped around my head correctly.
I am using ws2007HttpBinding with Message security and ClientCredentialType of UserName. The WCF is using the ASP.N...
I know how to enable WCF tracing and view them in the trace viewer tool, but I don't understand what it all means. is there documentation somewhere that explains what each of those levels means and how to make scene of all the information that is being logged.
also what is a good source to learn about a WCF request/response life cycle. ...
Can you override the ToString function in a WCF DataContrat? Right now I have:
[DataContract]
public class Keyword
{
public int ID { get; set; }
public string Name { get; set; }
public override string ToString()
{
return Name;
}
}
But it doesn't seem to work. Anyway to get this working?
...