Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Service Development Help | Creating Client Code
 
Creating Client Code
 
Building a Java Client
Building a C/C++ Client
Building a Browser-Based Client
Building a REST Client
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 Server
*Invokes the service
*Receives output from the service
*Closes the session on Integration Server
*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.