Communication between GO consumer and JAVA provider¶
this guide demonstrate how to use highway to communicate with java chassis GO consumer ~~~~~~~~~~~ Go consumer uses invoker.Invoker() call to make highway communication
- Parameters of Invoke:
- Input argument
- Response argument
In the employ.bp.go file the structure EmployeeStruct is been used as the input argument and Response argument
Microservicename is the name provider in the microservice.yaml file . In this example it is “springboot”.
SchemaId is the schemaID defined in the java provider. In this example it is “hello”.
OperationId is the OperationName in the java provider. In this example it is “addAndShowEmploy”.
Employ class which has the member variables “Name” and “Phone” is used as input parameter for the operation and also response for this api.