Encontrar

Pregunta
· 9 hr atrás

Makkah to Madinah Travel Guide & Reliable Taxi in Jeddah Services for Pilgrims

 

Traveling between the holy cities of Makkah to Madinah is one of the most spiritually significant journeys for Muslims visiting Saudi Arabia. Millions of pilgrims make this route every year for Umrah, Hajj, and Ziyarat. At the same time, many travelers arrive through Jeddah, making taxi in Jeddah services a vital part of a smooth and comfortable journey. Choosing the right transportation can save time, reduce stress, and allow pilgrims to focus on worship instead of logistics.

Harmain Ziarah provides professional, reliable, and comfortable taxi services across Saudi Arabia, designed especially for pilgrims and families who value safety, punctuality, and peace of mind.

 


Importance of the Makkah to Madinah Journey

The journey from Makkah to Madinah holds deep spiritual importance. Makkah is home to the Holy Kaaba and Masjid al-Haram, while Madinah is blessed with Masjid an-Nabawi, the resting place of Prophet Muhammad ﷺ. Many pilgrims choose to travel from Makkah to Madinah after completing Umrah, or begin in Madinah and then head to Makkah.

This route is not just about distance; it is about comfort, intention, and convenience. A smooth journey ensures pilgrims remain fresh and focused for prayers and Ziyarat.

 


Distance and Travel Time from Makkah to Madinah

The approximate distance between Makkah to Madinah is around 450 kilometers (280 miles). Travel time depends on the mode of transportation:

  • Taxi or private car: 4.5 to 6 hours
  • High-speed train (Haramain): Around 2.5 hours (excluding station transfers)
  • Bus: 6 to 8 hours depending on stops

Many pilgrims prefer taxis because they offer door-to-door service, flexible timing, and personal comfort, especially for families, elderly passengers, and groups.

 


Why Choose a Taxi from Makkah to Madinah

Traveling by taxi from Makkah to Madinah has several advantages compared to buses or shared transport:

Door-to-Door Convenience

A private taxi picks you up directly from your hotel in Makkah and drops you off at your hotel in Madinah. There is no need to manage luggage through stations or wait in long queues.

Comfortable Long-Distance Travel

Air-conditioned vehicles, spacious seating, and smooth highways make long-distance travel far more comfortable, especially after performing Umrah.

Flexible Travel Schedule

You can depart at your preferred time, whether early morning, afternoon, or late night, without being restricted to fixed bus or train schedules.

Ideal for Families and Groups

Families with children or elderly members find taxis more suitable, as breaks can be taken when needed.

 


Taxi in Jeddah – A Key Gateway for Pilgrims

Jeddah is the main entry point for international pilgrims arriving in Saudi Arabia. Whether you land at King Abdulaziz International Airport (KAIA) or stay in the city, finding a reliable taxi in Jeddah is crucial for onward travel to Makkah or Madinah.

Harmain Ziarah offers trusted taxi services in Jeddah that connect pilgrims to all major destinations with ease.

 


Types of Taxi in Jeddah Services Available

Airport Taxi in Jeddah

Many pilgrims arrive in Jeddah and travel directly to Makkah or Madinah. Airport taxis ensure:

  • Immediate pickup after landing
  • Assistance with luggage
  • No waiting or confusion

City Taxi in Jeddah

For travelers staying in Jeddah hotels, taxis are ideal for:

  • Hotel to airport transfers
  • City sightseeing
  • Travel to Makkah or Madinah

Jeddah to Makkah Taxi

This route takes approximately 1 to 1.5 hours and is one of the most commonly used services by Umrah pilgrims.

Jeddah to Madinah Taxi

Direct taxis from Jeddah to Madinah are perfect for pilgrims who want to visit Madinah first before heading to Makkah.

 


Benefits of Booking Taxi in Jeddah with Harmain Ziarah

Harmain Ziarah understands the unique needs of pilgrims and travelers in Saudi Arabia. Our taxi in Jeddah services are designed with care, professionalism, and reliability.

Experienced Drivers

Our drivers are familiar with pilgrimage routes, hotels, mosques, and highways, ensuring a smooth and safe journey.

Clean and Comfortable Vehicles

All vehicles are regularly maintained, air-conditioned, and spacious enough for luggage.

Transparent Pricing

No hidden charges or last-minute surprises. Pricing is agreed in advance for peace of mind.

24/7 Availability

Flights arrive at all hours, and our taxi services are available day and night.

 


Popular Routes Covered by Harmain Ziarah

  • Makkah to Madinah
  • Madinah to Makkah
  • Taxi in Jeddah city
  • Jeddah Airport to Makkah
  • Jeddah Airport to Madinah
  • Makkah to Jeddah Airport

These routes are carefully managed to ensure punctual arrivals, especially for prayer times and hotel check-ins.

 


Best Time to Travel from Makkah to Madinah

While travel is possible all year, some factors influence the experience:

Avoid Peak Prayer Times

Traveling outside peak prayer hours can reduce traffic near the Haram areas.

Night Travel Option

Many pilgrims prefer night travel for cooler temperatures and less road congestion.

Hajj and Ramadan Season

During peak seasons, pre-booking taxis is strongly recommended due to high demand.

 


Safety and Comfort on Long-Distance Taxi Travel

Long journeys like Makkah to Madinah require a focus on safety and comfort:

  • Licensed and trained drivers
  • Regular rest stops when needed
  • GPS-monitored routes
  • Compliance with Saudi traffic regulations

Harmain Ziarah prioritizes passenger safety at every step of the journey.

 


Why Pilgrims Prefer Private Taxis Over Shared Transport

Shared buses and vans are cheaper but often involve long waiting times, multiple stops, and limited comfort. Private taxis provide:

  • Faster travel
  • Privacy for families
  • Flexible rest breaks
  • Direct routes

For many pilgrims, the peace of mind offered by a private taxi is worth the investment.

 


Travel Tips for Pilgrims Using Taxi Services

  • Keep Ihram requirements in mind when traveling from Jeddah to Makkah
  • Carry water and light snacks for long journeys
  • Confirm pickup location and time in advance
  • Keep hotel addresses saved in Arabic if possible

These small steps can make your journey smoother and stress-free.

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 10 hr atrás

Reliable Taxi Service in Saudi Arabia: Your Go-To Choice for “Taxi Near Me”

 

Traveling in Saudi Arabia has never been easier thanks to the rise of professional taxi services that combine comfort, reliability, and efficiency. Whether you are a resident commuting to work, a pilgrim visiting Makkah and Madinah, or a tourist exploring Riyadh and Jeddah, finding a trustworthy taxi service can make a huge difference in your journey. Searching for “taxi near me” often brings up numerous options, but knowing what to look for in a reliable service can save time, money, and stress.

At Umrah Taxi, we understand the importance of punctuality, safety, and convenience for every traveler. Our services are designed to meet the diverse needs of clients throughout Saudi Arabia. In this article, we will explore why taxi services are essential, how to find the best taxi near me, and what makes Umrah Taxi the preferred choice for travelers across the country.

 


Why Taxi Services Are Essential in Saudi Arabia

Saudi Arabia’s cities are large, bustling, and often challenging to navigate without proper transport. While ride-sharing apps and private car rentals are available, professional taxi services offer unique benefits that make them indispensable:

1. Reliable and Safe Transportation

Professional taxi services like Umrah Taxi prioritize safety. All our drivers undergo rigorous background checks and training to ensure passengers have a secure journey. Unlike informal taxis, professional services guarantee well-maintained vehicles, adherence to traffic rules, and courteous behavior.

2. Convenience for Every Traveler

Whether you are traveling from Jeddah to Makkah, Riyadh to Dammam, or within city limits, taxis offer door-to-door service. Searching “taxi near me” ensures immediate access to a ride without the need to navigate public transport schedules or deal with parking hassles.

3. 24/7 Availability

Unlike traditional transportation options, taxi services are available round-the-clock. Early morning flights, late-night arrivals, or urgent business meetings can be managed effortlessly with a reliable taxi service. Umrah Taxi operates 24/7 to meet the urgent needs of travelers across Saudi Arabia.

4. Flexible Payment Options

Modern taxi services offer flexible payment methods, including cash, credit cards, and mobile payments. This ensures a smooth, hassle-free transaction every time you book a ride.

 


How to Find a Reliable “Taxi Near Me”

When searching for taxi near me, you may find numerous options, but not all are created equal. Here are essential factors to consider:

1. Proximity and Availability

Location matters when choosing a taxi. Services that are closer to your location ensure minimal waiting time. Using GPS-enabled apps or official taxi websites, you can instantly locate a nearby taxi ready to pick you up.

2. Vehicle Quality and Comfort

A taxi ride is more than just transport; it is about comfort and convenience. Choose a service that provides clean, modern, and well-maintained vehicles. Features like air conditioning, spacious seating, and luggage capacity are particularly important for long-distance travel.

3. Transparent Pricing

Many travelers hesitate due to unclear fare structures. Reliable taxi services display upfront rates to avoid surprises. Whether traveling within the city or on intercity routes, transparency in pricing builds trust.

4. Professional Drivers

Experienced drivers are crucial for a stress-free journey. Professional taxi services employ drivers with extensive local knowledge, ensuring efficient routes, faster travel times, and a safe experience.

5. Easy Booking System

Convenience starts with booking. A simple online booking system or mobile app ensures that you can secure a taxi in just a few clicks. Many services also allow real-time tracking of your ride for additional peace of mind.

 


Advantages of Using Umrah Taxi in Saudi Arabia

Choosing the right taxi service makes a significant difference in your travel experience. Umrah Taxi is committed to offering superior service to travelers across Saudi Arabia. Here’s why we are the top choice:

1. Wide Coverage Across Major Cities

We provide service in Riyadh, Jeddah, Makkah, Madinah, Dammam, and other major cities. Whether you need a ride to the airport, a hotel, or a local attraction, Umrah Taxi has you covered.

2. Expertise in Pilgrimage Travel

Pilgrims visiting Makkah and Madinah require timely and comfortable transportation. Our drivers are experienced in handling Hajj and Umrah routes, ensuring a smooth journey to sacred sites.

3. Affordable Fares

We understand that travel budgets vary, and affordability is key. Umrah Taxi offers competitive pricing without compromising on quality, making us an ideal choice for both local and international travelers.

4. Real-Time Booking and Tracking

Our app and online booking platform allow you to find the nearest taxi quickly. Real-time tracking ensures you know exactly when your driver will arrive, reducing waiting time and improving convenience.

5. 24/7 Customer Support

Travel plans can change unexpectedly. Our customer support team is available around the clock to address inquiries, rebook rides, and assist in emergencies.

 


Common Use Cases for Taxi Services

Taxis are not just for casual city rides. They play a vital role in various travel needs:

1. Airport Transfers

Getting to and from airports in Saudi Arabia can be stressful due to traffic and unfamiliar routes. A reliable taxi service ensures timely airport pickups and drop-offs, allowing you to focus on your journey instead of logistics.

2. Business Travel

Executives and professionals often need flexible transportation for meetings and conferences. Using a taxi service ensures punctuality, privacy, and professional service.

3. Tourism and Sightseeing

Saudi Arabia boasts a rich cultural and historical heritage, from the bustling streets of Riyadh to the holy cities of Makkah and Madinah. A taxi provides a convenient way to explore tourist attractions at your own pace.

4. Emergency Travel

Medical emergencies or urgent appointments require immediate transportation. Taxi services are available 24/7 to cater to such situations, ensuring help is never far away.

 


Tips for a Smooth Taxi Experience

Even when using a professional service, keeping a few tips in mind can enhance your ride experience:

  • Book in Advance: During peak seasons, booking early ensures availability.
  • Verify the Taxi: Check the vehicle and driver credentials for safety.
  • Keep Essentials Ready: Have your address, destination, and payment method prepared.
  • Communicate Clearly: Inform the driver about your preferred route or any special requirements.
  • Rate and Review: Sharing feedback helps maintain service quality and assists future travelers.

 


The Future of Taxi Services in Saudi Arabia

With rapid urbanization and increasing tourism, taxi services are evolving to meet modern demands. Features like ride-hailing apps, electric taxis, and AI-powered route optimization are becoming standard. Companies like Umrah Taxi are at the forefront of this innovation, combining technology with a deep understanding of local travel needs.

The search for “taxi near me” will soon be more than just finding a ride—it will be about accessing a seamless travel experience tailored to your exact requirements.

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 11 hr atrás

Madinah to Makkah Taxi Fare & Taxi Taif Ziyaratl – Complete Travel Guide with Saudia Taxi

 

Traveling between the holy cities and sacred locations of Saudi Arabia is one of the most meaningful journeys for pilgrims and visitors. Whether you are performing Umrah, planning Ziyarat, or visiting historical Islamic landmarks, reliable transportation plays a crucial role. Among the most searched travel needs today are Madinah to Makkah taxi fare and Taxi Taif Ziyaratl, especially for travelers who want comfort, safety, and religious convenience.

Saudia Taxi provides professional taxi services across Saudi Arabia, specializing in long-distance routes and Ziyarat travel for pilgrims and families. This guide explains taxi fares, routes, vehicle options, travel times, and complete details about Taif Ziyarat using private taxis.

 


Madinah to Makkah Taxi Fare – Updated Travel Insights

The journey from Madinah to Makkah Taxi Fare is one of the most common routes for Umrah pilgrims. The distance between Madinah and Makkah is approximately 450 kilometers, and the road journey usually takes 5 to 6 hours, depending on traffic and rest stops.

Why Choose a Taxi from Madinah to Makkah?

A private taxi is the most comfortable option compared to buses or shared transport. With Saudia Taxi, travelers enjoy:

  • Door-to-door pickup and drop-off
  • Flexible travel time
  • Air-conditioned vehicles
  • English & Urdu-speaking drivers
  • Space for luggage and Zamzam water
  • No waiting for other passengers

This makes taxi travel ideal for families, elderly pilgrims, and women travelers.

 


Madinah to Makkah Taxi Fare Breakdown

The Madinah to Makkah taxi fare depends on several factors such as vehicle type, number of passengers, and season. Below is a general fare range to help travelers plan their journey:

Estimated Taxi Fare from Madinah to Makkah

  • Sedan (1–3 passengers): SAR 900 – SAR 1,100
  • SUV (4–6 passengers): SAR 1,100 – SAR 1,300
  • Hiace / Van (7–12 passengers): SAR 1,300 – SAR 1,600
  • Luxury Car: SAR 1,500 – SAR 1,800

💡 Prices may vary during Ramadan, Hajj season, or peak Umrah days.

Saudia Taxi offers transparent pricing with no hidden charges, ensuring peace of mind for pilgrims.

 


What Is Included in Madinah to Makkah Taxi Fare?

When booking with Saudia Taxi, the fare usually includes:

  • Fuel charges
  • Driver charges
  • Toll fees
  • Comfortable seating
  • One or two short rest stops
  • Direct drop at Makkah hotel or Haram area

This makes the Madinah to Makkah taxi fare cost-effective compared to arranging multiple transport options.

 


Popular Pickup & Drop-Off Locations

Madinah Pickup Points:

  • Masjid an-Nabawi hotels
  • Madinah Airport
  • Markazia area
  • Railway station hotels

Makkah Drop-Off Points:

  • Haram hotels
  • Aziziyah
  • Misfalah
  • Ibrahim Khalil Road
  • Clock Tower area

 


Best Time to Travel from Madinah to Makkah by Taxi

Early morning or late evening travel is recommended for a smooth journey. These times help avoid highway traffic and allow pilgrims to reach Makkah comfortably before prayer times.

 


Taxi Taif Ziyaratl – Explore the Sacred & Historical Sites of Taif

Taif is a city of deep Islamic history and natural beauty, located about 85 km from Makkah. Many pilgrims search for Taxi Taif Ziyarat to visit historical Islamic locations associated with the life of Prophet Muhammad ﷺ.

A private taxi is the most convenient way to perform Taif Ziyarat, especially for families and groups.

 


Why Choose Taxi Taif Ziyaratl with Saudia Taxi?

  • Full-day private taxi
  • Flexible Ziyarat schedule
  • Knowledgeable local drivers
  • Comfortable vehicles for mountain roads
  • Stops at all major Ziyarat places
  • Return drop to Makkah or Jeddah

Saudia Taxi ensures respectful, peaceful, and well-organized Ziyarat experiences.

 


Important Taif Ziyarat Places Covered by Taxi

1. Masjid Addas

A highly significant site where Prophet Muhammad ﷺ rested and was offered grapes by Addas after the painful Taif incident.

2. Shubra Palace

A historical palace reflecting the culture and history of Taif, often visited during Ziyarat trips.

3. Masjid Abdullah bin Abbas (RA)

One of the most important mosques in Taif, where the great companion Abdullah bin Abbas (RA) is buried.

4. Wadi al-Muharram (Miqat Qarn al-Manazil)

A major Miqat point for pilgrims intending Umrah from Taif.

5. Al-Hada Mountain Road

A scenic mountain route offering breathtaking views, perfect for rest and photography.

 


Taxi Taif Ziyaratl Fare Details

The cost of Taxi Taif Ziyaratl depends on duration and vehicle type:

Estimated Taif Ziyarat Taxi Fare

  • Sedan: SAR 500 – SAR 700
  • SUV: SAR 700 – SAR 900
  • Hiace / Van: SAR 900 – SAR 1,200

This fare usually includes:

  • Up to 8–10 hours Ziyarat time
  • Multiple stops
  • Waiting time at Ziyarat sites

 


Who Should Book Taxi Taif Ziyaratl?

  • Umrah pilgrims
  • Religious groups
  • Families with elders
  • Visitors interested in Islamic history
  • Tourists seeking a peaceful mountain journey

Private taxis allow you to perform Ziyarat without rush, unlike group tours.

 


Madinah, Makkah & Taif – One Complete Taxi Solution

Saudia Taxi provides complete coverage across:

  • Madinah to Makkah taxi
  • Makkah to Madinah taxi
  • Makkah to Taif Ziyarat
  • Taif to Makkah return taxi
  • Airport pickups & drops
  • Hotel-to-hotel transfers

This makes Saudia Taxi a trusted choice for pilgrims visiting multiple cities.

 


Why Saudia Taxi Is Trusted Across Saudi Arabia

  • Licensed drivers
  • Clean, modern vehicles
  • Fixed pricing
  • 24/7 availability
  • Customer-focused service
  • Experience with pilgrims

Thousands of travelers rely on Saudia Taxi for safe and stress-free religious journeys.

 


Travel Tips for Madinah to Makkah & Taif Ziyarat Taxi

  • Book your taxi in advance during Umrah season
  • Carry water and snacks for long journeys
  • Inform driver about elderly passengers
  • Keep Ihram requirements in mind when traveling from Taif Miqat
  • Save driver contact for return trips
Comentarios (0)1
Inicie sesión o regístrese para continuar
Anuncio
· 12 hr atrás

Reliable CA Coaching academy near me in Bangalore – KS Academy

 

Bangalore is a city of ambition. From technology and startups to finance and professional education, it attracts students who are serious about building strong careers. For commerce students aiming to become Chartered Accountants, choosing the right guidance can make all the difference. This is where KS Academy has steadily earned its reputation as a reliable and results-oriented CA coaching academy in Bangalore.

Chartered Accountancy is not just an exam—it is a journey that tests consistency, discipline, and conceptual clarity. KS Academy understands this journey deeply and designs its coaching approach around the real challenges students face at every stage.

 

A Learning Environment Built for CA Aspirants

Unlike generic coaching setups, KS Academy functions as a focused CA coaching institute in Bangalore, built exclusively around the CA curriculum. The environment encourages serious study, structured learning, and continuous improvement. From day one, students are guided to understand why a concept works, not just how to solve a problem.

This clarity-first approach becomes especially valuable in subjects like Accounting, Costing, Taxation, and Law—areas where deep understanding is essential for long-term success.

 

Faculty That Makes a Difference

One of the biggest strengths of KS Academy is its teaching team. Each faculty member brings subject expertise along with practical insight, helping students relate textbook concepts to real-world applications. Classes are interactive, engaging, and designed to make even complex topics approachable.

This faculty-driven approach is a major reason many students consider KS Academy a dependable CA coaching academy in Bangalore. Doubts are addressed patiently, revision is taken seriously, and no student is left behind due to speed or syllabus pressure.

 

Structured Programs for Every CA Level

KS Academy offers comprehensive coaching for:

  • CA Foundation
  • CA Intermediate
  • CA Final

Each program follows a well-planned academic structure aligned with the latest ICAI syllabus. The curriculum is broken down into manageable phases—concept learning, practice sessions, revision cycles, and mock exams—so students can progress steadily without feeling overwhelmed.

For students searching for a disciplined and reliable CA coaching class in Bangalore, this structured flow brings clarity and confidence to their preparation.

 

Classroom and Online Learning Flexibility

Understanding that every student’s situation is different, KS Academy provides both classroom coaching and online learning options. Classroom sessions create a focused, peer-driven environment, while online classes allow flexibility for students balancing college, articleship, or personal commitments.

Recorded sessions, revision classes, and test discussions ensure that learning continues beyond the classroom. This adaptability makes KS Academy stand out among modern CA coaching institutions in Bangalore.

 

Focus on Practice, Testing, and Feedback

Success in CA exams depends heavily on practice and performance analysis. KS Academy conducts regular tests, mock exams, and revision sessions that closely match ICAI exam patterns. Detailed feedback helps students identify gaps, improve time management, and refine exam-writing techniques.

This continuous evaluation system ensures students are exam-ready—not just syllabus-complete.

 

More Than Coaching: A Support System

What truly sets KS Academy apart as a CA coaching centre in Bangalore is the mentorship culture. Faculty members and academic coordinators actively monitor student progress and provide guidance when motivation dips or pressure builds.

Study hall facilities, disciplined schedules, and a positive learning atmosphere further support students during crucial preparation months. It’s an ecosystem designed not just to teach, but to sustain long-term focus.

 

Why Students Choose KS Academy in Bangalore

Students often choose KS Academy because it offers:

  • Strong conceptual teaching
  • Experienced and supportive faculty
  • Structured CA-focused programs
  • Flexible learning modes
  • Regular assessments and feedback
  • A disciplined, success-oriented environment

These qualities have helped KS Academy build trust among CA aspirants across Bangalore.

 

Conclusion: A Reliable Partner in Your CA Journey

Becoming a Chartered Accountant is one of the most demanding professional paths—but with the right guidance, it becomes achievable. KS Academy has positioned itself as a dependable CA coaching institute in Bangalore by combining academic rigor, student-focused mentoring, and a deep understanding of the CA examination system.

For students looking for a CA coaching academy in Bangalore that values clarity over shortcuts and consistency over shortcuts, KS Academy stands as a strong choice. It doesn’t promise instant success—it builds it, step by step.

If your goal is not just to clear exams but to grow into a confident CA professional, KS Academy can be the foundation on which that success is built.

 

visit now -> https://www.ksacademybangalore.in/

Mail        -> ksacademy23@gmail.com

Address -> 15th Cross Rd, opp. Veena Stores, Malleshwaram, Bengaluru, 560003

 

Other Locations:

KS Academy Chennai : https://ksacademy.co.in/

KS Academy Hyderabad : https://ksacademyhyderabad.in/

KS Academy Coimbatore : https://www.ksacademycoimbatore.com/

KS Academy Trichy : https://www.ksacademytrichy.com/

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 19 hr atrás

Defining REST API using iris-rest-api-template - Need guidance

Defining my first REST API within InterSystems using iris-rest-Api-template as a basis and I am seeing if someone could provide me some guidance to see if I can make it work.  

In some of my other posts, I have been trying to come up with a way for our Enterprise Application Development team which works with .Net to build Applications to make a REST call to our instance of InterSystems to query some of the Cache Tables we have defined. 

Using the iris-rest-api-template, I have created the osuwmc.DataLookup.REST.Base.cls

Class osuwmc.DataLookup.REST.Base Extends %CSP.REST [ System = 3 ]
{

Parameter CHARSET = "utf-8";
Parameter CONTENTTYPE = "application/json";
Parameter HandleCorsRequest = 1;
Parameter PAGESIZE As INTEGER = 50;
ClassMethod OnPreDispatch(pUrl As %String, pMethod As %String, ByRef pContinue As %Boolean) As %Status
{
  SET tSC = $$$OK
  TRY {
    
    // Set the return type according to the Accept type in the request. Default is application/json.
    IF ('..AcceptsContentType(..#CONTENTTYPEJSON)) {
      SET tSC = ..ReportHttpStatusCode(..#HTTP406NOTACCEPTABLE), pContinue=0
      QUIT
        } ELSE {   
      // This always returns json
      SET %response.ContentType=..#CONTENTTYPEJSON
        }
        
        
        // read request object into %DynamicObject format
    IF ((pMethod'="POST") && (pMethod'="PUT")) || (%request.Content="") {
      SET %request.Content = {}
    } ELSE {
      IF '$isobject(%request.Content) {
        SET tContent = %request.Content
      } ELSE {
        SET tContent = ""
        WHILE '%request.Content.AtEnd {
          SET tContent = tContent_%request.Content.Read()
        }
      }
      IF (tContent="") {
        SET %request.Content = {}
      } ELSE {
        SET tContent = $zconvert(tContent, "I", "UTF8")
        SET %request.Content = ##class(%Library.DynamicObject).%FromJSON(tContent)
      }
    }
        
  } CATCH ex {
    SET tSC = ex.AsStatus()
  }
  QUIT ##class(%iKnow.REST.Base).%ErrorHandler(tSC, .pContinue)
}

ClassMethod %ProcessResult(pStatus As %Status = {$$$OK}, pResult As %DynamicObject = "") As %Status [ Internal ]
{
  #dim %response As %CSP.Response
  SET tSC = $$$OK
  IF $$$ISERR(pStatus) {
    SET %response.Status = 500
    SET tSC = ..StatusToJSON(pStatus, .tJSON)
    IF $isobject(tJSON) {
      SET pResult = tJSON
    } ELSE {
      SET pResult = { "errors": [ { "error": "Unknown error parsing status code" } ] }
    }
  } 
  ELSEIF pStatus=1 {
    IF '$isobject(pResult){
      SET pResult = {
      }
    }
  }
  ELSE {
    SET %response.Status = pStatus
    SET error = $PIECE(pStatus, " ", 2, *)
    SET pResult = {
      "error": (error)
    }
  }
  
  IF pResult.%Extends("%Library.DynamicAbstractObject") {
    WRITE pResult.%ToJSON()
  }
  ELSEIF pResult.%Extends("%JSON.Adaptor") {
    DO pResult.%JSONExport()
  }
  ELSEIF pResult.%Extends("%Stream.Object") {
    DO pResult.OutputToDevice()
  }
  
  QUIT tSC
}

ClassMethod ReportHttpStatusCode(pHttpStatus, pSC As %Status = {$$$OK}) As %Status
{
  Set %response.Status=pHttpStatus
  
  If $$$ISERR(pSC) Do ..outputStatus(pSC)
  /*
  If (+pHttpStatus>=400) {
    Set %response.ContentType = "application/json"
    SET pResult = {
      "error": ($PIECE(pHttpStatus, " ", 2, *))
    }
    Return ..%ProcessResult($$$OK, pResult)
  }*/
  Return $$$OK
}

}

and the osuwmc.DataLookup.REST.TableLookup

Class osuwmc.DataLookup.REST.TableLookup Extends osuwmc.DataLookup.REST.Base
{

Parameter Version = "1.0.0";
Parameter GlobalName = "^OSUWMCDataLookup.TableLookup";
XData UrlMap [ XMLNamespace = "http://www.intersystems.com/urlmap" ]
{
<Routes>  
    <!-- Server Info -->
    <Route Url="/" Method="GET" Call="GetInfo" Cors="true"/>
    <Route Url="/info" Method="GET" Call="GetAllEpicDepartments" Cors="true"/>
    </Routes>
}

ClassMethod GetInfo() As %Status
{
    SET version = ..#Version
    SET info = {
      "version": (version)
    }
    RETURN ..%ProcessResult($$$OK, info)
}

ClassMethod GetAllEpicDepartments() As %Status
{
    SET tSC = $$$OK
    set sql = "SELECT ID as DepartmentID, Abbr, Name, ExternalName, PhoneNumber, ApptPhone, FaxNumber, Address1, Address2, City, Zip, Specialty, RevLocID, RevLocName, BuildingCategoryID, BuildingName, DepCategoryTypeID, DepType, Center, EAFParent, CostCenter FROM osuwmc_Epic_Clarity.DepartmentMaster"
    do ##class(%ZEN.Auxiliary.jsonSQLProvider).%WriteJSONFromSQL(,sql)
    return tSC
}

ClassMethod GetEpicDepartment(ID As %String) As %Status
{
    SET tSC = $$$OK
    set sql = "SELECT ID as DepartmentID, Abbr, Name, ExternalName, PhoneNumber, ApptPhone, FaxNumber, Address1, Address2, City, Zip, Specialty, RevLocID, RevLocName, BuildingCategoryID, BuildingName, DepCategoryTypeID, DepType, Center, EAFParent, CostCenter FROM osuwmc_Epic_Clarity.DepartmentMaster WHERE ID = ?"
    do ##class(%ZEN.Auxiliary.jsonSQLProvider).%WriteJSONFromSQL(,,sql,ID)
    return tSC
}
ClassMethod SwaggerSpec() As %Status
{
  Set tSC = ##class(%REST.API).GetWebRESTApplication($NAMESPACE, %request.Application, .swagger)
  Do swagger.info.%Remove("x-ISC_Namespace")
  Set swagger.basePath = "/crud"
  Set swagger.info.title = "REST API to Access and Query OSUWMC Cache Tables"
  Set swagger.info.version = "0.1"
  Set swagger.host = "intengtest.osumc.edu"
  Return ..%ProcessResult($$$OK, swagger)
}

}

I defined the Web Application as /api/mgmnt/<namespace>/TableLookup with the osuwmc.DataLookup.REST.TableLookup as the Dispatch Class.

When I try to execute the REST call using POSTMAN, "msg": "ERROR #8754: Unable to use namespace: TABLELOOKUP."

If I try to use the sample class, I get a message saying that "The request URL was not found on the server" or a "404 Not Found"

I checked the Web Gateway to make sure the application was defined.

So, am I missing a step somewhere?

1 nuevo comentario
Comentarios (1)1
Inicie sesión o regístrese para continuar