basichttpbinding

WSDL URL for a WCF Service (basicHttpBinding) hosted inside a Windows Service

左心房为你撑大大i 提交于 2019-12-20 10:39:13
问题 I am hosting a WCF service in a Windows Service on one of our servers. After making it work in basicHttpBinding and building a test client in .NET (which finally worked) I went along and try to access it from PHP using the SoapClient class. The final consumer will be a PHP site so I need to make it consumable in PHP. I got stumped when I had to enter the WSDL url in the constructor of the SoapClient class in the PHP code. Where is the WSDL? All I have is : http://172.27.7.123:8000/WordService

Programmatically set identity on WCF EndpointAddress

狂风中的少年 提交于 2019-12-20 05:23:30
问题 I am using the following function to create a System.ServiceModel.EndpointAddress when connecting to a WCF Service: private static EndpointAddress GetEndPointAddress(string url, EndpointIdentity identity) { Uri baseAddress = new Uri(url); EndpointAddress endpointAddress = new EndpointAddress( baseAddress, identity, new AddressHeaderCollection()); return endpointAddress; } I need to pass in an EndPointIdentity that correlates with the following excerpt from my web.config: <identity> <dns value

Large Binary (byte[]) File transfer through WCF

柔情痞子 提交于 2019-12-17 17:40:12
问题 I am trying to build a WCF service that allows me to send large binary files from clients to the service. However I am only able to successfully transfer files up to 3-4MB. (I fail when I try to transfer 4.91MB and, off course, anything beyond) The Error I get if I try to send the 4.91MB file is: Exception Message: An error occurred while receiving the HTTP response to http://localhost:56198/Service.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could

BasicHttpBinding vs WsHttpBinding vs WebHttpBinding

江枫思渺然 提交于 2019-12-17 03:44:43
问题 In WCF there are several different types of HTTP based bindings: BasicHttpBinding WsHttpBinding WebHttpBinding What are the differences among these 3? In particular what are the differences in terms of features / performance and compatability? 回答1: You're comparing apples to oranges here: webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web service basicHttpBinding and wsHttpBinding are two SOAP-based bindings which

WCF web service in node.js

岁酱吖の 提交于 2019-12-13 19:03:38
问题 Can anyone help me saying whats wrong with the below code var BasicHttpBinding = require('wcf.js').BasicHttpBinding , Proxy = require('wcf.js').Proxy , binding = new BasicHttpBinding() , proxy = new Proxy(binding,"http://www.restfulwebservices.net/wcf/WeatherForecastService.svc") , message = '<Envelope xmlns=' + '"http://schemas.xmlsoap.org/soap/envelope/">' + '<Header />' + '<Body>' + '<GetCitiesByCountry xmlns="http://www.restfulwebservices.net/ServiceContracts/2008/01">' + '<Country>korea<

WCF basicHttpBinding: Rollback when reply to client fails

感情迁移 提交于 2019-12-12 07:38:37
问题 I am exposing a WCF service through a basicHttpBinding that executes several operations on a database. I want to guarantee that if the client does not receive the reply the database operations are rolled back ( without any transaction flow through WCF ). E.g. the client calls the "DoX" method which executes on the server but before it is finished the client crashes. The database operations should then be rolled back as soon as the reply can not be send to the client. Is there any way to do

Problems connecting to a basicHttpBinding endpoint with security mode=“None”

孤者浪人 提交于 2019-12-12 06:58:43
问题 Trying to create an framework 4.0 WCF basicHttp service hosted by IIS (6) that is completely unauthenticated. Once deployed, I can successfully retrive the WSDL via a browser. However whenever I try and connect to it via WCF Test Client or via a visual studio generated proxy, I'm getting "The server has rejected the client credentials.". This still occurs when I add <security mode="None"/> , but my understanding is that this is the default anyway ... In the IIS virtual directory properties I

SharePoint: 401 Auth error while adding file to SharePoint library from Silverlight

落花浮王杯 提交于 2019-12-12 02:42:12
问题 I am trying to add a XML file to a library in SharePoint 2010 site from a silverlight application. I am following the steps as in https://sharepoint.stackexchange.com/questions/1837/how-can-i-upload-a-file-to-a-sharepoint-document-library-using-silverlight-and-cl and http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/f135aaa2-3345-483f-ade4-e4fd597d50d4 and How can I upload a file to a Sharepoint Document Library using Silverlight and client web-services?. But I am

Can a WCF service w/ BasicHttpBinding without a MEX Endpoint be exploited by absolute strangers?

ⅰ亾dé卋堺 提交于 2019-12-11 12:43:13
问题 From what I understand: If you don't have a MEX endpoint / WSDL, your service is basically non-discoverable. Only people who have knowledge of your data contract should be able to consume your service. Does this assertion hold water, or are there ways for malicious denizens of the internet to figure out how to invoke/consume services that have no MEX endpoint? EDIT: As Andrew pointed out, this strategy should not be considered to be truly secure. I'm wondering more along the lines of if it is

Why is a message in WCF seemingly always in SOAP format?

别说谁变了你拦得住时间么 提交于 2019-12-11 09:57:32
问题 I have implemented a message inspector in WCF by implementing IDispatchMessageInspector . Putting a break point on this method... public object AfterReceiveRequest(ref Message request, IClientChannel channel, InstanceContext instanceContext) { // Impementation } ... I can look at the request object to see what is inside. Clearly I dont understand WCF enough because whatever endpoint binding I use (basichttp, nettcp and netpipe) the message inside is always represented in SOAP format e.g. <s