wcf

Add basicHttpBinding to BizTalk ESB Toolkit WCF Service /ESB.ItineraryServices.WCF/ProcessItinerary.svc

三世轮回 提交于 2021-01-28 03:50:27
问题 Just getting started with the ESB Toolkit 2.0 on BizTalk Server 2009. I can get a .NET client to talk to the ESB Toolkit WCF Service /ESB.ItineraryServices.WCF/ProcessItinerary.svc with no problem at all, however, we use a client technology that cannot process wsHttpBindings at all, it can only see the basicHttpBinding. Does anyone have any idea how to add a basicHttpBinding to the web.config for this service? The web.config is shown below. Many thanks for any help you can provide. Andrew <

Problem with configuring and starting WCF service

血红的双手。 提交于 2021-01-28 02:54:23
问题 I have a problem with configuration and starting WCF service. In my application there is a method that starts service. Something like this void Start(string protocol, string address, string port) { host = new ServiceHost(_myService, new Uri(String.Format("{0}://{1}{2}/Sample", protocol, address, port))); //...Some configuration (bindings, behaviors, etc.) host.Open(); } Let my computer has an IP 192.168.0.1. When I pass 'address' parameter with a value '192.168.0.2' an error occurred "A TCP

Add basicHttpBinding to BizTalk ESB Toolkit WCF Service /ESB.ItineraryServices.WCF/ProcessItinerary.svc

冷暖自知 提交于 2021-01-28 02:53:39
问题 Just getting started with the ESB Toolkit 2.0 on BizTalk Server 2009. I can get a .NET client to talk to the ESB Toolkit WCF Service /ESB.ItineraryServices.WCF/ProcessItinerary.svc with no problem at all, however, we use a client technology that cannot process wsHttpBindings at all, it can only see the basicHttpBinding. Does anyone have any idea how to add a basicHttpBinding to the web.config for this service? The web.config is shown below. Many thanks for any help you can provide. Andrew <

Preserving DataRowState when serializing DataSet using DataContractSerializer

给你一囗甜甜゛ 提交于 2021-01-27 19:54:40
问题 For various reasons I am having to send a typed dataset to a WCF service endpoint. This works fine except that upon Deserializing, the RowState of each row in each DataTable is set to 'Added', regardless of what they were on the client. If I write the serialized stream out to a file, I see that the RowState is not part of the Serialized data. How can I add this so that I can preserve the RowState across service boundaries? Not that I think it matters, but the client process is running .net 3

Trying to self-host, I get error - wcf service host cannot find any service metadata .. please check if metadata is enabled

回眸只為那壹抹淺笑 提交于 2021-01-27 19:21:51
问题 I am new to WCF and I've read answers to questions with titles similar to my error but I still cannot see what is wrong. Following some other tutorials I decided to put my contract and my service in separate projects. Ultimately, I would like to host this in IIS but for now I just wanted to get the WCF Service Host to start (and WCF Test Client). Here is the app.config in my service project (would this need to be in my contract project too I wonder??...): <?xml version="1.0" encoding="utf-8"

The request was aborted: Could not create SSL/TLS secure channel - IllegalMessage

大城市里の小女人 提交于 2021-01-27 18:53:24
问题 I have seen few similar questions regarding this topic on SO, but it seems that none of the answers really helps to resolve it. I need to reach customer webservice with certificate authentication. It works fine using SoapUI and chrome after selecting correct certificate when prompted. But I am not able to reach the service with IE, WCF client, not my own, nor WcfTestClient. OS is Windows server 2012 R2, protocol TLS 1.2 I have been investigating events, tracelogs, also spend quite some time

Can't run WCF service application in Visual Studio 2015

人走茶凉 提交于 2021-01-27 18:51:06
问题 I'm trying to create my first WCF service application, but I can't get it to run from Visual Studio 2015. This is the error I get when I click run... I was following a tutorial and I think they skipped a few steps, but here's what I added to the web.config <services> <service name="OnPatrolRest.Service1"> <endpoint address="http://localhost:51964/service1" binding="webHttpBinding" contract="OnPatrolRest.IService1"/> </service> </services> and here's the Interface <ServiceContract()> Public

WCF Add Namespace Attributes

邮差的信 提交于 2021-01-27 18:31:21
问题 I have a simple WCF that fetches two values. This is my code: [ServiceContract] public interface IService { [OperationContract] List<string> comunicarAreaContencaoResponse(string Result, string Obs); } And this one: public class Service : IService { public List<string> comunicarAreaContencaoResponse(string Result, string Obs) { List<string> ListResultados = new List<string>(); if (Result != null) { ListResultados.Add(Result); } if (Obs != null) { ListResultados.Add(Obs); } return

Is it possible to make a cross domain request from https to http in IE?

可紊 提交于 2021-01-27 18:18:42
问题 We are trying to access a local self-hosted WCF service from the browser. The WCF service is located at http://localhost/myWcf . The browser is running a website which is located at https://some.www.com . We have enabled CORS and added CORS header to the hosted WCF. Access to the WCF service is done using jQuery’s $.ajax call. All browsers are working fine when not using SSL and we’re getting to the “success” callback. When switching to SSL, IE is the only one that fails to make the request –

In WCF can I have a wildcard character in a literal segment of my UriTemplate?

孤人 提交于 2021-01-27 17:11:09
问题 I am authoring a RESTful WCF service using .Net 4.0. I want the following two URLS: /root/document/{ids}?fields={fields} /root/externaldocument/{ids}?fields={fields} to map to the same interface member: Documents GetDocuments(string ids, string fields) I have tried putting a wildcard into a literal URL segment: [OperationContract] [WebGet(UriTemplate = "/root/*document/{ids}?fields={fields}")] Documents GetDocuments(string ids, string fields) However, this is not valid and I get the following