Lather.Server.Plug (lather v1.0.42)
View SourcePlug implementation for SOAP server endpoints.
Handles incoming SOAP requests, routes them to appropriate operations, and formats responses according to SOAP standards.
Usage
In Phoenix router:
scope "/soap" do
pipe_through :api
post "/users", Lather.Server.Plug, service: MyApp.UserService
endAs standalone Plug:
plug Lather.Server.Plug, service: MyApp.UserServiceOptions
:service- The SOAP service module (required):path- Base path for WSDL generation (default: "/"):auth_handler- Custom authentication handler:validate_params- Enable parameter validation (default: true):generate_wsdl- Enable WSDL generation endpoint (default: true)