[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More







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


It has been a long while since I have had to do this and was hoping someone could help me out.

basically I am getting returned this xml packet:
<?xml version="1.0"?><BCAmessage service-request-id="10630513389" type="RESPONSE"><BCAservices><BCAservice><BCAservice-code>BCA001</BCAservice-code><BCAservice-code-version>V00</BCAservice-code-version><BCAservice-client-ref>1 </BCAservice-client-ref><BCAservice-data><response version="1-36-0">
<primary-match type="no-match"/>
<summary currency-code="AUD" name="enquiry-amount" type="amount">0</summary>
<summary name="age-of-file" type="months"/>
<summary name="age-of-subject" type="years"/>
<summary name="time-at-address" type="months"/>
<summary name="time-at-employer" type="months"/>
<summary name="defaults" type="count">0</summary>
<summary currency-code="AUD" name="defaults-value" type="amount">0</summary>
<summary name="defaults-paid" type="count">0</summary>
<summary name="defaults-12" type="count">0</summary>
<summary name="defaults-12-paid" type="count">0</summary>
<summary name="defaults-12-unpaid" type="count">0</summary>
<summary name="defaults-24-paid" type="count">0</summary>
<summary name="defaults-24-unpaid" type="count">0</summary>
<summary name="defaults-36-paid" type="count">0</summary>
<summary name="defaults-36-unpaid" type="count">0</summary>

Open in new window

Angular Fundamentals
LVL 12
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

I have an MS Access / VBA application running on an RDP server.  I have been asked to interface with a phone system via REST API.  I haven't done this before, so could do with some help in relation go GET/POST commands.  However, I am also concerned about memory/processor overhead for each user.

So....I could really do with some advice.
I am working with JAMF - the Apple IT management application.  I am connecting to the Classic API (RESTful) using PowerShell (v4 and v5).  

I am capturing the name, id, serial_number, model, model_identifier, and model_display from the /mobiledevices endpoint.  I also need to capture the department field from the  /mobiledevices/id/{id}/subset/location subset - where {id} is the id captured in the first endpoint.

Re:  https://developer.jamf.com/#/mobiledevices

The results will be used to populate a different application either through SOAP or direct database updates. TBD.  We may also have to correlate the results with an Active Directory and so I thought PowerShell would be a good scripting base.  I come from a hodge-podge of scripting and admin backgrounds and only have a passing knowledge in PowerShell.

I still have problems with data structure objects and also converting my structured background to pipeline thinking.

Here is what I have:

# Authentication parameters
$RESTAPIServer = "test.jamfcloud.somewhere"

$RESTAPIUser = "WillyWonka"
$RESTAPIPassword = " OompaLoompas@r3it!"

$BaseURL = "https://" + $RESTAPIServer + "/JSSResource/mobiledevices"
$Header = @{"Authorization" = "Basic <ToBase64 string goes here>"}
$Type = "application/json;charset=UTF-8"

# Get all mobile devices
$MobileDeviceResponse = Invoke-Restmethod -Uri $BaseURL  -Method GET -ContentType 

Open in new window

I have an OData query to get a historical list of HDX sessions (username, start/end times, protocol, Delivery Group) from Director. What's the easiest way to extract the data from the XML and produce a simple table of the fields above? I tried using Chrome's Advanced REST Client, but while the XML response came back fine, the client couldn't parse it successfully.
The actual query:
http://ddc.company.com/Citrix/Monitor/OData/v3/Data/Sessions?$filter = StartDate ge datetime'2018-12-02T15:14:49' and StartDate le datetime'2018-12-03T03:14:49' and CurrentConnection/Protocol eq 'HDX'&$select = StartDate,EndDate,CurrentConnection/Protocol,Machine/DesktopGroup/Name,User/UserName,User/FullName&$expand = CurrentConnection,Machine/DesktopGroup,User 

Open in new window

I am receiving this error on my production "serverSQL Server failed to communicate with filter daemon launch service  (Windows error: The service did not start due to a logon failure.
). Full-Text filter daemon process failed to start. Full-text search functionality will not be available."

I know how to add and or change the password on the login tab of the properties of the service.   But the username for this service is an NT Service account and with the Admin account, I seem not to be able to have access to change the password on this account.  So I have just three questions. (I think)

1) Why would this happen to an NT user account?
2) Can I change the password on an NT user account?
3) If I cannot change the password, would it be possible to just use a domain user account, like the rest of the SQL services are using or do I have to use the NT account for this Service?


How do we receive list of docs number while calling Web API client.

I am getting error : "Status Code: 406, ReasonPhrase:Not Acceptable',....

But, the service is correct and all other remaining values are correct. but, finally we are getting the error.

Scrrenshot attached for reference (Status Code).

Source is below:

	    private const string URL = "http://testURL.net/getDocs";
            private const string DATA = @"{""EmpId"": ""101"",""EmpName"": ""ANDREWS"",""Dept"": ""Accounts""}";
	    System.Net.Http.HttpClient client = new System.Net.Http.HttpClient();
            client.BaseAddress = new System.Uri(URL);
            byte[] cred = UTF8Encoding.UTF8.GetBytes("username:password");
            client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(cred));
            client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded"));

            System.Net.Http.HttpContent content = new StringContent(DATA, UTF8Encoding.UTF8, "application/x-www-form-urlencoded");
            HttpResponseMessage messge = client.PostAsync(URL, content).Result;
            string description = string.Empty;
            if (messge.IsSuccessStatusCode)
                string result = messge.Content.ReadAsStringAsync().Result;
                description = result;

Open in new window

What is the problem in the above code..? How do we receive the list of doc numbers..?
We are trying to POST to a WCF REST method. We can successfully POST using SoapUI, Postman, and YARC but when we try in Angular 5 I'm receiving a NULL object.

Client code:
    const headers: any =  {'Content-Type': 'application/json'};
    return this.ajax.request<any>({
        url: url,
        method: method (POST),
        headers: headers,
        options: {
            body: JSON.stringify(req.body)

    public request<T>(req: AjaxRequest): Observable<HttpEvent> {
        return this.http.request<T>(req.method, req.url, req.options)

    //this.http = HttpClient

    // Component
    public onNext(event: any): void {
            data: event.value,
            dmgInfo: this.responses['dmg'],
            emailId: this.util.getQueryStringValue('uname')


    private _saveInfo(data: any): void {
        this.appraisal.request('saveDmgInfo', null, {body: data})
        .subscribe(v => {

Open in new window

Server-side logic:
// WCF Interface definition
    [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)]
    Result InsertDemographicInfo(Demographic d);

    // Service code
    public Result InsertDemographicInfo(Demographic d) // The Demographic object is null when posting from Angular
        Result result = new Result();
            result.Status = "Success";
        catch (Exception ex)
            result.Status = "Fail";
            result.Message = ex.Message;
        return result;

Open in new window

Web config:

Open in new window

I seem to have gotten what I wanted from earlier question, I have created below a table where I want to store two strings:
Tbllinkstring, see attached table

Now I want to use DLookup to be pick the string from the table, how do I use the IF and THEN and ELSE from the code below so that it evaluate and use the correct string, do not worry about the rest, I will take care of the rest, see the shaded area in the attached table:

Public Function SqlLinker()
Dim db As Database
Set db = CurrentDb
Dim tdef As TableDef
Dim constr As Variant
constr = "ODBC;DRIVER=SQL Server; " & _
For Each tdef In db.TableDefs
If InStr(tdef.Connect, "ODBC") Then
tdef.Connect = constr
End If
MsgBox "Re link completed Successfully", vbOKOnly, "CA Premier Accounting Package"
End Function
For me this will be the best solution because before deploying the application I will be required only to change one of the links above in the table called Tbllinkstring to the correct host name, this means that I will still maintain my existing laptop links which allow me to compile and make an ACCDE copy without an error. Once the application is deployed to a new host name again it will simply drop my existing links after evaluating and use the new one. The advantage is that the users will not be required to select the correct link at all, the system will handle that for them.
On the shaded areas I want to …
I need to call a rest api from my sql server, so I found a way of doing it but to make the code to run I need to enable
Ole Automation Procedures in sql server by running this query

sp_configure 'show advanced options', 1;  
sp_configure 'Ole Automation Procedures', 1;  

What I need to know is for sql server database security wise, is it good practise to call web api from a Stored procedure. As I am not a sql server dba or security expert.
I am open in there is any other way also.
Please let me know
how to load mutiple jks file(keystore) file in jmeter.
JavaScript Best Practices
LVL 12
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

I'm following a (newbie) tutorial on YouTube on REST API.
On Chrome I have installed the Extention Restlet, as in the tutorial (where it used to be called DHC). I can see that it is installed when I look chrome: //extensions.

But how do I open it? It's supposed to give me a Postman-like page.
It should appear when I click Apps on the Chrome browse, but doesn't.

Thanks for any help.
Hello Sirs
I am using serious issues with Charset Encoding in a REST application. I use Spring and the encoding in the bean MessageSource and Tymeleaf resolver  is set to UTF-8.
I get this when I return Json string:
\ufffd replacing special characters like é, or any other letter with accent.
How can I solve this?

Best regards.
My gaming laptop, an Asus G551JM is having some weird boot issues.

It used to have a hybrid drive, and after the drive broke I bought a new Kingston UV500 960GB SSD for it.
After installing Windows 10 on it I quickly noticed that the boot times were... odd.

Sometimes a boot lasts 2 minutes, sometimes around 40 seconds.
I ran a boot cycle test with Windows Performance Recorder.
The pre-session init phase seems to take around 30 seconds, the rest very little.
It just feels like something is stalling... and once it times out the computer then boots really fast.


I'm new to the program, so I admittedly don't really understand them well.
Perhaps some of you are familiar with them?

This is my personal computer, so I feel it's fine for me to share the log files:

I've also ran a few disk check programs and all of them have reported that the disk is in excellent condition.
It moves files fast and seems to work great in actual use.

Also, oddly, the computer would restart whenever it was trying to recover from sleep mode... but I kind of fixed it.
I read that some Asus laptops with sleep mode issues start working if you re-flash them with the same BIOS it already has, using WinFlash.
I gave it a shot! ...and now instead of rebooting from sleep mode, it actually recovers. ...very slowly (1 min 30 sec or so)
(Re-flashed from the already newest version... I have NO idea why that changed anything!)

I've …
Hello, Experts!


Windows Server 2016
IIS version 8
the site lives in c:\inetpub\sales.cbac.com
ports are http 80 and https 443


What might be causing the issue of receiving data from a REST call using angular hosted on IIS 8 (see image attached)? I want to start a dialogue so you guys can ask more questions and I could provide more narrowed answers.
Hi Guys

I am needing to trash the contents of a 60+ Gig mailbox on our exchange 2010 environment.
I was looking at the below script and tested it on another mailbox and it works like a charm.

Search-Mailbox -Identity "Peter Pan" -DeleteContent

But as always the scope gets changed on min 99 and now the request is to delete all mail except 1 months (Latest mail) worth of mail in the mailbox.
Now I am not a guru on PowerShell, but surely there should be something I can add to my current command that will leave 1 months worth of latest mail and trash the rest?
Any  assistance win this would be appreciated.

Hi Expert,

When i'm selecting data from external table getting following error , i want to capture all the error into a log for the error visibility.

ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-05002: There are no matching files for any file specification in the LOCATION clause.

--I'm using below pkg for creating message for user

o_error_message := SQL_LIB.CREATE_MSG ('PACKAGE_ERROR',
                                             'ERROR:'|| L_mark || '|' || sqlerrm,
                                              to_char (sqlcode));
--Here the pkg only print the ORA -Error , Here i'm looking for both "ORA" and "KUP" error.

Open in new window

But now only 1st line "' ORA-29913: error in executing ODCIEXTTABLEOPEN callout"  got printed in output. rest of lines are skipped.

Please share the solution for this.

Thanks in Advance!
My website has recently gotten a new IP-address (shared host), but though the rest of the world can see it, I cannot, even after 48 hours. I have flushed my DNS, but to no avail. The problem comes in all browsers. Flushed my cache as well, but the problem remains.

While trying I also found that I cannot start the power shell either normally or as admin. Nothing happens when I click on them (The command prompt itself comes up outside the power menu). I have added this key: Windows Registry Editor Version 5.00
but again no use. I am on W10
I am setting up an Office 365 Business Essentials package for a small business.  They are currently using G Suite.  I had planned to move a user over to test that everything was working the way it should be adding all of the rest of the users.  If I make the DNS entries in G Suite, is that going to apply to every user or how can I simply migrate one account and modify one account at a time to ensure a smoother transition and not having everyone freaking out about the transition at once?
Hello Experts,

I was writing a restful apis
I would like to have a snippet of code to  which will handle the exception like
If request was successful, then return 2xx code (3xx for redirect).
 If there was an internal logic error on a server, then return 5xx. If there is anything wrong in client request, then return 4xx code.
 like to have a user friendly description of the errors...

CompTIA Cloud+
LVL 12
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.


I've a question in relation to setting up VLANs.  I need to add another subnet to my network, I would like to separate out our HR dept (to begin with, the others will follow) and to free up some IP addresses on our existing Subnet.  I have four switches, two are Cisco SG 200-50, the other is a Cisco Catalyst 2960-X and the last one is a Catalyst 3560-CG.  I also have an MPLS router with our third party company to connect to the rest of our sites.  I've created a number of VLANs on the 3560, one for our HR Dept, one for management and a few others that I'll use later down the line.  My question is, how does it all fit together.  I'm aware the the 3560 will be carrying out the routing of the VLANs but should I have trunk links between all the switches (the HR folk will be connected via the 2960)?  Should the 3560 be direcly connected to the MPLS router, if not and I plug it directly into another swithc, surely that would create a loop.  I have the basics down (I think), I've created the VLANs, setup their interface IPs, enabled the 3560 for routing and not i'm stuck on the trunks and how it should all fit together.

Cheers all for any help
hi all,

Any known problem on  MariaDB to work with MySQL Enterprise and MySQL community?

what need to setup so that they all work together well ?

we are considering to save cost on, e.g. only some of them are MySQL Enterprise and the rest are MySQL community/MariaDB.

any idea?
i am trying to print a form which has textboxes and data gridveiw  using Printdocument control, the code below will print the text boxes and first cell of grid view , for the rest of the cells i am getting following  error :
An unhandled exception of type 'System.NullReferenceException' occurred in System.Windows.Forms.dll
Object reference not set to an instance of an object.

 private void btnPrint_Click(object sender, EventArgs e)
            printPreviewDialog1.Document = printDocument1;
e.Graphics.DrawString("Date: "+DateTime.Now.ToShortDateString(),new Font("Arial",12,FontStyle.Bold),Brushes.Black,new Point(20,95));
            e.Graphics.DrawString("Report Number" + txtReportNumber.Text, new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(20, 150));
            new Font("Arial",12,FontStyle.Bold),Brushes.Black,new Point(20,170));
            e.Graphics.DrawString("SN", new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(65, 185));
            e.Graphics.DrawString("Reference", new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(180, 185));
            e.Graphics.DrawString("Amount", new Font("Arial", 12, FontStyle.Bold), Brushes.Black, new Point(480, 185));

Open in new window

I have a PHP REST API, built from this tutorial:

I need to do these steps in one function and am not sure how to accomplish it.

1. Accept XML Request
2. Respond to request with XML response and 200 status code
3. Send another XML response and 200 status code to a URL parsed from the XML Request

Currently. I have it like this:
function ProAddRq() {

    // If this isn't a POST, respond with 405...
    if($this->get_request_method() != "POST"){
        $this->response('Error code 405, Method not allowed.',405);

    // Get the XML request from input
    $request = file_get_contents("php://input");

    // Get the RqUID from the request
    $xml = @simplexml_load_string($request);               
    $RUID = strtolower($this->xml->xpath("//ProAddRq/RUID")[0]);

    // Build the ACK message CML from the template
    $ack_data = array();
    $ack_data["RUID"] = $RUID;
    $ack_data["PKey"] = "2b3420be-69bf-4bb7-43bb-b632947e236b";
    $ack_data["Status"] = "Accept";

    // using PHP Mustache to render the XML with the values
    $xml_post_string = $this->m->render('../../views/ack' , $ack_data);

    // Call the SendInventory function to send to the URL that is parsed from the $request

    // set the content_type
    $this->_content_type = 'application/xml';

    // respond with the ACK and 200 response...
    // Setting 

Open in new window

I've been successfully experimenting with interfacing with WordPress's REST API using React.  I've enabled CORS for the remote WordPress site (by modifying it's .htaccess file), and I've succeeded at consuming the JSON data from the API and displaying it by rendering it in my App.js file.  

The code for my App.js file is as follows:

import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';

import { 
} from 'react-router-dom';

import Home from './components/Home';
import Accounts from './components/Accounts';

class App extends Component {

  constructor() {
    this.state = {
      accounts: []

componentDidMount() {
  let accountsURL = 'https://mywordpresssite.com/wp-json/wp/v2/posts';
  .then(response => response.json())
  .then(response => {
      accounts: response

  render() {

    let accounts = this.state.accounts.map((account, index) => {

    return (    
        <div key={index}>

    return (
      <div className="App">

        <header className="App-header">
          <br />
          <img src={logo} className="App-logo" alt="logo" />

        <br />     


        <div className="row">
              <Route path="/" exact 

Open in new window

Hello Experts,
Just wanted to find out how do you guys dynamically update the Office 365 endpoints IPs and URLs that are published by MS for the proxy and firewall access? I know the RSS feed will be retired soon per what I read online and do you guys just run a PS script that grabs the info from the published XML file or there's a better solution/idea out there? Any input would be greatly appreciated!






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.

Related Topics

Top Experts In