Questions tagged [message-handlers]

73 questions
0
votes
1 answer

Handler should not directly implement the javax.xml.ws.handler.Handler interface

Before this, I am using SOAPHandler< SOAPMessageContext > to handle the data from webservice. The code as follow: public class MyBillSoapMessageHandler implements SOAPHandler< SOAPMessageContext > { @Override public boolean…
Panadol Chong
  • 1,793
  • 13
  • 54
  • 119
0
votes
0 answers

applying messagehandler to specific webapi controller

I have requirement to specify MessageHandler in webapi.config file for specific controllers only. So, I have code in webapiconfig.cs file as follows. public static class WebApiConfig { public static void Register(HttpConfiguration config) { …
ghetal
  • 403
  • 2
  • 11
  • 30
0
votes
2 answers

Unable to get headers from jQuery AJAX request in ASP.NET Web API

I have an ASP.NET Web API which is hosted on Azure. I have integrated HTTP Message handler to that API. The message handler is getting hit when I am hitting it using AJAX call. I am also sending some request header in my AJAX call. The problem is I…
0
votes
1 answer

Java Websocket / MessageHandler return to global scope?

I'm facing the following problem and I found no working solution yet. I have 3 different applications that should communicate with each other: the UI part (1) the backend application (2) the microservice "in the cloud" (3) The backend application…
webmonkey
  • 1,083
  • 1
  • 15
  • 33
0
votes
1 answer

Web API modify incoming payload in formatter

All, I am trying to modify the payload of incoming object via the web API. Currently I'm using a custom formatter which inherits from JsonMediaTypeFormatter and overrides the relevant methods. Looks like this: public override async Task
Steven Yates
  • 2,400
  • 3
  • 30
  • 58
0
votes
2 answers

Web API 2 response not always sent?

I've implemented logging of all request/response packets in a message handler like this: protected override async Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) { var correlationId =…
BBauer42
  • 3,549
  • 10
  • 44
  • 81
0
votes
1 answer

What can cause a handler to be ignored?

We moved to a new server and my Thinktecture IdentityModel stuff broke. Here's a super simplified repro sample. This works run locally from Visual Studio, but deployed to the server the handler is clearly not handling. using System.Web.Http; using…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
0
votes
1 answer

Java WebSocket: Multi Text/Data MessageHandler

Hello guys. In my WebSocket application, the WS server need to handle three kinds of message: DataPkg, SigPkg and WS_SigPkg. The DataPkg is binary for user data, with controller headers; the SigPkg is String for user data control between WS clients,…
0
votes
2 answers

Should NServiceBus handlers always quickly complete?

[Edited for clairty] I'm not sure I understand correctly. Inside the Saga everything should be concise and quick, according to these instructive posts: Jonathan Oliver's summary: blog.jonathanoliver.com/… Udi Dahan's original:…
pashute
  • 3,965
  • 3
  • 38
  • 65
0
votes
1 answer

JIRA error while trying demo in custom message handler tutorial

I was doing the tutorial for creating custom message handler. The tutorial link I followed exactly the same then when I attempt to run "atlas-run" command, a Build Failure message always appear with this error code Failed to execute goal on project…
JamesYTL
  • 344
  • 2
  • 7
  • 19
0
votes
1 answer

Is there a way to start multiple instance of the the message handle in NServiceBus

I have a MyMessageHandler which is managed by NServiceBus host process. The handle stores the message in the database. Is there a way to tell NServiceBus host process to start multiple instance of MyMessageHandler process/task in parallel so we can…
BanditoBunny
  • 3,658
  • 5
  • 32
  • 40
0
votes
0 answers

WM_SIZE: size changed by user?

Is it possible in a windows message handler for WM_SIZE to detect if the current size change is triggered by a user action (such as resizing by mouse or through system menu+keyboard)? (Currently I'm setting/resetting a flag whether the resize is…
peterchen
  • 40,917
  • 20
  • 104
  • 186
-1
votes
1 answer

Checking for messages in windowless application

I have a small application that needs to react to a particular device being added or removed from the system. So I listen for WM_DEVICECHANGE using CreateWindowEx() and RegisterDeviceNotification(). This seems to work - however, I am left uncertain…
emno
  • 161
  • 1
  • 9
1 2 3 4
5