# By John Lampe # $Id$ function create_uddi_xml (ktype,path,key,name) { envelope_header = string(" "); get_servicedetail = string(""); get_servicedetail = string(get_servicedetail, "", key, ""); find_business = string(""); find_business = string(find_business, "",name,""); find_service = string(""); find_service = string(find_service, "", name, ""); close_envelope = string(""); if (ktype == "UDDI_QUERY_FBUSINESS") method = find_business; if (ktype == "UDDI_QUERY_FSERVICE") method = find_service; if (ktype == "UDDI_QUERY_GSERVICE_DETAIL") method = get_servicedetail; xml = string(envelope_header, method, close_envelope); len = strlen(xml); finished_message = string("POST ", path, " HTTP/1.0\r\n"); finished_message = string(finished_message, "Accept: text/xml\r\n"); finished_message = string(finished_message, "Accept: multipart/*\r\n"); finished_message = string(finished_message, "Host: ", get_host_ip(), "\r\n"); finished_message = string(finished_message, "User-Agent: NESSUS::SOAP\r\n"); finished_message = string(finished_message, "Content-Length: ", len, "\r\n"); finished_message = string(finished_message, "Content-Type: text/xml; charset=utf-8\r\n"); finished_message = string(finished_message, "SOAPAction: ''\r\n\r\n", xml); return(finished_message); }