Trending February 2024 # Learn How To Create And Use Underline In Indesign? # Suggested March 2024 # Top 8 Popular

You are reading the article Learn How To Create And Use Underline In Indesign? updated in February 2024 on the website We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested March 2024 Learn How To Create And Use Underline In Indesign?

Introduction to InDesign underline

Adobe InDesign is a powerhouse of tools and functions. These tools and functions are mostly comprehended in terms of texts/character formatting, layout formatting, image formatting and page formatting. An InDesign underline option comes in the sub category of text and character formatting. Unlike any other vector graphics program, Adobe InDesign comprises with a bunch of Underline and strikethrough options which can be considered while using type tools.

How to Create and Use Underline in Indesign?

Underlining a text may be useful in highlighting that particular word or sentence in a paragraph. Content creators, editors, book designers and graphic designers generally use underlining tool for headings, tittles, captions or texts that needs a stand out amongst the other phrases.

Start Your Free Design Course

3D animation, modelling, simulation, game development & others

The user can create underline and strikethrough effects by using two different methods that are available within Adobe InDesign. These functions may be small and negligible but they hold adequate importance in creating standout texts within multiple pages for books and magazines.

Method 1

In this method, we will learn the most basic technique to use and apply underline and strikethrough on a text. Also, we will learn the detailed options given in the software for underline and strikethrough effects.

Following are the steps we should follow:-

Launch Adobe InDesign

    Create a new document as shown in the image below

      Now, go to the Type Tool

        Create a text frame and write a sample text as shown in the image below.

            A new dialog box will appear for CHARACTER editing and modifying.

                  After this, we will get a new dialog box for underline options.

                    In this panel, we can change/ edit the settings for underlining a particular text. Please remember to select that text.

                        Now, in this panel, we can change the weight (the thickness of the stroke) of the underline, Offset (Gap between the text and stroke), Color of the stroke, Gap Color of the Stroke.

                            Next, we can edit the Tint Color and Gap Tint color of the stroke as well.

                                  The Strikethrough options and settings are similar to the Underline options given in the CHARACTER panel.

                                    Finally, by using the above procedure we can change the underlining and strikethrough of the texts.

                                    Method 2

                                    So, as mentioned above in this method we will use the line tool and pen tool to create a stroke under the sample text. Using these tools will help the user in creating creative strokes with some realistic effects.

                                    Following are the steps we should follow:-

                                    Launch InDesign and create a new document

                                            Next, We can also change the color of the stroke as shown below

                                                A new dialogue box will appear where we can change and select the stroke style. We can also add the stroke style as per our requirement.

                                                  Next, we can add effects by using the EFFECTS option in the control. We have many options such as Drop Shadow, Inner glow, Bevel and more that can be applied on the strokes.

                                                    The user can also control the opacity of the strokes as required.

                                                    This method provides ample creative options for the user that is not available with the direct Underline options in the Type tool. It’s just that we create another object as a stroke and place it under the text we need.


                                                    Summarizing the article, we can say that InDesign has numerous mechanisms for creating a particular effect. It has tools and functions for both beginners as well as professionals. Adobe InDesign is embedded with multiple options for Underline tools.

                                                    Recommended Articles

                                                    This is a guide to InDesign underline. Here we discuss that InDesign has numerous mechanisms for creating a particular effect. You may also have a look at the following articles to learn more –

                                                    You're reading Learn How To Create And Use Underline In Indesign?

                                                    Learn How To Code And Program

                                                    From 7-22 October 2023 it’s EU Coding Week (the astute among you will note this is in fact two weeks) and this makes it is an ideal time to learn to code. You can find out more on the website and you can check Apple’s website as there will be free coding sessions at Apple stores for the same period (with thousands to follow over the next six months).

                                                    What language should you learn?

                                                    With so many different programming languages and, indeed, types of programming, the first consideration is which languages you should invest your time and effort in learning.

                                                    Do you want to create apps for smartphones and tablets? Would you like to design and build websites? There’s even the programming of the embedded computers which are built into everything from your TV to your car. Each area requires radically different code, so while we can’t decide which is best for you, we’ll explain where to start looking.

                                                    If you expect to be learning to code in full-time education, there’s a good case for working with the languages most commonly used in schools. Alternatively, for those who hope to employ their coding skills in the workplace, we’ll give some thought to which languages are used in industry for various applications.

                                                    Just knowing which languages to learn isn’t enough, though. So we’ll also provide some guidance on what software you need in order to learn each language and which resources and courses will help you in your quest.

                                                    Resources for kids and teens

                                                    There are a few tools specifically aimed at helping young people get into coding. One is the BBC micro:bit, which is being given to students in Year 7 for free, but which you can also buy for £15. You can code for it using a variety of tools and languages including MicroPython and JavaScript.

                                                    There are also plenty of coding games and toys for kids, ranging from kid-friendly DIY computer kits like the Kano to programmable robots like the Sphero SPRK+. These generally build games into the way they teach coding to help keep kids entertained as they learn.

                                                    Another option is Apple’s Swift programming language. Apple has released a  free iPad app called Swift Playgrounds which aims to teach kids to code in Swift using a fun game-like environment. It works on all iPad Air and Pro models, the regular iPad from 2023, plus iPad mini 2 and later. They will also need to be running iOS 10 or later.

                                                    Programming by blocks

                                                    One of the two most commonly used programming languages in schools is Scratch, which was developed by the Lifelong Kindergarten Group at the MIT Media Lab. Unlike most languages, Scratch programs are created by linking blocks together on screen.

                                                    This allows students to learn about the structure of programs and the concept of algorithms but without having to learn syntax, that is the exact textual format of an instruction in a conventional language. In addition, because the blocks resemble jigsaw pieces, their shapes reduce the likelihood of blocks being connected together when the end result would be nonsensical.

                                                    Despite this unconventional approach, Scratch genuinely is a procedural language, as are most of the popular computer languages. In other words, it allows the programmer to define a sequence of operations for the computer to carry out.

                                                    Scratch is often used in primary schools but it would be unwise to set an upper age limit, above which a student should learn a conventional language instead. It’s also used in secondary schools, indeed it could be beneficial for anyone who has never coded before, while recognising that it will always be a stepping stone to the types of language that are used in business and industry.

                                                    Scratch is available free of charge. You can either download a version to use offline or you can create programs directly on the website.

                                                    Another block-based language that is gaining popularity is Google Blockly – see our guide to getting started with Blockly. The BBC micro:bit also uses a block-based programming environment called Microsoft Block Editor.

                                                    The BASIC alternative

                                                    When there was last a big push on teaching computing in schools, BASIC was the language of choice since it was available on the BBC Micro as well as on many of the cheaper home computers of the time. Although it was designed as an educational language, though, BASIC’s continued use for learning to programme is the subject of some debate.

                                                    Some would argue that it’s an old-fashioned language that will get students into habits they’ll find it hard to break when they start to learn newer languages. Others say that, because it’s such a simple language, it better illustrates the way processors work than more modern languages and is useful because it provides this insight.

                                                    Pragmatically, BASIC is still taught in schools quite extensively because it’s more familiar to a large number of teachers. What’s more, in contrast to the “bad habits” argument, there are suggestions that it’s useful to learn different programming paradigms, something that studying newer languages alone won’t provide. All of this seems to suggest that BASIC is still a good language to learn, at least as part of the mix.

                                                    In its 50 years, BASIC has spawned a huge number of dialects. Newer versions of BASIC include concepts such as block structure and object orientation but there’s a lot to be said for sticking with a version that is true to its roots.

                                                    For a fairly basic BASIC, but with extensions to carry out graphics programming, SmallBASIC (not the same as another variant of the same name published by Microsoft) would be a good choice – it’s freely available from

                                                    Note that Microsoft’s Visual Basic (formerly called Visual Basic .NET and commonly still referred to as such), is very different from BASIC of old. Indeed the current version of Visual Basic is object oriented (which we’ll explain in the next section) and is another possible contender if you want to learn this type of language.

                                                    Object-oriented languages

                                                    The second of today’s most popular languages in education is Python. Unlike BASIC, this adheres to current thinking in programming such as block structure and object orientation. As such, it’s similar to C++ and C# which are widely used in industry (together with their predecessor C), although Python is generally considered as easier to learn.

                                                    We’re not going to delve into exactly what object orientation actually means – after all that will be something you’d become familiar with if you were to learn Python – but suffice to say that expertise in this type of language would be a very useful skill. You can download a Python interpreter from

                                                    If you’re interested in learning Python, there are numerous online courses available including the Complete Python Bootcamp and The Complete Python Developer Course.

                                                    With the explosive growth in the uptake of Android smartphones and tablets, it would be quite natural to want to learn to create your own Android apps, a large majority of which are written in Java (not the same as JavaScript, which we discuss later). In addition, Android’s popularity means that learning this language could be a good move from the viewpoint of career prospects.

                                                    This is another object-orientated language so would be a logical progression from Python or, if you don’t fancy learning two similar languages, an alternative to Python, albeit one that’s not as commonly used in schools. If you want to learn Java you have several options. The  Java Development Kit (JDK) is freely available and runs on your PC.

                                                    However, if you specifically want to try your hand at Android app development, you’ll need Android Studio and, in addition to the Java language, you’ll need to learn about the Android environment. You can

                                                    Most of today’s most popular languages are object-oriented. Although the syntax varies between the different languages, having learned one such language you’ll be in a good position to migrate to another. If you want to discover which are the most commonly used in industry today, take a look at the Ttiobe index. 

                                                    Web programming – HTML and CSS

                                                    Coding for the web is very different from everything we’ve seen so far since, at its most basic, it uses a completely different type of language. Even so, it’s a vital skill to learn.

                                                    To create the simplest of web pages you’d use a language called HTML (and ideally the latest version, HTML5) which stands for HyperText Markup Language. As a markup language, it doesn’t provide a list of instruction that are executed in sequence as procedural languages do but, instead, it describes how text and images are displayed on screen.

                                                    This is just a simple example and it gets more involved when you start to add graphics, tables and links, but the concept of tags applies throughout.

                                                    Most web browsers will allow you to see the HTML source code that generated the page you’re viewing. However, going beyond this, dedicated HTML editors (e.g. CoffeeCup Free HTML Editor from

                                                    In addition to writing HTML code, unless you’re working as part of a multi-disciplinary team, you’ll also need some graphics design skills. While we need to mention this to present the full picture, it would be stretching a point to refer to this aspect of web design as coding.

                                                    A webpage created using HTML alone will be static, but other languages allow you to create dynamic content. The very first step in this direction is the use of another language called CSS which stands for Cascaded Style Sheets.

                                                    We’ve seen how text can be turned into a header in HTML and, in the simplest of cases, the browser will use its own default font, size and colour for each level of heading. HTML does allow you to define these characteristics yourself but CSS provides a better way.

                                                    A separate CSS file defines exactly how each of the heading levels appears, making it easy to alter the appearance of an HTML document purely by specifying a different CSS file. Using a CSS file, every page on a company website can be given the same corporate look and feel without having to repeat the formatting information in every single HTML file.

                                                    The next stage in making web pages dynamic is to add code that responds to the user’s actions. This sort of dynamic code is executed, for example, when you login to a website.

                                                    While we’re not going to get too involved in this here, it’s important to recognise that this involves the use of procedural languages, i.e. the ones that define sequences of instructions, rather than markup languages like HTML or style sheet languages like CSS. In particular, a language called JavaScript (which is quite different to Java that we looked at earlier) is often used to define code that runs in the browser while PHP is used to define code that runs on the remote server that hosts your website.

                                                    There are hundreds of online HTML courses, including Build Responsive Real World Websites with HTML 5 and CSS3, Learn to Build Beautiful HTML5 and CSS3 Websites in One Month, and Learn Web Designing & HTML 5/CSS3 Essentials in Four Hours.

                                                    Learning Resources

                                                    You don’t have to go it alone if you want to learn to code as there’s plenty of help out there. Many would-be programmers will already be learning to code at school, college or university but there are plenty of resources, either for those not in full-time education, or for those who want to augment their formal education.

                                                    The most easily accessible are the myriad online programming courses for just about any modern language you could imagine. As well as Googling for your preferred language, be sure to take a look at Codecademy. You should also check out Udemy, which has a broad range of online courses including plenty for coding.

                                                    Also look at adult education courses at your local colleges because being able to interact with a lecturer and chat with other students makes the learning experience so much easier. While some colleges only provide courses on using computers and software, some do offer evening programming courses at reasonable prices.

                                                    A concept that can benefit students in primary and secondary schools is the coding club. These are free, independent programming clubs for young people, that are led by volunteers and often sponsored by industry, that aim to supplement the teaching given in class.

                                                    Take a look at The Code Club and CoderDojo, both of which tend to concentrate on the languages most used in schools, and  Apps for Good that teaches young people to create apps.

                                                    How To Use Figma Ai Website Builder To Create Stunning Website In Minutes

                                                    Figma is a popular design tool that allows users to build stunning websites, applications, and other digital goods. Figma just developed an AI website builder, making it even easier to design attractive and professional websites without any coding experience.

                                                    In this article, we will show you how to use Figma AI Website Builder to create your own stunning website in minutes.

                                                    Figma AI Website Builder

                                                    Figma AI Website Builder is a Figma plugin that lets users design websites with artificial intelligence (AI). The plugin use artificial intelligence to build a website design based on user input such as the website’s purpose, target audience, and desired style. The generated design may then be customized to the user’s satisfaction and exported to code.

                                                    Although Figma AI Website Builder is a new technology, it has already been used to generate a range of websites such as personal portfolios, commercial websites, and landing pages. The plugin is free to use for personal projects, but commercial use requires a paid membership.

                                                    How to Install the Figma AI Website Builder Plugin?

                                                    The Figma workspace will open.

                                                    Navigate to the “Generate with AI” tab.

                                                    How to Generate a Website Design with AI?

                                                    How to Customize your Website Design?

                                                    Generate a design with Figma AI. You can use the chúng tôi Figma plugin or the Ando AI Copilot for Designers plugin to generate a design based on your prompts.

                                                    Drag and drop your own images onto the design to add them. The photos can also be resized and repositioned.

                                                    To alter the colors of a design element, select it and then use the color picker to select a new color.

                                                    Drag and drop design components to new spots to rearrange chúng tôi may also utilize the alignment tools to align the design components.

                                                    When you’re satisfied with your unique design, you may save it as a Figma file or as a website.

                                                    How to Export your Website to Code?

                                                    Our plugin allows you to import anything you create in Figma or with our tool into Builder. Once imported, you can easily obtain the code for your preferred framework such as React, Vue, Qwik, Svelte, plain HTML/CSS, and many others.

                                                    Features of Figma AI Website Builder

                                                    Generate designs with AI: The plugin generates designs based on your prompts using OpenAI’s GPT-3 API. Your prompts can be as extensive and explicit as you like.

                                                    Convert designs to code: Once you’ve created a design, you can use the plugin to convert it to code. The plugin is compatible with a number of frameworks, including React, Vue, Svelte, and plain HTML/CSS.

                                                    Import from the web: You can also use the plugin to import designs from the web into Figma. This is important if you want to utilize an existing design as a starting point for your own.

                                                    Also Read: 6 Updates from Figma Config 2023.


                                                    Figma AI Website Builder is a powerful tool that can help you to create stunning websites in minutes. The chúng tôi Figma AI plugin makes it easy to generate designs with AI, convert designs to code, and import from web. With Figma AI Website Builder, you can save time and effort while creating a website that is both visually appealing and functional.

                                                    How To Use Create Button On Ps5 Dualsense Controller

                                                    The PlayStation 5 brings an all new controller called the DualSense. It’s an upgrade over the last-gen DualShock 4 controller that shipped with the PS4 and the PS4 Pro and it brings several changes. One of the things you’ll notice is that the ‘Share’ button is now named ‘Create’. This button lets you take screenshots, record clips, and even broadcast content. So, if you’re wondering how to get started with creating game media, here is how to use the ‘Create’ button on your PS5 DualSense controller.

                                                    How to Use the Create Button in DualSense Controller

                                                    There are a few things you can do with the ‘Create’ button on your PS5 controller. Unless you’re a streamer, most often you’ll find yourself using this button to take screenshots or record video clips if you did something cool in a game and want to show it off to people.

                                                    Whatever your use case, getting to know the ‘Create’ button is an important part of getting used to the new DualSense controller.

                                                    In this article, I will tell you how you can use the ‘Create’ button, how you can remap it and more. As always, you can use the table of contents below to skip over to any section in this article.

                                                    Use Create Button to Take Screenshots and Record Clips Take Screenshot

                                                    To take a screenshot with your DualSense controller, just press and hold the ‘Create’ button on your controller. You will soon see a screenshot icon on the top-right corner of your screen with a checkmark.

                                                    Record Clips

                                                    To record a clip of your recent gameplay, simply double-press the ‘Create’ button on your DualSense controller.

                                                    Change Default Clip Recording Time

                                                    If you’re like me, you probably mostly record video clips with the double press of the ‘Create’ button on your DualSense controller. In that case, you may want to adjust the recording time so you can ensure that the gameplay you wanted to record actually gets saved. Here’s how to do that.

                                                    Here, go to ‘Shortcuts for Create Button’ in the ‘Captures’ category.

                                                    Select ‘Length of Recent Gameplay Video Clip’ and change it to the desired value. You can choose between 15 seconds to 1 hour.

                                                    Change Screenshot Format

                                                    By default, the PlayStation 5 captures screenshots in the JPEG format. However, if you want, you can change the screenshot format on PS5 pretty easily. Just follow the steps below:

                                                    Here, select ‘Screenshot Format’ and choose the desired format. You can pick between JPG and PNG.

                                                    Use Create Button to Broadcast Games

                                                    With the PS5 you can also stream your games for anyone to watch. This is great if you’re thinking of getting started with some PS5 streaming. Do note that the PS5 natively supports streaming to Twitch and YouTube.

                                                    You can then choose between Twitch and YouTube for streaming your PS5 games. The first time you do this, you will need to login with your Twitch or YouTube account in order to get started with streaming on those platforms.

                                                    Customise Create Button Key Mapping

                                                    For the most part, the default button mapping for the ‘Create’ button works perfectly fine for me. However, if you don’t feel that way and you’d rather change how the ‘Create’ button works on DualSense controllers, you can do that as well.

                                                    Here, select ‘Shortcuts for Create Button’.

                                                    Select ‘Button mapping’ and choose between ‘Standard’, ‘Easy Screenshots’, or ‘Easy Video Clips’ based on your preferences.

                                                    Use the Create Button to Record Video Clips and Stream PS5 Games

                                                    So that was all about using the Create button on the PlayStation 5’s DualSense controller. While I, personally, don’t stream games to audiences, it’s nice to know the feature is built-in on the PS5. That said, I do take a lot of screenshots and video clips of my games to share with friends, especially when I do something even remotely cool in Call of Duty: Black Ops Cold War.

                                                    How To Use Instagram Reels To Create Or View Videos

                                                    Instagram has finally extended the availability of Instagram Reels to more global markets including India. What is Instagram Reels, you may ask? Well, Instagram Reels is Facebook’s answer to TikTok, a short-video app. Now that we have access to Reels, we will discuss everything you want to know about Instagram’s foray into short video space.

                                                    In this article, we will guide you on how to get started with Instagram Reels, in addition to discovering Reels content and creating Reels to share with your followers.

                                                    What is Instagram Reels

                                                    Are you an Instagram influencer? If your answer is yes, Instagram Reels is simply made for you.

                                                    Three words Short, crisp, and entertaining explain Reels. If you love watching or short, crisp, and entertaining videos from your Favorite ‘social media celebrity,’ then Reels is a perfect place for you. Not just watching, you can also create your own videos, add effects, filters, music from a huge library of songs on Instagram, among other things. That’s what Reels is all about.

                                                    If I still have to describe Instagram Reels in one sentence, Instagram Reels is to TikTok what Instagram Stories is to Snapchat.

                                                    Instagram Reels is also Facebook and Instagram’s attempt to challenge TikTok’s legacy and dominance in the short-video space. Facebook continues to feel threatened by the way TikTok has emerged as one of the most-popular non-gaming apps worldwide in such a short span. For whatever reasons Reels exists, let’s see how you can get started with it.

                                                    How to use Instagram Reels

                                                    Getting started with Instagram Reels involves a two-step approach: Content creation and content consumption

                                                    How to discover and watch Instagram Reels

                                                    Many people struggle at finding ways to watch Instagram Reels in the first place. This article will help you discover Reels, in addition to several ways to interact with it. Getting started with Reels is fairly simple.

                                                    Make sure your Instagram app is up-to-date. Android and iOS users can go to Google Play and App Store, respectively. See if your Instagram app has received an update. Even if you haven’t received an update, you should still see Reels. Keeping the app updated is a good practice, to begin with.

                                                    Now that you are all set, just go to Instagram. There are a couple of ways you can find Reels. First up, the Explore Tab. You can navigate to the Explore tab by tapping the ‘Search’ option at the bottom of your Instagram app. Remember, you don’t have to search for anything. Just tap the magnifying glass icon at the bottom.

                                                    The first video you see in the Explore tab is Reels. You will also find a small watermark for ‘Reels’ at the bottom left corner of the video. That’s how you know you are looking at Reels. Once you tap the video, you will be taken into a whole new world of Instagram Reels. All you need to do is swipe up to watch more Reels.

                                                    Unlike stories, Reels won’t disappear after 24-hours of their creation and they have a permanent place in your Reels tab unless you specifically choose to delete them.

                                                    How to create with Instagram Reels

                                                    Are you looking to post to Instagram Reels? Believe me, it’s a fairly simple process. All you need to do is tap the camera icon. Then, discover and select Reels at the bottom. You will come across a page that says ‘Create With Reels. Record and edit short videos and share them to Explore, where anyone may discover them.’ Sounds fairly simple, right?

                                                    Now, tap the ‘Get Started’ option at the bottom. But before you get started, remember that anyone can create Reels using your original audio if your account is public. Hence, be sure about what you are getting into. If you are privacy conscious, make sure that Instagram profile is set to ‘Private’ under settings.

                                                    Once you tap ‘Get Started,’ you will be taken right into Instagram’s camera viewfinder. There, you can switch between the front and rear camera, depending on what you want to record in your short video. On the left-hand side, you will find different options to edit your video. First things first, hit the record button at the bottom. Once you are done recording a video, you can always edit it the way you want.

                                                    On the left-hand side, you can add music to your videos, select speed, set timer up to 5 seconds, among other things. You can also add several effects and filters to your videos before posting them as Reels.

                                                    Once you have created a Reel, the next task is to share it with your followers. Similar to posts and IGTV videos, you can add a caption and hashtags to Instagram Reels. You can also check the option if you wish to share your Reel to feed. Interestingly enough, Instagram also provides creators with an option to set a custom thumbnail cover to their Reel.

                                                    Ways to interact with Instagram Reels

                                                    What if I don’t see Instagram Reels?

                                                    There are a few reasons why you may not be able to find Reels in your Instagram. First of all, Instagram Reels is currently not available for everyone.

                                                    At the time of writing this article, Instagram Reels is limited to select regions including India, Brazil, France, and Germany. If you are located in a region where Instagram hasn’t launched Reels yet, you won’t be able to access Reels.

                                                    How To Create Webservice In Java?

                                                    Introduction to Webservice in Java

                                                    Nowadays, the Internet has become an inseparable thing from our life. We get service from different web applications over the internet via webservices. So, webservice is inevitable for running Internet activities. Here in this article, we will discuss how to create web services using a java programming language. In this topic, we are going to learn about How to Create Webservice in Java.

                                                    What is Webservice in Java?

                                                    Web service is primarily responsible for communication between different programming languages, which is achieved over the network. For example, PHP can talk with .NET via web services. Basically, it provides inter-language communication through the web. So, those services which are accessible through the network are web services.

                                                    But there is another item called a web application that users can also access. But web applications are significantly different from web services in many aspects. Web applications can be accessed using web browsers, and applications are in simple, readable formats. But web services can access data in JSON, XML, etc.

                                                    Web services use REST or SOAP protocol, whereas web applications follow HTTPs/HTTP protocols. Basically, Web applications use web services for data acquisitions and operations. Web applications are stateful, which means they may store user sessions, but web services do not.

                                                    To summarize, web service and web applications are two different things and serve different purposes.

                                                    Types of Web Services in Java

                                                    Let us have looked at different types of web services:

                                                    1. SOAP

                                                    This is basically based on XML, which Microsoft creates. Since a long, Simple Object Access Protocol is a standard for designing and developing web services. XML provides language independence to SOAP. Therefore, client and server applications are of different languages; SOAP can provide seamless service, ensuring their smooth operability for client and server communications.

                                                    2. REST

                                                    It allows many formats like JSON, XML, etc. This feature gives REST better flexibility. Representational State Transfer (REST) based web services are mostly used nowadays for their simplicity and better integration with web clients. As REST supports JSON, it provides faster and easier parsing than SOAP. Many companies like Google, Amazon, and Yahoo use REST for their web services.

                                                    Java Web Services

                                                    Java has in-built APIs for SOAP and REST; you can create your own web service by using those. For SOAP, java has JAX-WS. For REST, java has JAX-RS. You can write either JAS-WS or JAX-RS based web services as per your requirements. Both JAX-WS and JAX-RS are integrated with standard JDK so that you do not require external jars to get the required libraries. Web Services Description Language (WSDL) is the language by which java web services can interact with other web services or applications.

                                                    1. JAX-WS

                                                    For XML Web Services (JAX-WS), Java API is basically a SOAP-based web service in java for client-server applications. As it is based on SOAP, it purely based on XML. It uses various annotations to ease overall build and deploy for web services in the server. Two styles you can follow while writing JAX-WS: Document style and RPC style

                                                    2. JAX-RS

                                                    Java API for RESTful Web Services is basically a REST-based web service in java for client-server applications. As it is based on REST, it is based on JSON, XML. It also uses various annotations to ease overall build and deploy for web services in the server. Two styles you can follow while writing JAX-WS: RESTeasy and Jersey style.

                                                    How to Create Webservice in Java?

                                                    Here we will use Eclipse IDE for this. You just need to follow step by step as mentioned below with screenshots to create a simple web service in java.

                                                    On the server tab, add one server (here I am using tomcat) in which you will run your web services.

                                                    After that, you can see the server is created in the “Stopped” state; we will start the servers before running our application.

                                                    Now we will start our server.

                                                    Now we will open project explorer for java EE.

                                                    Now we will create our web service.

                                                    Could you give it a name (here, WebAdder)? Follow the below picture and do exactly the same as what is in there.

                                                    You will see your project is added as below

                                                    Now create a class.

                                                    This class will be acting as a web service, so whatever methods we will write inside this class will act as web service methods.

                                                    Step 9: Below is the code:

                                                    package; public class WebAdder { public int addition (int nm1, int nm2){ return nm1+nm2; } }

                                                    Now we want to make the class and method as a web service; for this we need to do the following:

                                                    On the next page, as in the below screenshot, you can see that, addition () method becomes a web service method that will go in the WSDL document.

                                                    Step 13: Then, you will see that two fields will come, num1 and num2, to provide user input.  Refer to the below screenshot:

                                                    Step 14: Give some random integer values to get the result

                                                    Recommended Articles

                                                    This is a guide to How to Create Webservice in Java? Here we discuss what is web services in Java; in the above step by step example, we have shown how to create a web service in java. You may also look at the following article to learn more –

                                                    Update the detailed information about Learn How To Create And Use Underline In Indesign? on the website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!