Code Monkey home page Code Monkey logo

mule4-mcd-level2's Introduction

MuleSoft Certified Developer - Level 2

N|Solid N|Solid gif (1)

This repo is part of Udemy online course to Learn concepts and practice for the MCD - Level 2 exam with hands-on exercises and practice tests

This repo contains starter and solution code for all hands-on exercises

The course is divided into 8 sections starting from Section 0 to Section 7

  • Section 0 - Setting up Local System and Backend Services
  • Section 1 - Project Structure, Deployment Strategy & Development Best Practises
  • Section 2 - Mule Integration - API Development, Error Handling, Caching Strategy
  • Section 3 - Asynchronous Processing, Logs, Tracing, Correlation ID & Validation
  • Section 4 - Mule Application Health Checks and Custom Connector Development
  • Section 5 - Custom API Policy Development, Offline Policies Management
  • Section 6 - Consuming SOAP Web Services using TLS Certificates
  • Section 7 - MUnit Testing

Import Mule Application into Anypoint Studio

  • Each HANDS-ON exercise is numbered and the solution is available in same numbered directory. For example,
    • Section 1 has - 1.1, 1.2, 1.3 ...... 1.16
    • Section 4 has - 4.1, 4.2, 4.3 ...... 4.8
  • For importing HANDS-ON 1.15, Go to Section 1 >> 1.15
  • Each directory can have 1 or many files/directories. All these are required to run that specific HANDS-ON exercise. For example,
    • master-bom
    • parent-pom
    • mule-app
    • settings.xml
  • Before you install or import,
    • MAKE SURE to change the GROUPID to your Anypoint Platform ORGANIZATION_ID whereever applicable in all the files.
    • MAKE SURE that the required ARTEFACTS like RAML are available in your Anypoint Exchange
    • Use your CLIENT_ID and CLIENT_SECRET in settings.xml
  • Install master-bom & parent-pom to your local Maven repo
    • mvn clean install
  • Make changes to your settings.xml
  • Import mule-app to your Anypoint Studio
    • File >> Import >> Anypoint Studio >> Anypoint Studio project from File System
    • All these solutions were developed & exported in Anypoint Studio 7.11
    • While importing them in a latest Studio like 7.12, it will prompt to update the workspace
      • Unselect - Update mule-maven-plugin version for this project
      • Unselect - Add Anypoint Exchange v3 repo for this project
      • Click CANCEL >> Click YES
  • Application will be imported, check for any Problems and fix them before running.

Studio-Update-Workspace Studio-Update-Workspace-2

mule4-mcd-level2's People

Contributors

sidd-harth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mule4-mcd-level2's Issues

Hands ON 2.4 - Oauth Issues

Hi Siddharth!
First of all thank you for taking the time to teach, your course is very well designed and all the steps are very clear.

I would like to report you that the authentication for reservations API is not working.

From Studio I'm getting 404 Error

Global.xml config

<os:object-store name="oauthTokenObjectStore" doc:name="Object store" doc:id="73b7eefd-95c8-4308-9ee4-45fa7c32c15e" entryTtl="60" entryTtlUnit="MINUTES" expirationInterval="60" />
	<http:request-config name="bookingDataByBID" doc:name="HTTP Request configuration" doc:id="72e7570b-e2d6-47d2-bae2-4f31e6de555a" basePath="/booking" >
		<http:request-connection protocol="HTTPS" host="onlineman477-eval-prod.apigee.net" port="443" >
			<http:authentication >
				<oauth:client-credentials-grant-type clientId="KZ25TpHNeppVOmwtKpD6jQAjnq4vrLG1" clientSecret="CYBpVYhSeqSy4GSR" tokenUrl="https://onlineman477-eval-prod.apigee.net/owasp-oauth/token" >
					<oauth:token-manager objectStore="oauthTokenObjectStore" />
				</oauth:client-credentials-grant-type>
			</http:authentication>
		</http:request-connection>
	</http:request-config>

Received Error

"Error response when calling token URL 'https://onlineman477-eval-prod.apigee.net/owasp-oauth/token'. Response was:
DefaultHttpResponse {
  responseStatus: 404 (Not Found),
  headers: MultiMap{[date=[Thu, 09 May 2024 12:56:39 GMT], content-type=[text/html], content-length=[344], connection=[keep-alive], etag=["60adabf8-158"], x-frame-options=[DENY], x-xss-protection=[1], x-content-type-options=[nosniff], strict-transport-security=[max-age=86400], content-security-policy=[frame-ancestors 'none']]}
}
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
</body>
</html>
"

From POSTMAN I'm getting 502 Bad Gateway

image

From CURL I'm getting 502 Bad Gateway

I'm using curl command placed into hands-on-solutions/Section2/2.4/OAuth_Details.txt

โžœ  --request POST 'https://onlineman477-eval-prod.apigee.net/owasp-oauth/token' \
--header 'Authorization: Basic S1oyNVRwSE5lcHBWT213dEtwRDZqUUFqbnE0dnJMRzE6Q1lCcFZZaFNlcVN5NEdTUg==' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials'
<!DOCTYPE html>
<html>
<head>
<title>Error</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>An error occurred.</h1>
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
</body>
</html>

Hope to help to fix and improve the experience!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.