<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 04/14/15 21:08, Patricio Stegmann
      Gmail wrote:<br>
    </div>
    <blockquote cite="mid:552D57A8.5010406@gmail.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      Hello,<br>
      I am looking at a way to change the default behaviour on output
      generation with soap.<br>
      Basically spyne creates the typedefs but responds with its
      autogenerated names:<br>
      <i><br>
      </i><i><senv:Envelope xmlns:tns="tns" xmlns:s0="datamodel"
        xmlns:senv=<a moz-do-not-send="true"
          class="moz-txt-link-rfc2396E"
          href="http://schemas.xmlsoap.org/soap/envelope/">"http://schemas.xmlsoap.org/soap/envelope/"</a>></i><i><br>
      </i><i>   <senv:Body></i><i><br>
      </i><i><b>      <tns:helloResponse></b></i><i><b><br>
        </b></i><i><b>         <tns:helloResult></b></i><i><br>
      </i><i>            <s0:param2>myval</s0:param2></i><i><br>
      </i><i>            <s0:param1>1</s0:param1></i><i><br>
      </i><i><b>         </tns:helloResult></b></i><i><b><br>
        </b></i><i><b>      </tns:helloResponse></b></i><i><br>
      </i><i>   </senv:Body></i><i><br>
      </i><i></senv:Envelope></i><br>
      <br>
      I need to change the default name of helloResult. I could already
      manage it for helloResponse, by using on the srpc decorator the
      parameter
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      _in_message_name etc... However, I dont know how to change the
      name for helloResult. I tried, on the return type, to do something
      like this:<br>
    </blockquote>
    <br>
    You need to use the bare mode. This disables auto class generation
    and uses classes supplied by you. Bare mode supports only one input
    and one output argument. You need to use a ComplexModel if you need
    to work with more than one argument in input or output.<br>
    <br>
    class HelloCustomResponse(ComplexModel):<br>
        #(...)<br>
    <br>
    @rpc( (...) ,_body_style='bare', _returns=HelloCustomResponse)<br>
    <br>
    hth,<br>
    burak<br>
  </body>
</html>