Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • WPF • All Things Web
Contact   •   Articles   •   Products   •   Support   •   Advertise
Sponsored by:
West Wind WebSurge - Rest Client and Http Load Testing for Windows

WebLog Posts in Category Web Services


Categories
ASP.NET (325) .NET (181) Windows (77) JavaScript (72) jQuery (61) Visual Studio (54) IIS (48) Csharp (47) WPF (47) HTML (46) AJAX (45) ASP.NET (33) Localization (32) LINQ (30) WCF (28) MVC (26) Personal (25) Security (23) HTML5 (23) FoxPro (22) CSS (21) C# (20) Angular (20) Web Services (19) Web Api (16) COM (16) ADO.NET (15) Vista (11) XML (11) WebView (10) Sql Server (10) HTTP (10) IIS7 (10) Markdown (9) Microsoft AJAX (8) IIS7 (7) Web Connection (7) West Wind Ajax Toolkit (7) NuGet (6) Markdown Monster (6) Entity Framework (6) Html Help Builder (5) Live Writer (5) Internet Explorer (5) C++ (5) ASPNET5 (5) Mobile (5) SignalR (5) Software Development (5) Web (5) OWIN (5) WinForms (5) Westwind.Globalization (4) Source Control (4) Silverlight (4) Cordova (4) Conferences (3) DataBinding (3) ASP.NET Core (3) Help Builder (3) ISV (3) LetsEncrypt (3) Networking (3) Office (3) Opinion (3) Razor (3) Web Browser Control (3) WebLog (3) Web Development (2) Visual Studio Code (2) Tools (2) Speaking (2) RegEx (2) RSS (2) Linux (2) Installation (2) Bugs (2) Help (2) Dotnet (2) .NET Standard (2) Addins (2) Deployment (2) Authentication (2) ASP.NET vNext (2) ADO.NET (1) Chocolatey (1) Blazor (1) Blogging (1) Desktop (1) Control Development (1) Credit Card Processing (1) Cross-Platform (1) .NET ASP.NET Windows (1) Security (1) Visual Studio (1) ASP.NET IIS (1) ASP.NET Markdown (1) AI (1) Angular JavaScript (1) Dynamic Types (1) Email (1) CSharp Dotnet (1) Git (1) Graphics (1) Hardware (1) FireFox (1) Flexbox (1) IOS (1) JSON (1) Migration (1) rxJs (1) SEO (1) RazorPages (1) Musings (1) Travel (1) Typescript (1) Testing (1) Threading (1) VS Code (1) Web Deployment Projects (1) Web Design (1) Web Assembly (1) WebSockets (1) WebSurge (1) WebBrowser (1) WebDeploy (1) WFH (1) Windows-Terminal (1) Windsurfing (1) WPF Windows (1) WSL (1) wwHoverPanel (1)

Empty SoapActions in ASMX Web Services



Recently I had to deal with an ASMX Web Service that was receiving empty SoapActions from the client. ASMX doesn't like that, but luckily there's an easy work to strip out the errant Soap header.

Custom Message Formatting in WCF to add all Namespaces to the SOAP Envelope



Over the last few days I've been fighting with a Web Service that does not allow inline namespaces which WCF copiously uses by default in its generated service proxies. In this post I describe how to create a custom message formatter add namespaces explictly to the SOAP envelope.

WCF WS-Security and WSE Nonce Authentication



I ran into a Web Service last week that required WS-Security headers with an embedded nonce value. Unfortunately WCF doesn't support this particular protocol directly. Here's how to create custom credentials and a tokenizer to write out the customized WS-Security header.

Amazon Product Advertising API SOAP Namespace Changes



Amazon recently broke their Product Advertising API by rolling out a new service version at the same URLs of the old service, which resulted in immediate failure of service. It's an easy fix once you know where to look. Here's how.

.NET WebRequest.PreAuthenticate – not quite what it sounds like



On a few occasions I've dealt with Web Services that use - yuk - Basic Authentication and require pre-authentication on the very first request to the server with the server first sending a challenge. This is unusal for HTTP authentication which typically requires a challenge first and then a response with the auth information in the header. The latter approach is what the .NET client components produce by default. PreAuthenticate unfortunately is not quite true to its name and in order to provide true pre-authentication on the first request manual header manipulation is required.

Ambiguous References in DefaultWsdlHelpGenerator.aspx



Ran into an odd problem today where the default ASMX Web Service help page was blowing up with DataBinding errors due to ambiguous class names. Turns out that a custom control with the same name as a System component and a static method call resulted in ambigous reference errors.

WSDL Imports without WSDL.exe



A couple of weeks back I have been working on a Web Service client tool for COM clients. With the SOAP Toolkit DOA one of the things that old (for me most FoxPro apps of clients) apps need to do is access Web Services and .NET is really become the only viable option if calling a complex service is required. I’ve been swamped with work in this area recently (which isn’t a bad thing) but clearly a...

Monitoring HTTP Output with Fiddler in .NET HTTP Clients and WCF Proxies



Http debugging is immensely useful and Fiddler is a nice tool that provides many options and an easy to use interface to monitor HTTP requests to get maximum information about each request. In order to monitor requests of .NET clients like WebClient, HttpWebRequest or WCF or Web Service proxies you need a little additional configuration to get Fiddler to monitor these requests.

Debugging Http or Web Services Calls from ASP.NET with Fiddler



If you've tried to trace Http requests to Web Services or WebRequest calls in an ASP.NET application you've probably found although ASP.NET requests show up in tools like Fiddler or Charles, but the Web Service or WebRequest/WebClient calls do not. You can make this work however by modifying the proxy settings in web.config explicitly.

Watch out for XmlDocument.PreserveWhitespace when dealing with Digital Signatures



When creating digital signatures of XML documents its crucial that the Xml document settings on signing match the document settings that are expected for validating signatures. I ran into a problem where our signatures were failing with a vendor's site, due to the PreserveWhitespace property settings on our end and on the vendor's parser being mismatched.

Digitally Signing an XML Document and Verifying the Signature



Signing an XML document and then validating the digital signature of the document doesn't involve a lot of code - once you know how it works, but arriving there is quite the journey. This post describes setting up a certifcate for testing, signing an XML document with the Private key and then validating it with the Public key.

Web Service Interoperability? Not from where I sit...



I've been working on a lot of Web Service interop projects for the last couple of months all of which have been problem interfaces. For all the talk of interoperability I seem to be getting the short end of the "it just works stick" ending up with service that require endless fiddling to work properly for client access.

Invalid Service Urls in a WSDL Definition



Watch out for invalid URIs for the service address in a WSDL contract. When imported by .NET for Web References or WCF client proxies the invalid address can cause an instantiation failure in the proxy.

Generated Date Types in WCF and unexpected 'dateSpecified' fields



I just ran into a little issue with a Web Service imported through the WCF Service Utility. The issue revolves around dates imported for a service. In the WSDL the layout looks like this: <xsd:complexType name="NewEnrolment">   <xsd:sequence>    ...

Tracing WCF Messages



I'm working on a small problem that involves connecting to a Web Service and using WS-Security and I'm using WCF. It's not going well and so I've been trying to trouble shoot exactly what's going on. WCF is pretty good about reporting error messages and generally pointing you in the right direction...

WCF and segmented WSDL Files = Problems



Web Services in Windows Communication Framework publish their WSDL in a different format than ASMX based services did and this can cause some problems with 'legacy' SOAP clients. Legacy ahem in this case makes up a rather large set of tools that won't work with WCF services out of the box. WCF publishes the WSDL with discreet XSD schemas for each of the subsections which results in an XML document that pulls from the server. For example here's a simple WSDL output...

WCF, Web Service Clients and Http Debugging Proxies



I depend heavily on using Fiddler or Charles for helping me debug Http issues in general and both work great for typical Web development debugging in the browser. This is especially useful for AJAX applications since you can't 'see' the output that travels over the wire directly most of the...

Checking out Windows Communication Foundation Serialization



So I spent a bit of time this evening mucking around with WCF Serialization. The efficiency, complexity and usability of Serialization is a key component in using any technology that needs to communicate data over service/application boundaries and so this is usually one of the first things I take a look at. WCF is pretty impressive in this regards for its flexibility and implementation.

.NET Web Services and Visual FoxPro COM Object Threading Issues



I ran into an interesting issue today with a couple of ASMX Web Services that act as a front end for Visual FoxPro COM object for a client. The COM objects were blocking at times or worse in some cases cross talking and stepping on each other's environment. Turns out ASMX Web Services don't have an ASPCOMPAT flag so it takes some work to get Web Services to behave with STA components like those from Visual FoxPro
West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2024