Web service description language (WSDL) documents may contain operation definitions in portType and binding sections. Similar to the encode methods generated for global elements, an encode method is generated for each operation input , output or fault (optional).