Creating Client Code
Client code is application code that invokes a service on Integration Server. It typically performs the following basic tasks:
![*](chapterTOC_bullet.png)
Prompts the user for input values for the service that the client invokes (if the service takes input)
![*](chapterTOC_bullet.png)
Places the input values into an input document
![*](chapterTOC_bullet.png)
Opens a session on
Integration Server![*](chapterTOC_bullet.png)
Invokes the service
![*](chapterTOC_bullet.png)
Receives output from the service
![*](chapterTOC_bullet.png)
Closes the session on
Integration Server![*](chapterTOC_bullet.png)
Displays 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.