The Funds Transfers API is used to:
URL | http://127.0.0.1/Prospect-IRIS/Prospect.svc/GB0010001/verFundsTransfers() |
Http Method | GET |
Http Request Headers |
Accept: 'Application/atom+xml' Accept: 'Application/hal+json' |
Http Response Headers |
Content-Type: 'Application/atom+xml' Content-Type: 'Application/hal+json' |
Response Type | Collection |
Response |
URL | http://127.0.0.1/Prospect-IRIS/Prospect.svc/GB0010001/verFundsTransfers('RefNo') |
Http Method | GET |
Http Request Headers |
Accept: 'Application/atom+xml' Accept: 'Application/hal+json' |
Http Response Headers |
Content-Type: 'Application/atom+xml' Content-Type: 'Application/hal+json' |
Response Type | Single Item |
Response |
URL | http://127.0.0.1/Prospect-IRIS/Prospect.svc/GB0010001/verFundsTransfers()/new |
Http Method | POST |
Http Response Headers |
Accept: 'Application/atom+xml' Accept: 'Application/hal+json' |
URL Parameters | Optional: /verFundsTransfers()/new?RefNo='AlphaNumericValue' |
Response Type | Single Item with RefNo & default value |
Response |
URL | http://127.0.0.1/Prospect-IRIS/Prospect.svc/GB0010001/verFundsTransfers('RefNo')/validate |
Http Method | POST |
Http Request Headers |
Accept: 'Application/atom+xml' Accept: 'Application/hal+json' Etag: 'returned by server' |
Http Request Headers |
Content-Type: 'Application/atom+xml' Content-Type: 'Application/hal+json' If-Match: 'etag value' |
Response |
<repositories> <repository> <id>mjangid</id> <name>iris-repo</name> <url>https://github.com/mjangid/iris-repo/raw/master/</url> </repository> </repositories> <dependencies> <dependency> <groupId>com.temenos.interaction</groupId> <artifactId>useragent-generic-java</artifactId> <version>0.10.0</version> <scope>compile</scope> </dependency> </dependencies>
import com.temenos.useragent.generic.DefaultInteractionSession; import com.temenos.useragent.generic.InteractionSession; import com.temenos.useragent.generic.mediatype.AtomPayloadHandler; public class FundsTransfer { public Boolean createFundsTransfer(String dataServiceUrl) { InteractionSession session = DefaultInteractionSession.newSession(); session.registerHandler("application/atom+xml", AtomPayloadHandler.class) .basicAuth("INPUTT", "123456") .header("Content-Type", "application/atom+xml") .header("Accept", "application/atom+xml").url() .baseuri(dataServiceUrl).path("verFundsTransfers()/new") .post(); if (201 == session.result().code()) { return true; } return false; } }
Java Script code