The attributes used - bs_id String bs_id ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ records = bmql("select username, password, reviseUrl, requestUrl from integration.remoteApproval"); username=""; password=""; reviseUrl=""; requestUrl=""; for record in records { reviseUrl=get(record, "reviseUrl"); requesturl=get(record, "requestUrl"); username = get(record, "username"); password = get(record, "password"); } xml=" suyog"+bs_id+" 1000023 skulkarn"; header = dict("string"); put(header, "Content-Type", "application/soap+xml"); response = urldatabypost(requestUrl, xml, "",header,true); if(find(lower(response), "error")<0) { return jsonget(json(response), "processId","String"); } else { throwerror(response); return ""; }