Lather.Server.Plug (lather v1.0.42)

View Source

Plug 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
end

As standalone Plug:

plug Lather.Server.Plug, service: MyApp.UserService

Options

  • :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)