Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17







Representational state transfer (REST) is an architectural style that gives a coordinated set of constraints to the design of components in a distributed hypermedia system used to design networked applications. RESTful systems typically communicate over Hypertext Transfer Protocol (HTTP) with the same HTTP verbs (GET, POST, PUT, DELETE, etc.) that web browsers use to retrieve web pages and to send data to remote servers. REST interfaces with external systems using resources identified by Uniform Resource Identifier (URI) that can be operated upon using standard verbs.

Share tech news, updates, or what's on your mind.

Sign up to Post

facing a problem to choose best client side framework for localization with jsp?
I have REST API which i need to consume at client side and display it on jsp will it be safe to use spring mvc for client side?
What is the best practice to integrate client-server ?
Important Lessons on Recovering from Petya
LVL 10
Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Someone has suggested that I do a client side only rest api implementation using Angular or another MV* frontend framework. However, it is my understanding that client side only is not safe to have sensitive information flowing back and forth to API, like the API KEY.

Is there an external source known to someone here that could be used to fetching credentials and enforcing CORS - cross-origin resource sharing?

Any tips or best practices or advice on this ask would be appreciated.
I have been teaching a colleague how to create org charts on our own machines. When showing her how to rearrange subordinates,  each time she selects a subordinate pattern with the connectors on the left hand side 2 things happen:
1. the 1st subordinate does not arrange as the rest it's arrow is always bent and forms a different pattern into the manager
2. the distance from the connectors to the shapes is very large
However if she selects any patterns with the connectors on the right of the shapes she gets what I get, and what I expect, uniformity and a tighter space.
We are both using 2016. Please advise. This is her first introduction to Visio so her software is straight out of the box so to speak.
Any ideas gratefully accepted
Hello All,

 I am connecting Exchange 2016 server remotely via PS script to manage the Mailbox rules for users, we have close to 1500 users for which we have to create/modify mailbox rules however when i run the script (from non exchange server) which first import the exchange session to powershell and then execute the commands to manage mailbox rules but it fails after running properly for a few users with the message "Get-InboxRule/ New-InboxRule" is not is not recognized as the name of a cmdlet, function, script file, or operable program". i.e it is trying to execute the command before it imports the exchange cmdlet into powershell, please note when i run it for a few users only it will work properly.

i have also provided delay in the PS script just after import exchange session/cmdlets command but it didn't help.

sample PS script code:

$username = "xyz"

$password = get-content D:\password.txt | convertto-securestring

$cred = new-object System.Management.Automation.PSCredential -argumentlist $username, $password

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri url -Credential $cred

Import-PSSession $Session

Start-Sleep -s 10

Rest commands to Manage Mailbox

 Note- i am using the proper url in -ConnectionUri, here it is not accepting url to be included in body so i am replacing my url with simply a name "url" :)


I have to call the script one by one for each user, hence the one time connection to exchange …
This plugin appears on a site I created as needing updating. I don't recall ever adding it.  Does anyone know what it is for and should I update it?
I am testing the deployment of BITLOCKER via GPO.
For the moment I want to just encrypt the fixed drives without using TPM
I have created a TEST OU and moved a single computer to it.
I have created a GPO and edited/activated the following
Computer Configuration>Administrative Templates>Windows Components>BITLOCKER encryption
I have activated the following
Control the use of BITLOCKER on fixed drives:ACTIVE
Configure the encryption on the hardware level on the fixed drives:ACTIVE
Select the recovery method for recovery of fixed drives using BITLOCKER: ACTIVE
The rest is not configured.
Please note that I have the GUI in french so the translation might not be exact.

I have applied the GPO to the TEST OU
run gpupdate /force on the only computed within the OU
Restarted the computer
The GPO does not seem to apply
manage-bde -status and the bitlocker mmc show the the bitlocker DISACTIVE

What am I doing wrong or what do i need to add?
Please help.
Lenovo ThinkPad with running Windows 10

Are there any compatibilty issues with OPAL drives?

GPO Bitlocker
I'm looking to consume an external Rest API Json data source into a SharePoint Online list column. I have the enterprise version with BCS.  Anyone had luck with this?
I am trying to do something similar to the app specs below.  I'm looking for a sample.  I thought I would use Core MVC,  Ajax and SQL server.  I'm looking for a sample that can show me each step.

It's pretty simple.
1. My app has a form with 4 fields. (Vin, Make, Model, Year)
2. I input Vin in field 1 (Vin)
3. I GET from a third party Rest API JSON by passing the Vin to a URI string. The string will pass Vin I input and an API key
4. The API returns (Make, Model, Year)
5. I want to fill the additional form fields with (Make, Model, Year)
6. Finally, I want to save all fields (Vin, Make, Model, Year), to my Database.

I have been searching for an example similar.  I did find the Weather app example, but it's not complete.  It's just part of it.
Weather example:
I want to build a web app that has a lookup field on my form to get data from a 3rd party Restful api.  It would make a url call to the service like : It passes 1 value.  That call would return 4 values.  Those values would populate my 4 form fields.  Upon save, I would save that data to my database. I planned to use c# and javascript and a MSQL or MySQL db.   I'm open though since it's from scratch.  I'm looking for maybe a HTML, Javascript, DB example or HTML, Javascript, DB, C# or PHP example.  Does anyone have an example of how to do that?
how may possible ways are there to authenticate REST API requests.
please provide few examples
Stressed Out?
Stressed Out?

Watch some penguins on the livecam!

we have rest api in our project, we need to add swagger doc to my project..
provide me the references..
windows 7 and 2008 R2 standard.
i'd like for users to have local profiles on their main computer they use 95% of the time. but then still be able to roam once in a while and use other computers. is that possible? thanks
I need a web service to remain secret and would use CloudFare or a similar technology to prevent DDoS attacks. Aside from DDoS, what other types of attacks are possible?

I assume my web service domain would be totally hidden, but need to be sure there is no other known threat to it.

I love the notion that my REST web service could deliver a complete UI to the client, which that the client could then display complete functionality inside a window, on their own site. What's kind of client/server relationship is this?

Is this what Code-On-Demand does?

Does it return HTML/JavaScript/CSS?

What kind of control is needed on the client to receive this? An iframe?

What kind of problems might there be with this kind of interaction?
Thank you for looking at my question,

I want to emulate a little bit of functionality that is a feature of this site. When the user allows the pointer to rest on a question title a little information box is displayed containing the question title text.

I have a couple of text input fields on an internal web page that will be populated by scanning a data matrix / QR code. The first element from the QR code will be displayed in the text box and other elements written to hidden fields.

When the user mouseover's(?) the text box I would like to display the associated information in a small box that closes on the mouseout event. How do I create the information box please?
I'm trying to implement Rest API for BFM(BargainFindermax) in my project where SOAP calls are already implemented and working. Since Soap does not provide pagination options, I was trying to implement the same flight search functionality with REST "BFM" API.

After integrating the Rest calls through javascript request, Rest calls are working but the returned results in REST "BFM" call are fewer than SOAP "BFM" call. Fare prices returned in REST call are expensive compared to soap results as well. The request body of REST call is exactly same as SOAP i.e. Cabin type, passenger details, origin/destination information, currency etc. are all forming just as it was in previously implemented SOAP call. REST Call does not seem to return any record against "SisterOriginMilage.Number" either.

For some reason, Rest BFM returns different, fewer and costly Itinerary results than SOAP BFM. Any idea what could be the reason for these different results? Any help would be much appreciated.
hello guys, i am trying to parse a array result rest that i got from kraken
i would like to know how can i access a key on the array that was returned by thir api, bellow is the response from the api.
    => Array

    [result] => Array
            [descr] => Array
                    [order] => sell 1.12300000 XBTUSD @ limit 120.00000

            [txid] => Array
                    [0] => OAVY7T-MV5VK-KHDF5X


i would like to extract the txid from the result set i tried this away but did not work
echo array['result']['txid'];

can some one help me out here ?
thanks in advance.
LVL 12

Administrative Comment

by:Andrew Leniart
Hi Rafael,

Welcome to Experts Exchange.

What you have done is made a "Post" here.  To get expert help, you need to "Ask a Question" so that more experts are able to see that you need help. Click the Big blue button near the top of your screen.

Ask a Question

The following link also explains more about asking for help at Experts Exchange...

Hope that's helpful.

EE Topic Advisor
Hi All :)

my issue is most of the updates i try to install on the file server fails with [reverting back changes], i tried so many things with the server: clean boot - system file checker - chkdsk - restoring the image health using DISM from a WIM file - renaming the software distribution folder

i also tried to install the updates in the below link one by one in order from bottom to up with a restart in every installation but the server got the first 3 updates only (KB3172615 - KB3179575 - KB3185280), the rest failed with the message [reverting back changes]

i hope someone can help me ASAP please, here is the log of my last installation attempt...

2017-08-12      10:38:17:896       540      1104      Misc      ===========  Logging initialized (build: 7.8.9200.16924, tz: +0200)  ===========
2017-08-12      10:38:17:896       540      1104      Misc        = Process: C:\Windows\system32\svchost.exe
2017-08-12      10:38:17:896       540      1104      Misc        = Module: c:\windows\system32\wuaueng.dll
2017-08-12      10:38:17:896       540      1104      Service      *************
2017-08-12      10:38:17:896       540      1104      Service      ** START **  Service: Service startup
2017-08-12      10:38:17:896       540      1104      Service      *********
2017-08-12      10:38:17:912       540      1104      Agent        * WU client version 7.8.9200.16924
2017-08-12      10:38:17:912       540      1104      Agent        * Base directory: C:\Windows\SoftwareDistribution
2017-08-12      10:38:17:912       540      1104      Agent        * Access type: No proxy
2017-08-12      …
Hello fellas,

This is my first question and I really require assistance on this case I'm working on.

My friend's PC has an 1TB Samsung Hard Drive that was partitioned to three pieces, but last week suddenly it shows on Windows Explorer and Disk Management the System Reserved drive, with only 150GB. (please see attachment capture).

System Information:
OS: Windows 8.1 Pro
Version: 6.3.9600 Build 9600
Processor: Intel(R) Core (TM) i7 CPU
Dell Inc. x64 based PC
BIOS version date: DELL INC., A15, 2/4/2010.

I checked on Event Viewer and it showed on August 13th, 2017 that the Volume D: has been repaired. This event showed up 13 times or more in a row between seconds. (warning event)

Then it brought up the error event on the same day, which said A corruption was discovered in the file system structure on volume D:

The Master File Table (MFT) contains a corrupted file record.  The file reference number is 0x1000000000018.  The name of the file is "<unable to determine file name>".

Now knowing these, I checked for viruses and unwanted programs, from the basics of course. Then I was checking the partitions but my main concern is the fact that the remaining space, the other hidden disk drive have no weight on it whatsoever, just an empty letter assigned to each one of them, which is why I can't make recovery.

I tried looking the data of these partitions (important) with DISKPART but no help, I installed the Mini Tool Partition Wizard to see if I could …
Free Tool: Path Explorer
LVL 10
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.


I am trying to access an endpoint with API using Basic authentication (Username and password).  I tried two methods that did not work for me.

Method 1:

var apiTest = new XMLHttpRequest();
var username ='testUser';
var password ='letUserIn1#';'GET', '');
apiTest.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));
apiTest.setRequestHeader('Accept', 'application/json');

apiTest.onload = function() {
                var apiData = JSON.parse(apiTest.responseText);


Open in new window

I get the following error for method 1 in Chrome:
chromeErrorI get this in IE
IE Error
Method 2:
    url: '',
    method: 'GET',
    crossDomain: true,
    beforeSend: function ( xhr ) {
        xhr.setRequestHeader( 'Authorization', 'Basic ' + Base64.encode( 'testUser:letUserIn1#') );
    success: function( data, txtStatus, xhr ) {
        console.log( data );
        console.log( xhr.status );

Open in new window

Here's the error I get:
errorI get the same error in IE.  Base64 is undefined.

Any help would be much appreciated.


Below is my code.
Web-sphere context path is set to simple slash /.


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="" 

Open in new window



import java.util.HashSet;
import java.util.Set;

import javax.json.JsonWriter;

public class HelloWorldAppConfig extends {
	   public Set<Class<?>> getClasses() {
	      HashSet<Class<?>> set = new HashSet<Class<?>>();
	      System.out.println("Completed application getclasses");
	      return set;


Open in new window



import javax.servlet.http.HttpServletRequest;

public class HelloWorldResource {

	private static final String LINK_SELF = "self";
	public HelloWorldResource() {
		// TODO Auto-generated constructor stub
    	System.out.println("Got inside constructor");
    public Response getAll(@Context UriInfo uriInfo) {
		System.out.println("Completed application getsingleton");
        return Response.ok("Hello").build();
    }//@Produces( MediaType.APPLICATION_JSON )

Open in new window

included jars in WEB-INF\lib foler

Open in new window

Hi Friends,

according to my work,I have number of pdf files present in one folder .I need to merge all the files into a single pdf  file  based on last modified time stamp. Means first modified pdf file as first and then the rest.
I tried with the below code.

Sub Main() 
    Const DestFile As String = "MergedFile.pdf" ' <-- change to suit
    Dim MyPath As String, MyFiles As String 
    Dim a() As String, i As Long, f As String 
     ' Choose the folder or just replace that part by: MyPath = Range("E3")
    With Application.FileDialog(msoFileDialogFolderPicker) 
         '.InitialFileName = "C:\Temp\"
        .AllowMultiSelect = False 
        If .Show = False Then Exit Sub 
        MyPath = .SelectedItems(1) 
    End With 
     ' Populate the array a() by PDF file names
    If Right(MyPath, 1) <> "\" Then MyPath = MyPath & "\" 
    ReDim a(1 To 2 ^ 14) 
    f = Dir(MyPath & "*.pdf") 
    While Len(f) 
        If StrComp(f, DestFile, vbTextCompare) Then 
            i = i + 1 
            a(i) = f 
        End If 
        f = Dir() 
     ' Merge PDFs
    If i Then 
        ReDim Preserve a(1 To i) 
        MyFiles = Join(a, ",") 
        Application.StatusBar = "Merging, please wait ..." 
        Call MergePDFs(MyPath, MyFiles, DestFile) 
        Application.StatusBar = False 
        MsgBox "No PDF files found in" & vbLf & MyPath, vbExclamation, "Canceled" 
    End If 
End Sub 

Open in new window

Dear Sirs,
Below is a Jersey code.  I would like to set the functionality in my Spring REST application. The code filters requests and abort if necessary.
public class MyFilterServerRequestAuth implements ContainerRequestFilter {

    public void filter(ContainerRequestContext requestcontext) throws IOException {
        String apikey = requestcontext.getHeaderString("x-api-key");
        String apisecret = requestcontext.getHeaderString("x-api-secret");
        if (!FingerAppSettings.API_KEY.equalsIgnoreCase(apikey) || !FingerAppSettings.API_SECRET.equalsIgnoreCase(apisecret)) {
            MyResponseEntity entity = new MyResponseEntity(




Open in new window

I dont want to re-invent the wheel and build a new WCF or Rest webservice. Please advise, how can I find out if the service I need has already been created by someone? I would love to be able to re-use that WCF/Rest service.

Example: I need a service that would convert currencies.

I have a web part page displaying 5 web parts. Four of the web parts (Efforts, Phases, Capture Points & Areas) are "provider" web parts, and come from lists that are the sources of 4 lookup columns in the 5th "consumer" web part (Lessons Learned).

The provider web parts are displaying the Title column from the lists.

The Using Javascript/jQuery, I "connected" the 4 provider web parts to the consumer web part, such that when you click on a Title column value, the consumer web part is filtered to show only those records that have the clicked value in the relevant metadata column.

All that is working very nicely.

Now, my requirement is to go one step further, and display the number of items that will be displayed if you click on a Title column value in any of the 4 web parts. If there are none, a "0" should be displayed.

I've constructed a lists service query that successfully returns the number of items that exist for a given, hard-coded, metadata value:
[SiteURL]/_vti_bin/listdata.svc/[ListName]/$count?&$filter=Effort/Title eq 'AAA'

So, the goal is to display such an item count beside the corresponding provider web part value, such as:
Efforts web part:
AAA (10) //assuming there are 10 items in the consumer web part tagged with Effort 'AAA'

Now, I'm bumping up against the current limit of my abilities.

I know that I need code (javascript, rest, ajax, json) for each provider web part with looping to cycle through all of the TD cells that have …






Representational state transfer (REST) is an architectural style that gives a coordinated set of constraints to the design of components in a distributed hypermedia system used to design networked applications. RESTful systems typically communicate over Hypertext Transfer Protocol (HTTP) with the same HTTP verbs (GET, POST, PUT, DELETE, etc.) that web browsers use to retrieve web pages and to send data to remote servers. REST interfaces with external systems using resources identified by Uniform Resource Identifier (URI) that can be operated upon using standard verbs.