basichttpbinding

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

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 ...

WCF ServiceHost basicHttpBinding 503 error

Hi all, I'm trying to run a WCF ServiceHost as an NT Service on a Windows 2007 SP1 Server. The ServiceHost is reponsible for hosting a single service endpoint: a basicHttpBinding with the following address: http://localhost:5555/ToBlah When I run this ServiceHost on my local machine (Windows XP), it works fine - when I POST a SOAP ...

WCF Authentication

Hi We're building some core services in .Net 3.5 and exposing the services via WCF. The services will only be accessed internally (i.e. within the intranet). The services just need to authenticate the calling user's windows credentials and get their AD/functional groups. The serives need to be exposed using NetTcpBinding and BasicHtt...

Programmatically set identity on WCF EndpointAddress

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, identit...

WCF/basicHttp and NTLM authentication

Does anyone know how exactly NTLM authentication works in WCF/basicHttp? I wonder if user credentials are passed for every single service method call, or if some kind of security token is being used for subsequent service method calls. The exact binding configuration that I am using: <bindings> <basicHttpBinding> <binding name="w...

How to fix "could not find a base address that matches schema http"... in WCF

I'm trying to deploy a WCF service to my server, hosted in IIS. Naturally it works on my machine :) But when I deploy it, I get the following error: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. Googling on this, I find that I have to put a ser...

Why is my Winforms-hosted WCF service single threaded?

I have a WCF service that I'm using to replace an old ASP.NET web service. The service appears to be working fine but it is unable to handle simultaneous requests for some reason. My implementation of the service has the following properties: [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall, ConcurrencyMode = Concurren...

First WCF Request, client always throws System.Xml.XmlException: There are multiple root elements

Every time my WCF Host application pool starts, the client making the first WCF call to it always throws "System.Xml.XmlException: There are multiple root elements" All subsequent calls work perfectly. This exception happens on the consumer/client side of the WCF request. I've tested this for both a full WCF client and a Silverlight ...

WCF-BasicHttp NTLM ESB guidance

Hello I am trying to access an asmx service located on IIS, the asmx is using integradted security I am trying to call it with wcf-basichttp adapter configured inside ESB guidance 1.0 The error i am getting is : The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the ...

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

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 th...

ASMX service parameter (type string) has null value when invoked from WCF client

I am trying to consume an existing ASMX service using WCF with a BasicHttpBinding. I used SvcUtil to get me started and just extracted the contract definition interface and the config in to my project leaving all default configuration values as generated by SvcUtil. The following is what I have currently: Contract: <ServiceContract()> ...

WCF -> IIS 7.0 Partial Trust Hosting (.svc) -> BasicHttpBinding -> Authentication (UserName / Password) - > ASP.NET Membership Provider -> No SSL

Basically my requirement is: WCF Service Application Hosted on IIS 7.0 with Partial Trust Endpoint exposed with BasicHttpBinding Would like to enable basic Authentication (UserName / Password) Would like to use ASP.NET membership for User Authentication I don't want to setup SSL I have seen some tutorials but they are talking about f...

How to authenticate in WCF services in BasicHttpBinding?

Hi, I am developing WCF services with basicHttpBinding, these services should be accessible using .net 1.1 & .net 2.0, for this purpose I am using basicHttpBinding. In old ASMX web services I assed one Soap Header (AuthHeader) to authenticate the user every request.How Can I authenticate in WCF using basicHttpBinding? Any sample Or tuto...

WCF - Configuring Client/server authentication in headers?

I've got a WCF service that will need to receive client credentials, and maintain some kind of role-based data, based on my auth method. The clients will reside on many different systems, and as such, each client will have a unique userID and pw. I'm using basicHttpBinding and have read a few articles, such as this one, http://nirajru...

Silverlight client identity not always passed to server?

I have a Silverlight client that has some problems talking to the server it originates from via a WCF basicHttpBinding. The service configuration is as follows: <system.serviceModel> <bindings> <basicHttpBinding> <binding name="silverlightBinding"> <security mode="TransportCredentialOnly"> <transport client...

WCF, BasicHttpBinding: Stop new connections but allow existing connections to continue

.NET 3.5, VS2008, WCF service using BasicHttpBinding I have a WCF service hosted in a Windows service. When the Windows service shuts down, due to upgrades, scheduled maintenance, etc, I need to gracefully shut down my WCF service. The WCF service has methods that can take up to several seconds to complete, and typical volume is 2-5 m...

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

Hello 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 anyo...

IIS 7 Restarts Automatically

Dear Gurus I have a WCF Service Deployed on IIS. (BasicHTTPBinding with [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]) I have built custom in-memory session management and Now I am facing a strange problem that is IIS 7 Restarts Automatically without even throwing any kind of warning...

Proxy between BasicHttpBinding and WsHttpBinding

Hi all, For an important customer, I've to implement a SoapClient in PHP to connect to a .Net webservice setup in WsHttpBinding. I know PHP SoapClient doesn't support it. So my goal is to develop a proxy software written in C# which will be a 'bridge' between BasicHttpBinding and WsHttpBinding. So PHP will communicate only with BasicHt...

400 Bad Request : Consuming WCF basicHttpBinding (Soap) using JScript/VBScript

var oXMLDoc, oXMLHttp, soapRequest, soapResponse; oXMLHttp = new ActiveXObject("Microsoft.XMLHTTP"); oXMLHttp.open("POST", "http://nerdbox/HelloService.svc", false); // Add HTTP headers oXMLHttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); oXMLHttp.setRequestHeader("SOAPAction", "http://tempuri.org/IHelloService/SayHel...