Questions tagged [web-services]

A 'cybernetic facilitator'" refers to an innovative program created with the purpose of facilitating seamless machine-to-machine communication on the expansive digital platform known as the World Wide Web.

methods for removing white spaces from json webservice output in asp.net

Hello everyone! I'm new to the world of JSON and this is my first experience with a webservice. I have successfully created an ASP.NET Webservice that returns JSON data. Everything seems to be working fine, but there is one issue I need help with. When fe ...

Error 405 - Invalid request method

Here is my JQuery code for calling a web API: let request = { RequestId: "123", DeviceId: "ACU-B2-01-R1", AccessType: "Unlock", LoginId: "tester", Password: "tester" }; $.ajax({ url: 'http://localhost:55208/api/accesspanel&ap ...

What is the proper way to provide login information for a webservice through a jquery ajax request?

I've been attempting to make an AJAX call using jQuery like this: $.ajax({ url: WEBSERVICE_URL, type: "GET", dataType: "application/json; charset=utf-8", username: "admin", // Most SAP web s ...

I'm experiencing an issue where the video from my server is not being displayed within the <video> tag in the browser, but when using the web URL, the video plays

When it comes to uploading a video, there are two options available: 1) Provide the web URL for the video, 2) Upload the actual video file. The <video> tag works smoothly with a web URL as the source, but issues may arise when trying to play an uplo ...

Top method for connecting a PHP web service to a C# API

Looking for advice on the best approach to call my C# web service method from a PHP website. The C# web service I am working with is defined as follows: public string Method1(string Param1, int Param2, List<String> Param3) I need to populate a list ...

What is the best way to extract values based on a key

export class Installment { constructor( public isResurring: boolean, public isInstallment: boolean, public price: string, public sku: string ) { } this.keys = Object.keys(this.paymentPlans); for(let key of this. ...

Is it feasible to establish a direct link between an Angular.js application and Dynamodb? Are there any other solutions available to eliminate the need for a backend

Personally, I believe that removing the backend could be a successful strategy for addressing sysadmin/scale issues. Do you agree with this approach? Is there a proven method for eliminating the backend in web applications that require database access? I' ...

"What is the method for generating a composite message and delivering it as an XML response in SoapServer

I am currently in the process of setting up a SOAP web service that is supposed to return a composite message. An example of a valid instance of this message looks like the following: <dl190Response xmlns="http://pse/"> <cdhead cisprik="556 ...

A guide on testing RESTful web services using Mocha and Chai

I am a beginner when it comes to writing unit tests and I am currently learning Mocha and Chai. In my Node+express project, I have implemented a unit test as shown below: import { expect } from 'chai'; var EventSource = require('eventsource& ...

Is there a way to initiate a JSON POST request from an iOS gadget and direct it towards an ASP.NET URL?

I am currently developing an application that requires data sharing with a windows server. After researching various examples online, I have come up with the following implementation below. Although both the iOS code and web-service are functioning properl ...

The jQuery call to a web service is returning XML data, but the success function is receiving a

I have utilized: [ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = true)] The outcome of my web service call is: <string xmlns="http://tempuri.org/"> [{_pkId:"",_code:"",_message:"The file has been uploaded successfully.",_sta ...

Decoding PHP Webservice Output on Android

I am currently working on consuming a PHP Web service using JSON in an Android app. After making a request to the server, I received the following response data: string(170) "["14","Samsung","1","15","Nokia","1","16","Sony Ericson","1","18","LG","1","19" ...

Merging PHP Webservice with C# Client for Enhanced Functionality

In my C#/Winforms application, I am using PHP webservices. One PHP webservice called uploadFile.php is responsible for uploading a blob file (e.g., by a unix application) to a MySQL database. Another webservice, getFile.php, is used to retrieve the file if ...

An issue occurred when trying to retrieve JSON data using JAXB, but the data can be easily obtained in XML format

package com.marketplace.acres.dummyapp.test; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.xml.bind.annotation.XmlRootElement; @Path("/fortest") @XmlRootElement public class ...

What is the process of sending JSON parameters in an Android web service request?

Possible Duplicate: How to send a JSON object over Request with Android? Being new to Android development, I encountered an issue when trying to send requests to a web service in JSON format. After researching online, I came across this code snippet f ...

Are you interested in creating and testing a web service using JSON and C#?

Struggling with creating a JSON WCF web service that connects to MySQL DB on my Server. Feeling quite confused about the whole process! Here's the code I have so far: [ServiceContract] public interface IService1 { [OperationContra ...

Issue encountered when sending information to asmx web service via ajax and displaying the result on an HTML page with a javascript function

I have developed an ASMX web service that looks like this: [ScriptService] public class CurrencyData : System.Web.Services.WebService { [WebMethod] public string DisplayCurrency(double amount, string sign ,string style) { swi ...

Encountering a "file or directory not found" error during the installation of ply using

I recently stumbled upon an interesting project for testing Rest APIs. I was in the process of installing ply from https://github.com/ply-ct/ply npm install ply-ct --save-dev Encountered this error, wondering if anyone has a solution npm WARN saveError EN ...

JSON response and service status in a WCF REST service

A WCF REST service is returning a JSON response as follows: { "categories": [{ "category_id": "10", "name": "Grocery", "freeQnty":"0", "prdcost":"100" }, { "category_id": "20", "name": "Beverages", ...

Is there a way to develop a nested JSON web service using C#?

I am working on displaying a list of products with their product names and group ids using a webservice with different levels. For Level 0, the display should contain the group id with the product names as child levels. So far, I have created two diction ...

Sending Ajax requests to web services hosted on a dual-node NLB

I am currently managing a two-node NLB configuration where multiple web services need to be accessed from the client-side using ajax POST requests. When visiting the page at: http://clusternode1/ everything works smoothly. Similarly, when accessing it f ...

What methods do Web Applications use to interface with a server?

If I wanted to develop a collaborative web application where users can simultaneously work on a diagram, how would the client and server exchange messages? Here are some details and an illustration of how the system is intended to function: https://i.stac ...

The TypeScriptLab.ts file is generating an error message at line 23, character 28, where it is expecting a comma

I am attempting to convert a ts file to a js file. My goal is to enter some numbers into a textarea, and then calculate the average of those numbers. However, I encountered an error: TypeScriptLab.ts(23,28): error TS1005: ',' expected. I have included my ...

What is causing my web service request to fail when connecting to a new website?

My current issue involves a JQuery ajax call I am making to a web service: $.ajax({ type: "POST", url: "https://WebsiteName.com/Service.asmx/LoginExternal", data: "{loginData: " + JSON.stringify(LoginData) + "}", conten ...

Creating interactive forms (the optimal method)

My project involves creating an Android Tablet application that will connect to a web service to retrieve dynamic forms which can be filled offline and then submitted when online. These forms are not predefined, and may contain attached images. However, I ...

How are CORS policies utilized by APIs to facilitate the interaction with various applications?

I have developed an API that provides data to my frontend application. The API is hosted on api.myapp.com, while the app resides on another subdomain of the same domain - www.myapp.com. These two communicate seamlessly through AJAX requests with CORS prope ...

Execute a JavaScript function that utilizes ref/out parameters to call a WebMethod

Below is a sample webmethod [WebMethod] public string CheckService(string name, ref string msg) { return "Hello" + name; } Here is the ajax call $(document).ready(function () { $.ajax({ type: "PO ...

How to Access a Web Service in ASP.NET and jQuery from any directory without worrying about localhost or production environment?

Trying to get this jQuery call to function properly on both the localhost and production server has been a challenge. The code resides in a master page, with calls originating from different locations within the file structure. Any assistance would be gr ...

Develop JSON Object with C# Web Service

Learning the basics of C# Web Services to handle JSON data can be quite challenging. If you have a web service that returns data in JSON format, such as the following example: {"RESULT":"2","TKN":"E952B4C5FA9","URL_HOME":"My_Url_Home"} You may encounter ...

I am experiencing an issue where my REST call is being triggered twice while using AngularJS

Why is my REST call triggering twice when I make the call from the UI? I am using Java v8 and AngularJS v1.6, here is the service: import com.project123.temp.component.ImportFileComponent; @Component @Path("project123/ImportFileService") @JsonIgnorePrope ...

Having trouble passing multiple parameters in a jQuery AJAX request?

I'm currently working on implementing a .NET web service (asmx) using JSONP with guidance from this helpful tutorial. When I try calling my webservice with only one parameter, everything runs smoothly. However, the moment I attempt to call it with multipl ...

Monitoring user logins based on user identification

How can I effectively monitor the activity of users who have logged into a web application that is managed by an external company? Despite my extensive research efforts, as a non-technical individual, I am struggling to understand how to utilize Google Ana ...

Exploring the depths of JSON using @attributes and @association in the realm of JavaScript and AngularJS

Currently, I am working on a project that involves utilizing an API for data retrieval, updates, and deletions. The API in question is the prestashop API. While I have managed to retrieve data and update certain items successfully, I encountered an issue. ...

Seeking assistance with dilemmas related to jQuery (specifically kendo), .NET Web Service (asmx), and Json

After conducting extensive research on the subject, I was unable to find any satisfactory answers or complete examples. Since I have limited experience with jquery, I am in search of a straightforward sample that demonstrates what I'm trying to achieve. T ...

Is it possible to retrieve JSON-formatted data from a Web Service Provider Function within Lotus?

Recently diving into Lotus Web Service, I've developed a Web service provider with two functions: EmployeeProfile and EmployeeLogin. Each function requires specific parameters to carry out its logic. My goal is to return data in JSON format from these ...

I require assistance with parsing the JSON outcome within a C# Windows Phone application

As a newbie in the world of developing Windows Phone apps, I am facing an issue that has been persistent even after trying out all possible solutions. The problem arises when my application tries to retrieve data from a web service, and the result it recei ...