Static and dynamic response of a spanning pipeline in a wave and/or current field