Outward Transfers API is used to:
| URL | http://127.0.0.1/Prospect-IRIS/Prospect.svc/GB0010001/verCustomerInputs() |
| 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/verCustomerInputs('CustomerCode') |
| 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/verCustomerInputs()/new |
| Http Method | POST |
| Http Response Headers |
Accept: 'Application/atom+xml' Accept: 'Application/hal+json' |
| URL Parameters | Optional: /verCustomerInputs()/new?CustomerCode='NumericValue' |
| Response Type | Single Item with CustomerCode |
| Response |
| URL | http://127.0.0.1/Prospect-IRIS/Prospect.svc/GB0010001/verCustomerInputs('CustomerCode')/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 |
| URL | http://127.0.0.1/Prospect-IRIS/Prospect.svc/GB0010001/verCustomerInputs('CustomerCode') |
| Http Method | PUT |
| 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 Customer { public
Boolean createCustomer(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("verCustomerInputs()/new")
.post(); if (201 == session.result().code()) { return true; } return false; } }
Java Script code