Lather.Server.Plug (lather v1.0.4)
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)
Note: This module requires the :plug dependency to be installed.
Add {:plug, "~> 1.14"} to your mix.exs dependencies.