Hola Raye,
Problema con el contexto, intenta:
var that = this;
service_url: "http://thisisaurl.com";
request = "abc";
$.ajax({
url: service_url,
type: "POST",
crossDomain: true,
dataType: "text",
data: request,
username: "user",
password: "pass",
success: function(results) {
that.functiontwo(results);
},
error: function() {},
contentType: "text/xml; charset=utf-8"
});
functiontwo: function(string)
{
string = string;
}
Saludos,
Sai Vellanki.