This can be done with execute element.
Better support for calling external Web services: Some Web services use their own security and authentication mechanisms. Some also require authentication headers to be set in the Web service request. The execute element allows you to do both. http://developer.yahoo.com/yql/guide/yql-execute-chapter.html#yql-execute-intro