def get_soap_object(self, client):
def to_soap_attribute(attr):<EOL><INDENT>words = attr.split('<STR_LIT:_>')<EOL>words = words[:<NUM_LIT:1>] + [word.capitalize() for word in words[<NUM_LIT:1>:]]<EOL>return '<STR_LIT>'.join(words)<EOL><DEDENT>soap_object = client.factory.create(self.soap_name)<EOL>for attr in self._attributes:<EOL><INDENT>value = getattr(self, attr)<EOL>setattr(soap_object, to_soap_attribute(attr), value)<EOL><DEDENT>return soap_object<EOL>
Create and return a soap service type defined for this instance