def setUpMethods(self, port):
assert isinstance(port, WSDLTools.Port),'<STR_LIT>' %type(port)<EOL>binding = port.getBinding()<EOL>portType = port.getPortType()<EOL>service = port.getService()<EOL>s = self._services[service.name]<EOL>for bop in binding.operations:<EOL><INDENT>try:<EOL><INDENT>op = portType.operations[bop.name]<EOL><DEDENT>except KeyError as ex:<EOL><INDENT>raise WsdlGeneratorError('<STR_LIT>'%(port.name, portType.name, op.name, binding.name))<EOL><DEDENT>soap_action = wsaction_in = wsaction_out = None<EOL>if op.input is not None:<EOL><INDENT>wsaction_in = op.getInputAction()<EOL><DEDENT>if op.output is not None:<EOL><INDENT>wsaction_out = op.getOutputAction()<EOL><DEDENT>for ext in bop.extensions:<EOL><INDENT>if isinstance(ext, WSDLTools.SoapOperationBinding) is False: continue<EOL>soap_action = ext.soapAction<EOL>if not soap_action: break<EOL>if wsaction_in is None: break<EOL>if wsaction_in == soap_action: break<EOL>if self.strict is False:<EOL><INDENT>warnings.warn('<STR_LIT>'%(port.name, op.name, binding.name, soap_action, wsaction_in),<EOL>)<EOL>break<EOL><DEDENT>raise WsdlGeneratorError('<STR_LIT>'%(port.name, op.name, binding.name, soap_action, wsaction_in))<EOL><DEDENT>method_name = self.getMethodName(op.name)<EOL>m = s.newMethod()<EOL>print('<STR_LIT>' %(self.getIndent(level=<NUM_LIT:1>), method_name), file=m)<EOL>msgin_name = msgout_name = None<EOL>msgin,msgout = op.getInputMessage(),op.getOutputMessage()<EOL>if msgin is not None: <EOL><INDENT>msgin_name = TextProtect(msgin.name)<EOL><DEDENT>if msgout is not None: <EOL><INDENT>msgout_name = TextProtect(msgout.name)<EOL><DEDENT>indent = self.getIndent(level=<NUM_LIT:2>)<EOL>for l in self.createMethodBody(msgin_name, msgout_name):<EOL><INDENT>print(indent + l, file=m)<EOL><DEDENT>print('<STR_LIT>', file=m)<EOL>print('<STR_LIT>' %(self.getIndent(level=<NUM_LIT:1>), wsaction_in, method_name), file=m)<EOL>print('<STR_LIT>' %(self.getIndent(level=<NUM_LIT:1>), method_name, wsaction_out), file=m)<EOL>print('<STR_LIT>'%(self.getIndent(level=<NUM_LIT:1>), msgin_name, msgin_name, method_name), file=m)<EOL><DEDENT>
set up all methods representing the port operations.
        Parameters:
            port -- Port that defines the operations.