wcf-client

WCF Content-Length HTTP header on outbound message

别来无恙 提交于 2019-12-29 08:02:31
问题 I'm in a tough situation in which a Java web service endpoint hosted on an IBM HTTP Server (IHS) requires a Content-Length header, although it supposedly conforms to HTTP/1.1. If I send the header, everything works. If I leave it off, I get a 500 error response informing me that my POST entity body was empty (even though it was not). We've invested significant time into our WCF client for these services (developed by a third party) and I can't seem to find a good way to append a Content

How can I prevent an out-parameter to end up return parameter in a WCF web service?

你离开我真会死。 提交于 2019-12-29 07:36:21
问题 If my contract looks as follows: [OperationContract] void DoSomething(int id, out string moreInfo); this ends up looking like: string DoSomething(int id); when you import a web service reference. Is it possible to influence the auto-conversion of the order of the parameters? It was already surprising to find all out-parameters at the beginning of the function signature, but that was still workable, but we'd like void-methods to continue being void-methods. Or is this a SOAP limitation? 回答1:

WCF -> ASMX and Cookies

我只是一个虾纸丫 提交于 2019-12-29 07:18:17
问题 I have a web application that communicates to a WCF service through a WCF client. At the point my code is invoked, authentication cookies have been issued and I have a dependency on an ASMX service that expects those authentication cookies. I need to pass the cookies from the web application through the WCF client to the WCF service to the ASMX service. Any ideas? It looks like my best bet may be setting allowCookies to false, parsing out the cookie headers, attempting to re-create them on

Wcf client won't connect to server(no packets out)

送分小仙女□ 提交于 2019-12-25 08:01:25
问题 I have a strange issue on a server. Only on that server: it's a win 2008 R2. I can't figure It out. If I launch a console(a simple wcf client) with a simple wcf call, even to a non existing remote endpoint/service,and wireshark capture activeted, I get no packet captured. If I test that console in any other server/os(even another win server 2008 r2) it works(wireshark capture the outgoing packet). Appearently there are no antivirus/firewall or anything blocking the request. The wcf settings

Are there any free/open-source WCF client frameworks/libraries out there?

隐身守侯 提交于 2019-12-25 02:47:29
问题 I am working on a tool that will test the server of a Silverlight application. AFAIK, Silverlight uses WCF to communicate with the server. I am curious if here are any free tools out there that can enable to write test scripts that test the server via WCF, preferably in Java, Python, Ruby or anything that does not require .NET. 回答1: Take a look at WCFStorm, haven't used it yet myself but it seems ok. Of course, it's a tool not a library, and it uses .Net (as it's the most logical choice for a

Error WSE012 (Action Missing) when consuming WSE webservice

谁说我不能喝 提交于 2019-12-25 02:19:19
问题 For a small project I need to use (consume) an external (secure) webservice. This webservice uses SOAP1.2 protocol with WSE extention (username + password) I use VB (VS2008) and added the Service Reference, customized the app.config to use wsHttpBinding rather than basicHttpBinding One of the public Functions of the webservice is called searchByName(String, String)As System.Xml.XmlElement In code I first initialize the security; wsTST.ClientCredentials.UserName.UserName = "mycompanyname"

How do I pass a service to another plugin?

限于喜欢 提交于 2019-12-24 23:00:20
问题 I have a plugin that I will instantiate at runtime and I want to pass it a WCF service from the application host. The application host is responsible for creating the connection to the service. The reason for this is that a single service can be used by multiple plugins, but the plugins should only know about its interface since there may be several implementation of IMyPluginServices. For instance, the Run method of the plugin instance would be: public void Run(IMyPluginServices services) {

WCF - Cross platform question

拈花ヽ惹草 提交于 2019-12-24 08:47:20
问题 I have a simple WCF service, self hosting and a .net client. I am generating a proxy using svcutil. When I add the proxy to the client it asks me to add System.ServiceModel.dll. Well, I can add it since it is a test scenario and I am working in .Net platform. However, suppose I am using a machine that does not support .Net, how that platform would compensate for the System.ServiceModel? Could you please put some light on it? EDIT: I got somewhat an idea. If I am creating WCF client I need to

How to use the WcfClientBase helper class for WCF connections?

≡放荡痞女 提交于 2019-12-24 07:43:44
问题 Ufuk Hacıoğulları wrote a nice WCF helper class called WcfClientBase. However I've had some difficulty in implementing it. I defined my class as follows: public class ModelsBaseClass : ServiceClientBase<MemberServiceClient> {... And attempting to use the helper class in the following method that returns a complex object through Entity Framework: public static MyProject.DAL.Primary.Models.sq_newsfeed_GetProfileByID_Result GetAllProfileDetails(int profileID) { try { using (memberServiceClient =

WCF OperationContract property forgets value

夙愿已清 提交于 2019-12-24 03:09:17
问题 recently have been successful getting my IIS hosted WCF service to work with basic authentication. Since successfully implementing that. I have noticed that property values are not remembered. Here is some code: [ServiceContract] public interface IEcho { string Message { [OperationContract]get; [OperationContract]set; } [OperationContract] string SendEcho(); } public class EchoProxy : IEcho { public string Message { get; set; } public string SendEcho() { return string.Concat("You said: ",