PLEASE help with JavaScript parsing of WSDL return

Avatar

Avatar

pmcalex

Avatar

pmcalex

pmcalex

24-06-2008

Can someone help with parsing return WSDL data?



My return WSDL data is a concatenated string of alias names (firstname middlename lastname generation) delininated with an "@":

7433|ALIAS|John|W|Smith| @7432|ALIAS|Johnny| |Smith| @7430|ALIAS|JJ| |Smithers| @7431|ALIAS|JJ| |Smith| @7400|ALIAS|Jon| |Smith| @7416|ALIAS|John|Wilber|Smith|JR



I must have these names appear on my forms in a "lastname, firstname middlename generation" format. Can anyone provide expertise in this area if I provide the table.column reference?



alias.alternate_id = tmp[0];

alias.type = tmp[1];

alias.firstname = tmp[2];

alias.middlename = tmp[3];

alias.lastname = tmp[4];

alias.generation = tmp[5];