def deserialize_request_string(string, app):
 server = ServerBase(app)
 initial_ctx = MethodContext(server, MethodContext.SERVER)
 initial_ctx.in_string = [string]
 ctx = server.generate_contexts(initial_ctx)[0]
 server.get_in_object(ctx)
 return ctx.in_object

def deserialize_request_string ( string , app ) : server = ServerBase ( app ) initial_ctx = MethodContext ( server , MethodContext . SERVER ) initial_ctx . in_string = [ string ] ctx = server . generate_contexts ( initial_ctx ) [ 0 ] server . get_in_object ( ctx ) return ctx . in_object
deserialize request string using in_protocol in application definition .