def _setContent(self):
kwstring = '<STR_LIT>'<EOL>tCheck = '<STR_LIT>' % self.inputName<EOL>bindArgs = '<STR_LIT>'<EOL>if self.encodingStyle is not None:<EOL><INDENT>bindArgs = '<STR_LIT>' %self.encodingStyle<EOL><DEDENT>if self.useWSA:<EOL><INDENT>wsactionIn = '<STR_LIT>' % self.inputAction<EOL>wsactionOut = '<STR_LIT>' % self.outputAction<EOL>bindArgs += '<STR_LIT>'<EOL>responseArgs = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>wsactionIn = '<STR_LIT>'<EOL>wsactionOut = '<STR_LIT>'<EOL>responseArgs = '<STR_LIT>'<EOL><DEDENT>bindArgs += '<STR_LIT>'<EOL>if self.do_extended:<EOL><INDENT>inputName = self.getOperation().getInputMessage().name<EOL>wrap_str = "<STR_LIT>"<EOL>partsList = list(self.getOperation().getInputMessage().parts.values())<EOL>try:<EOL><INDENT>subNames = GetPartsSubNames(partsList, self._wsdl)<EOL><DEDENT>except TypeError as ex:<EOL><INDENT>raise Wsdl2PythonError("<STR_LIT>"+"<STR_LIT>"+"<STR_LIT>"+"<STR_LIT>"+"<STR_LIT>")<EOL><DEDENT>args = []<EOL>for pa in subNames:<EOL><INDENT>args += pa<EOL><DEDENT>for arg in args:<EOL><INDENT>wrap_str += "<STR_LIT>" % (ID2,<EOL>self.getAttributeName(arg),<EOL>self.mangle(arg))<EOL><DEDENT>argsStr = "<STR_LIT:U+002C>".join(args)<EOL>if len(argsStr) > <NUM_LIT:1>: <EOL><INDENT>argsStr = "<STR_LIT:U+002CU+0020>" + argsStr<EOL><DEDENT>method = [<EOL>'<STR_LIT>' % (ID1, self.getOperation().getInputMessage()),<EOL>'<STR_LIT>' % (ID1, self.name, argsStr),<EOL>'<STR_LIT>' % (ID2, self.inputName),<EOL>'<STR_LIT:%s>' % (wrap_str),<EOL>'<STR_LIT>' % (ID2, kwstring),<EOL>'<STR_LIT>' % (ID2, wsactionIn),<EOL>'<STR_LIT>'%(ID2, self.soapaction, bindArgs),<EOL>]<EOL><DEDENT>elif self.soap_input_headers:<EOL><INDENT>method = [<EOL>'<STR_LIT>' % (ID1, self.name),<EOL>'<STR_LIT>' % (ID1, self.name),<EOL>'<STR_LIT>' % (ID2, tCheck),<EOL>'<STR_LIT>' %(ID3, '<STR_LIT>'),<EOL>'<STR_LIT>' % (ID2, wsactionIn),<EOL>'<STR_LIT>' % (ID2),<EOL>'<STR_LIT>'%(ID2, self.soapaction, bindArgs),<EOL>]<EOL><DEDENT>else:<EOL><INDENT>method = [<EOL>'<STR_LIT>' % (ID1, self.name),<EOL>'<STR_LIT>' % (ID1, self.name),<EOL>'<STR_LIT>' % (ID2, tCheck),<EOL>'<STR_LIT>' %(ID3, '<STR_LIT>'),<EOL>'<STR_LIT>' % (ID2, wsactionIn),<EOL>'<STR_LIT>'%(ID2, self.soapaction, bindArgs),<EOL>]<EOL><DEDENT>if not self.outputName:<EOL><INDENT>method.append('<STR_LIT>' %(ID2,))<EOL>method.append('<STR_LIT>' % (ID2,))<EOL>self.writeArray(method)<EOL>return<EOL><DEDENT>response = ['<STR_LIT>' % (ID2, wsactionOut),]<EOL>if self.isRPC() and not self.isLiteral():<EOL><INDENT>response.append('<STR_LIT>' %(<EOL>ID2, self.outputName, self.outputName)<EOL>)<EOL>response.append('<STR_LIT>' %(<EOL>ID2, responseArgs)<EOL>)<EOL><DEDENT>else:<EOL><INDENT>response.append('<STR_LIT>' %(<EOL>ID2, self.outputName, responseArgs)<EOL>)<EOL><DEDENT>if self.soap_output_headers:<EOL><INDENT>sh = '<STR_LIT:[>'<EOL>for shb in self.soap_output_headers:<EOL><INDENT>shb.message<EOL>shb.part<EOL>try:<EOL><INDENT>msg = self._wsdl.messages[shb.message]<EOL>part = msg.parts[shb.part]<EOL>if part.element is not None:<EOL><INDENT>sh += '<STR_LIT>' %str(part.element)<EOL><DEDENT>else:<EOL><INDENT>warnings.warn('<STR_LIT>' %str(msg))<EOL><DEDENT><DEDENT>except:<EOL><INDENT>raise WSDLFormatError(<EOL>'<STR_LIT>' +<EOL>'<STR_LIT>' %(<EOL>shb.message, shb.part)<EOL>)<EOL><DEDENT><DEDENT>sh += '<STR_LIT:]>'<EOL>if len(sh) > <NUM_LIT:2>:<EOL><INDENT>response.append('<STR_LIT>' %(ID2, sh)<EOL>)<EOL><DEDENT><DEDENT>if self.outputSimpleType:<EOL><INDENT>response.append('<STR_LIT>' %(ID2, self.outputName))<EOL><DEDENT>else: <EOL><INDENT>if self.do_extended:<EOL><INDENT>partsList = list(self.getOperation().getOutputMessage().parts.values())<EOL>subNames = GetPartsSubNames(partsList, self._wsdl)<EOL>args = []<EOL>for pa in subNames:<EOL><INDENT>args += pa<EOL><DEDENT>for arg in args:<EOL><INDENT>response.append('<STR_LIT>' % (ID2, self.mangle(arg), self.getAttributeName(arg)) )<EOL><DEDENT>margs = "<STR_LIT:U+002C>".join(args)<EOL>response.append("<STR_LIT>" % (ID2, margs) )<EOL><DEDENT>else:<EOL><INDENT>response.append('<STR_LIT>' %ID2)<EOL><DEDENT><DEDENT>method += response<EOL>self.writeArray(method)<EOL>
create string representation of operation.