wcftestclient

WCF - Cannot obtain Metadata

折月煮酒 提交于 2020-01-22 16:27:46
问题 It is running in an Intranet using IIS 7 and it works fine whenever I enable Anonymous Authentication in the IIS Manager. If I disable it and try to run it using wcftestclient then I get the following error, Error: Cannot obtain Metadata from http://myserver/testing/eval.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to

Invoke soap wcf service in Fiddler like in Wcf test client

£可爱£侵袭症+ 提交于 2020-01-15 10:32:27
问题 I have service which should support SOAP and REST. web.config <system.web> <webServices> <protocols> <add name="HttpGet" /> <add name="HttpPost" /> </protocols> </webServices> <httpRuntime executionTimeout="90" maxRequestLength="1048576" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/> <compilation debug="true" targetFramework="4.0"/> and contract [OperationContract] [WebInvoke(UriTemplate = "/GetData")] List<FieldInfo>

Is it possible to force the WCF test client to accept a self-signed certificate?

江枫思渺然 提交于 2019-12-29 18:49:13
问题 I have a WCF web service running in IIS 7 using a self-signed certificate (it's a proof of concept to make sure this is the route I want to go). It's required to use SSL. Is it possible to use the WCF Test Client to debug this service without needing a non-self-signed certificate? When I try I get this error: Error: Cannot obtain Metadata from https:///Service1.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata

WCF - Cannot obtain Metadata, but works when the XML Endpoint is removed?

前提是你 提交于 2019-12-23 16:59:56
问题 I'm having a problem with the WCF Test Client. I cannot connect to my WebService because it keeps hitting this error: Error: Cannot obtain Metadata from http://xxx.xxxxxxxx.xxx/DPITerminal.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address. For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata

Unable to add service in WcfTestClient when copy to a different machine

南笙酒味 提交于 2019-12-21 07:02:42
问题 I'd like to run WcfTestClient (one that's included with VS2012) on a different machine without installing VS2012. Is this possible? On the machine I've installed .NET 4.5 but when I try to add web services it gives me the following stack trace: ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Tools.Common.SdkPathUtility.GetRegistryValue(String registryPath, String registryValueName) at Microsoft

WCF service method unavailable in WCF Test Client because it uses type

泪湿孤枕 提交于 2019-12-18 11:50:11
问题 I am trying to use the WCF Test Client to test a WCF service I have built. The service has one method "SubmitRequest". [OperationContract] Response SubmitRequest(Request request); When I load up the WCF Test Client, the method is grayed out with the message "This operation is not supported in the WCF Test Client because it uses type WcfLibrary.Objects.Request Below is the type definition, does anyone see anything wrong? [DataContract] public class Request { [DataMember] public string

Why can't my operation contracts in my wcf client take interfaces as parameters?

早过忘川 提交于 2019-12-18 04:45:16
问题 I have a simple wcf Service Contract that works fine if I use the concrete implementations for the interfaces, but if I want to use the interfaces in the paramaters instead of the concrete classes, it gives me the error which I will display below. Here is code: [ServiceContract] public interface IClientUserRegistration { [OperationContract] void RegisterClientUser(ClientUser clientUser); [OperationContract] List<ClientUser> GetUsers(); } If I replace ClientUser with IClientUser, the WCF Test

this operation is not supported in the WCF test client(WCF + ENTITY DATA MODEL)

微笑、不失礼 提交于 2019-12-12 05:18:32
问题 I am getting the error this operation is not supported in the wcf test client because it uses type catNameService.catNames[] Class and IClass code: catService class: namespace catNameService { class catService:IcatService { public IEnumerable<catNames> sortBySex(int genderNumber) { using (var context = new catNamingEntities()) { return context.catNames.Where(t => t.Gender == genderNumber).ToList(); } } } } IcatService interface: namespace catNameService { [ServiceContract] public interface

Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.?

时光毁灭记忆、已成空白 提交于 2019-12-12 00:26:44
问题 trying to build a RestFull service with wcf running in the WcfTestClient.exe. The problem is that I get an error: Failed to add a service. Service metadata may not be accessible. I added a mex endpoint in the config file but does not solve it: <?xml version="1.0"?> <configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> <system.serviceModel> <services> <service name="MyRest.Service" behaviorConfiguration="ServBehave"> <!--Endpoint for REST--> <endpoint

Which data types WCF service can handle ?

别来无恙 提交于 2019-12-11 00:08:50
问题 I am new to WCF. Previously I used WCF service for basic data types like string, int32 etc. But when I try to use BitmapImage class its Test Client giving following error Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata. When I replace BitmapImage with String it works fine. That means I am missing some piece of code. For better understanding here is my code. WCF Interface code using System; using System.Collections