Hi All,
I have a long xml file the content of the file are below:
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<a:Action s:mustUnderstand="1">http://example.org/person</a:Action>
</s:Header>
<...
Dears
I have read about WCF VS ASp.Net WebService and i have a good artical on
http://fuchangmiao.blogspot.com/2008/09/wcf-vs-asmx.html
My Q : what are the applications can i implement them on WCF With TCP/IP protocol
i need ideas in this scope
Thanks In Advanced
...
I have a simple echo service where I've defined one operation method and a pair of types for request/response:
[ServiceContract(Name = "EchoService",
Namespace = "http://example.com/services",
SessionMode = SessionMode.NotAllowed)]
public interface IEchoService
{
[OperationContract(IsOneWay = fals...
I'm trying to publish a wcf service using nettcpbinding. I want to publish metadata, using ?wsdl.
I added the following line to the config file:
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
but I can't see the wsdl in my browser. what did I do wrong?
Thanks.
Edit: Here is the relevant part of my con...
Hello,
Im currently looking into WCF as an upgrade option and need to consider everything this may intail in terms of a .Net 2.0 development and setup.
things that come to mind
.Net 3.0 to be installed (does 3.5 project act any differently)
what would the effects be on our app servers (which use asmx files to publish services)
are th...
I'm writing a server app with a silverlight client. At some point I'd like non-silverlight clients to be able to use my services. Right now I've written some WCF services which get polled, but I'm not happy with the responsiveness. I'm thinking of switching the code over to using Silverlight/WCF duplex polling, but if I do that, will I b...
I need to make tests for my webservice project. In my webservice Interface there is a method named loginuser with string params username and password. It uses C#, WCF, and Visual Studio.
How do I to test that loginuser method in my webservice returns correct results?
...
Inside a WCF service, can I find out which URI was used to call me?
...
This is more of a philosophical/best-practice sort of question rather than a technical problem.
Are there any strong arguments against writing a DataContract class with methods that are to be used server-side only? Or what about additional properties that are not decorated with the DataMember attribute?
For example:
[DataContract]
pub...
I have a misconception about WCF services (I think)
Can you have just one instance of the WCF service that all calls would go too? It seems I am limited to having to create instances of WCF class every time I need to call it.
If I can, do I have to make it static somehow?
...
I have a service proxy generated by svcutil which generated an interface(IStudentContract) and a concrete type implementing (StudentContractClient).
I'd like to have instances of StudentContractClient injected into my classes via StructureMap.
My proxy also needs to have credentials supplied as seen in this passing unit test:
...
Ok, I have seen several questions related to this issue, and I have tried a lot of the ideas presented in them with no success. Here's my situation:
I'm hitting a web service over my company's intranet. I have used svcutil.exe to generate the client class for WCF. I was able to run the web service call with no problem when the service w...
Here is my question
I have a WCF service that I implemented using a singleton pattern, therefore only one instance of it will effectively ever run at any given time.
Now I have an aspx page that has a button called 'build'
When I press 'build', the WCF services runs a method that takes about 15 minutes.
The problem is when I make the c...
right now I have the security node defined like this:
<security mode="TransportCredentialOnly">
transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
Im getting the following error:
The HTTP request is unauthorized w...
I have a RPC encoded PHP webservice that returns a simple soap envelope with a boolean datatype. When doing the trace on the client side, the soap envelope looks like this right before it goes into the WCF proxy:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoa...
I'm trying to write an OpenSearch Suggestion service that complies with the OpenSearch spec.
http://www.opensearch.org/Specifications/OpenSearch/Extensions/Suggestions
This spec requires the service to return a JSON array with the first element being a string and the following elements being arrays of strings. I'm able to get it almo...
Hey guys,
I'm dealing with an auto-generated WebService stub in Java (generated using JAX-WS RI).
My actual service is a .Net program exposing its webservice using the WCF basicHttpBinding.
How should I be dealing with Communiction problems during the actual WebService call. (i.e. the way in WCF on the client you would wrap your call...
I have the following type which I use as a message contract in WCF:
[MessageContract(IsWrapped = true,
WrapperNamespace = "http://example.com/services",
WrapperName = "EchoRequest")]
public class EchoRequest
{
public EchoRequest() { }
public EchoRequest(String value)
{
Value = valu...
Hello everyone,
I want to know whether unhandled exception will make WCF service crash. I have written the following program which shows unhandled exception in a thread started by WCF service will make the whole WCF service crash.
My question is, I want to confirm whether unhandled exception in threads (started by WCF service) will mak...
Hello everyone,
I am using VSTS 2008 + .Net + C# 3.5 to develop WCF service (self-hosted as a Windows Service). From client side, I am using ChannelFactory to connect to WCF service. My confusion is, when I change client side code from "public string response" to "public string responseAliasName", the value of responseAliasName is null....