<logo.png>
A small gotcha (ran into it when initially testing out the webhooks on http://respondto.it/ ). Retrofit adds a trailing forward slash to any URL's defined for webhooks in the mifos platform, so entering a URL like http://requestb.in/tc3vbctc would cause the request to be sent tohttp://requestb.in/tc3vbctc/ by the mifos platform which would return a 404 on services like requestbin and respondtoit.
As a workaround, add a query parameter while defining the webhook URL in the mifos platform. Ex: http://requestb.in/tc3vbctc? in lieu of http://requestb.in/tc3vbctc
Regards,
Vishwas
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
Mifos-developer mailing list
mifos-d...@lists.sourceforge.net
Unsubscribe or change settings at:
https://lists.sourceforge.net/lists/listinfo/mifos-developer
Hey Sander,I remember for some url's retrofit was running into a 404 because Retrofit automatically appends a '/' at the end of the baseUrl so your config under /hooks might show your hook url as "http://<URL>/services/apexrest/transactions" but the actual calls are being made at "http://<URL>/services/apexrest/transactions/".So the temporary solution is :-A small gotcha (ran into it when initially testing out the webhooks on http://respondto.it/ ). Retrofit adds a trailing forward slash to any URL's defined for webhooks in the mifos platform, so entering a URL like http://requestb.in/tc3vbctc would cause the request to be sent tohttp://requestb.in/tc3vbctc/ by the mifos platform which would return a 404 on services like requestbin and respondtoit.
As a workaround, add a query parameter while defining the webhook URL in the mifos platform. Ex: http://requestb.in/tc3vbctc? in lieu of http://requestb.in/tc3vbctc
Regards,
Vishwas
On Tue, Dec 9, 2014 at 1:50 AM, Sander van der Heyden <sandervan...@musoni.eu> wrote:
Hi Markus,It is using the stock webhooks code from 1.25.1 MifosX release, no adjustments made. Did we need to do that?I do not have access to the salesforce.com side, but testing from postman it responds perfectly fine to a POST call like this: http://<URL>/services/apexrest/transactions?X-Mifos-Platform-TenantId=demo&X-Mifos-Entity=LOAN&X-Mifos-Action=REPAYMENT with payload {"officeId":187,"clientId":7,"savingsId":382,"resourceId":241} (from the WIKI).Thanks for taking the time to have a look,Saner
--
Sander van der Heyden
CTO Musoni Services