Added correct implementation for query_ws, decode_wsxml,
ws_retrieve_record, ws_search_record and parsing of Webservice responses