Creating Client Code
Client code is application code that invokes a service on Integration Server. It typically performs the following basic tasks:
Prompts the user for input values for the service that the client invokes (if the service takes input)
Places the input values into an input document
Opens a session on
Integration ServerInvokes the service
Receives output from the service
Closes the session on
Integration ServerDisplays the service’s output to the user
Using Designer you can automatically generate client code in Java and C/C++. The generated client code can serve as a good starting point for your own development.
You can also build client code on your own for browser-based clients and REST clients.
Note: | By default, Integration Server writes a response message to an HTTP client using the same content type that was included in the request message. However, you can specify that your service send the response message using a different format. For example, if your service receives a request that specifies text/xml as the content type, you can send a response message that specifies text/html for the content type. To change the content-type of the response message, code your service to call the pub.flow:setResponseHeader service before it writes output to the pipeline. |