def setUpMethods(self, port):
assert isinstance(port, WSDLTools.Port),'<STR_LIT>' %type(port)<EOL>sd = self._services.get(port.getService().name)<EOL>assert sd is not None, '<STR_LIT>'<EOL>binding = port.getBinding()<EOL>portType = port.getPortType()<EOL>action_in = '<STR_LIT>'<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,bop.name,binding.name))<EOL><DEDENT>for ext in bop.extensions:<EOL><INDENT>if isinstance(ext, WSDLTools.SoapOperationBinding):<EOL><INDENT>action_in = ext.soapAction<EOL>break<EOL><DEDENT><DEDENT>else:<EOL><INDENT>warnings.warn('<STR_LIT>'%(port.name,op.name,binding.name)<EOL>)<EOL><DEDENT>msgin = op.getInputMessage()<EOL>msgin_name = TextProtect(msgin.name)<EOL>method_name = self.getMethodName(op.name)<EOL>m = sd.newMethod()<EOL>print('<STR_LIT>' %(self.getIndent(level=<NUM_LIT:1>), method_name), file=m)<EOL>if msgin is not None:<EOL><INDENT>print('<STR_LIT>' %(self.getIndent(level=<NUM_LIT:2>), msgin_name), file=m)<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>' %self.getIndent(level=<NUM_LIT:2>), file=m)<EOL><DEDENT>msgout = op.getOutputMessage()<EOL>if msgout is not None:<EOL><INDENT>msgout_name = TextProtect(msgout.name)<EOL>print('<STR_LIT>' %(self.getIndent(level=<NUM_LIT:2>), msgout_name), file=m)<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>' % self.getIndent(level=<NUM_LIT:2>), file=m)<EOL>print('<STR_LIT>' % self.getIndent(level=<NUM_LIT:2>), file=m)<EOL><DEDENT>print('<STR_LIT>', file=m)<EOL>print('<STR_LIT>' %(self.getIndent(level=<NUM_LIT:1>), action_in, method_name), file=m)<EOL>print('<STR_LIT>'%(self.getIndent(level=<NUM_LIT:1>), msgin_name, msgin_name, method_name), file=m)<EOL><DEDENT>return<EOL>
set up all methods representing the port operations.
        Parameters:
            port -- Port that defines the operations.