Loft or Sweep?

Hi ,

 In Rhino one rail sweep with 3 section curve can get this, but how can i sweep or loft this in Solidworks?  It seems the loft body cannot follow the centerline correctly.

Thanks.

SolidworksModeling And Assemblies