steve-community / steve

SteVe - OCPP server implementation in Java
GNU General Public License v3.0
808 stars 395 forks source link

Question #578

Closed pulkitgarg007 closed 3 years ago

pulkitgarg007 commented 3 years ago

Can anyone help me to understand where and how these endpoints are configured. SOAP: http://:/steve/services/CentralSystemService WebSocket/JSON: ws://:/steve/websocket/CentralSystemService/

Thanks for your help.

csamsel commented 3 years ago

Depends what you want to achieve

goekay commented 3 years ago

soap: services/CentralSystemService is just a dummy endpoint and mediator to forward requests to the correct implementation wrt. ocpp 1.2, 1.5 and 1.6.

https://github.com/RWTH-i5-IDSG/steve/blob/7dd2d78e3666b46dbe077cb18bd1f9e09395cfe0/src/main/java/de/rwth/idsg/steve/config/OcppConfiguration.java#L70-L81

websocket: similarly websocket/CentralSystemService is the handshake endpoint for different ocpp-j version implementations. the actual implementation will be chosen during handshake based on the websocket subprotocol that references the ocpp version.

https://github.com/RWTH-i5-IDSG/steve/blob/7dd2d78e3666b46dbe077cb18bd1f9e09395cfe0/src/main/java/de/rwth/idsg/steve/config/WebSocketConfiguration.java#L69-L91

take a look at the injected objects used in the snippets above and please follow the rabbit.

pulkitgarg007 commented 3 years ago

Thanks Sevket. It helped