def setUp(self, item):
if not isinstance(item, WSDLTools.OperationBinding):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not item.input:<EOL><INDENT>raise WSDLFormatError('<STR_LIT>' %(<EOL>item.getBinding().name, item.name))<EOL><DEDENT>self.name = None<EOL>self.port = None<EOL>self.soapaction = None<EOL>self.inputName  = None<EOL>self.outputName = None<EOL>self.inputSimpleType  = None<EOL>self.outputSimpleType = None<EOL>self.inputAction  = None<EOL>self.outputAction = None<EOL>self.port = port = item.getBinding().getPortType()<EOL>self._wsdl = item.getWSDL()<EOL>self.name = name = item.name<EOL>self.binding_operation = bop = item<EOL>self.soap_input_headers = None<EOL>self.soap_output_headers = None<EOL>op = port.operations.get(name)<EOL>if op is None:<EOL><INDENT>raise WSDLFormatError(<EOL>'<STR_LIT>' %(<EOL>port.name, item.getBinding().name, item.name))<EOL><DEDENT>soap_bop = bop.findBinding(WSDLTools.SoapOperationBinding)<EOL>if soap_bop is None: <EOL><INDENT>raise SOAPBindingError('<STR_LIT>')<EOL><DEDENT>self.soapaction = soap_bop.soapAction<EOL>sbody = bop.input.findBinding(WSDLTools.SoapBodyBinding)<EOL>if not sbody:<EOL><INDENT>raise SOAPBindingError('<STR_LIT>' %(<EOL>port.binding.name, bop.name))<EOL><DEDENT>self.encodingStyle = None<EOL>if sbody.use == '<STR_LIT>':<EOL><INDENT>assert sbody.encodingStyle == SOAP.ENC,'<STR_LIT>'%(SOAP.ENC, sbody.encodingStyle)<EOL>self.encodingStyle = sbody.encodingStyle<EOL><DEDENT>self.inputName  = op.getInputMessage().name<EOL>self.inputSimpleType =FromMessageGetSimpleElementDeclaration(op.getInputMessage())<EOL>self.inputAction = op.getInputAction()<EOL>self.soap_input_headers = bop.input.findBindings(WSDLTools.SoapHeaderBinding)<EOL>if bop.output is not None:<EOL><INDENT>sbody = bop.output.findBinding(WSDLTools.SoapBodyBinding)<EOL>if not item.output:<EOL><INDENT>raise WSDLFormatError("<STR_LIT>"  %name)<EOL><DEDENT>self.outputName = op.getOutputMessage().name<EOL>self.outputSimpleType =FromMessageGetSimpleElementDeclaration(op.getOutputMessage())<EOL>self.outputAction = op.getOutputAction()<EOL>self.soap_output_headers = bop.output.findBindings(WSDLTools.SoapHeaderBinding)<EOL><DEDENT>
Parameters:
    item -- WSDLTools BindingOperation instance.