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.

Enhancing a php SOAP complex datatype by incorporating an XML wrapper

In my nusoap server file, I am currently utilizing the following code snippet: $server->wsdl->addComplexType( 'member', 'complexType', 'struct', 'all', '', array( &apo ...

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" ...

Can you provide some instances of online services that use basic authentication?

Is there a website out there that offers web services requiring simple username and password verification? I'm open to any type of service: SOAP, REST, JSON, XML, etc. I need this for testing purposes, but it seems like most web APIs nowadays are ei ...

Encountering a 401 Unauthorized error while using Business Central's OData Web Service with NodeJs

My attempt at connecting and fetching a data list from Business Central has hit a roadblock. The Web Service, exposed by BC, works fine as the OData link displays JSON data for "Articles". I've been trying to utilize this service with NodeJS using NTL ...

How can we convert an NSString obtained from a web service to an NSDate in Objective C?

I attempted it as follows: cell.msgid.text=[[tableArray objectAtIndex:indexPath.row]objectForKey:@"MobileMessageMasterId"]; NSString *datefromweb= [[tableArray objectAtIndex:indexPath.row] objectForKey:@"MessageDateTime"]; NSDateFormatter *dateformatte ...

Transforming JSON data into XML format for SOAP API integration

Seeking guidance on converting JSON input to XML format for webservices. As a beginner in this field, I am facing challenges with this task. Any suggestions are appreciated. Many thanks in advance ...

Transmitting information to a web service through POST method

Recently, I was given an example on how to connect to a specific web server. This example includes a basic form with two input fields: Upon submitting the form with both the token and the JSON data, it returns a true response. Below is the HTML code: & ...

Implementing JSON methods in C# WebService to enable communication with external servers

Is it possible to integrate an asp.net web service written in C# into an HTML5/JavaScript website? The challenge is that the web service and client are located on different domains, requiring a cross-domain request. ...

Exploring the Intersection of Spring Webservices and Json

Can spring webservices handle sending and receiving json data? Regards, Damien ...

Tips for utilizing an ASMX web service using jQuery

I have been searching online and found various solutions, but none seem to work for me. Can anyone explain the reason behind this? I am feeling frustrated >_< Should I make changes in my web.config file? I don't get it why even though I try accessing ...

What is preventing me from using GET to pass parameters to WebMethod?

Here is an example of how my WebMethod is structured: [WebMethod] [ScriptMethod(ResponseFormat=ResponseFormat.Json, UseHttpGet=true)] public List<Person> Greetings(string greeting) { List<Person> individuals = new List<Person> { ...

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", ...

Having trouble sending a HTTP Post request to a Web Service from my Android Application

Working on an application that involves using both GET and POST requests to interact with Web Services. While the GET requests are working smoothly, encountering challenges with the POST requests. Have tried two different approaches in the code implementat ...

iOS authentication token combining PHP

Currently, I am working on an iOS application that requires user login using a unique user ID and password. The existing flow of the process is outlined below: 1) Users input their user ID and password. 2) Upon clicking the login button, a PHP webservice ...

Having trouble making a call to my RESTful service from an AngularJS application using $http

I am having trouble with reading JSON data from a REST webservice using AngularJS $http. I have a simple REST webservice located in a separate project which returns JSON. However, when I attempt to access the REST service from Angular, it results in an err ...

Large response from SOAP client causing memory error

Can someone help me with a strange issue I'm facing? Here is the code snippet: $response = $client->__soapCall('ProcessXmlString', [['xmlRequest' => $xml]]); The XML data looks like this: <columns code=".."> < ...

I'm having trouble sending a string to a WCF service using jQuery AJAX. What's preventing me from sending strings of numbers?

Something strange is happening with my web service when using jquery ajax - I can only pass strings containing numbers. This was never an issue before as I would always just pass IDs to my wcf service. But now that I'm trying something more complex, 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 ...

ServiceNow allows users to access related tables and display them using JSON Web Services

I have been working on a C# project where I am extracting data from a ServiceNow database and converting it into C# .NET objects. To achieve this, I am utilizing the JSON Web Service to receive the data in JSON format. My goal is to establish a relational ...

I am encountering an issue with the content type while trying to call a PHP webservice in Visual Studio 2010

Recently, I developed a RESET webservice call in PHP and now I am attempting to integrate this webservice into Excel 2007 using Visual Studio 2010. However, when I input the URL into the "Add Service Reference" dialog box and click go, I encounter the foll ...

I'm attempting to retrieve a JSON response with Jquery-Ajax, but I'm running into issues. The selection dropdown is loading without any options

Upon hitting http://localhost:8082/getCountries, the SOAPUI (GET) response is as follows: HTTP/1.1 200 Content-Type=application/json Transfer-Encoding=chunked Date=Mon, 18 May 2020 03:38:46 GMT Keep-Alive=timeout=60 Connection=keep-alive [{"countryI ...

Troubleshooting problems with Android web service communication using JSON

I am working on integrating JSON into my Android app. After following some tutorials, I managed to get the app reading test data from Twitter. package com.or.jsonswitch; import *** public class JsonTestMySwitchActivity extends Activity { /** This metho ...

Run the ping function using PHP to display live output on the webpage

I attempted to execute the ping command using PHP: <?php $response = shell_exec('ping -c 4 '. $_POST['host']); echo "<div class=\"response\">".$response."</div>"; ?> However, when I input a hostname ...

Unveiling computer bots and spamming with Express JS

I've scoured the internet but have been unable to find a framework that specifically deals with identifying and blocking spamming computers and users who are trying to access my server's data. I am in need of an expressjs/nodejs solution that can ...

Establishing the Access-Control-Allow-Origin

I have a basic .NET web service: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; /// <summary> /// Summary description for WebService /// </summary> [WebService(Namespace = "http ...

Connecting a hybrid/web client application to established remote web services outlined through a set of WSDL specifications

Summarizing the Problem I am faced with the task of integrating a mobile hybrid application, likely built on Ionic, that will need to indirectly consume several SOAP web services. My goal is for the TypeScript client in the mobile app to have knowledge of ...

Can POST data be acquired in socket io and express js?

Currently, I am using a web service to send POST data from an application at regular intervals. My challenge is to retrieve this POST data on the client side (index.html) and then pass it to a JavaScript function. Any ideas or recommendations on how to a ...

Running out of memory after attempting to generate a JSON object from a JSON array

Recently, I encountered an issue while working with my web service in Java that returns JSON data. The problem arises when dealing with large datasets, causing an out of memory error. Here is a snippet of my code: public void getImages() throws Exception ...

Using JQuery to interact with Java REST WebServices from HTML pages

Having trouble with RESTful webservices. My setup: On the server-side, I'm utilizing EJB3 + RESTful webservices. For the client-side, I have bootstrap twitter + JQuery 1.8 and Ajax methods to access my webservices. Created a JSP on the server-side ...

Retrieve data from a RESTful web service

I am making a call to a RESTful web service using the following code snippet: $.support.cors = true; $.ajax({ type: 'POST', dataType: 'json', async: true, url: 'http://myserver/Register/Register.svc/json', ...

The web service consistently provides a combination of XML and JSON formats. Is there a way to convert it to solely

I have been assigned a project where I need to create a webservice that strictly returns JSON data. Despite my efforts, the code I've written always returns a combination of XML and JSON response. namespace DotMeTast { [WebService(Namespace = "h ...

An issue arose when attempting to access a Mashape web service with JavaScript

I am attempting to make use of a Mashape API with the help of AJAX and JavaScript. Within my HTML, I have a text area along with a button: <div> <textarea id="message" placeholder="Message"> </textarea> <br><br> ...

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 ...

Tips for passing a string parameter to a WebMethod in a web service using JQuery

Exploring a webmethod in a local web service (.asmx) for a sample project: [WebMethod] public List<test1> GetLstB(string s) { test1 t; List<test1> lstB = new List<test1>(); t = new test1() { ...

Checking the correctness of a username through the use of AJAX, JSON, and ASP

Recently, I have started learning about json, ajax, jquery, and web services. I am currently working on a registration page where users can check the availability of a username instantly by typing in a few letters. My setup includes an HTML file for the ...

Tips for using JavaScript to consume a complex type returned by a WebMethod on the client side

I am new to Webmethods and Services and I find myself in a bit of a predicament here. The webmethod I have returns an instance of the StatusViewModel class. [WebMethod()] public static StatusViewModel GetTime1() { Debug.Write("Timer") ...

Having trouble parsing a JSON string in your JavaScript code?

As a java developer transitioning to JavaScript, I'm faced with the task of parsing a JSON string retrieved from a WebService. Here is the JSON String: { "myArrayList": [ { "myHashMap": { "firstName": "Clara", ...

Accessing files from SharePoint using web services and jQuery

I am in the process of creating a mobile application that will connect to a MOSS Site through web services. The main functionalities I aim to achieve are: 1) Retrieve documents such as PDFs, Word documents, Excel files. 2) Access reporting services report ...

Unlock the power of cross-origin resource sharing (CORS) on your Web Service by

I am facing an issue with my WebService (.asmx) page where I want to run functions from another webpage using ajax. The webpages I want to call these functions from are of a different origin than the web service. When I attempt to make an ajax call like th ...

"Incorporate an image into the data of an AJAX POST request for a web service invocation

I have been attempting (with no success thus far) to include an image file in my JSON data when making a call to a method in my webservice. I have come across some threads discussing sending just an image, but not integrating an image within a JSON data o ...

Issue encountered in AngularJS while configuring resources for the action `query`: Anticipated response was an object, but received an array instead

I've been attempting to utilize Angular 1.3 to access a REST service, but I keep encountering an error stating "Error: error:badcfg Response does not match configured parameter". My suspicion lies in the controller where I invoke $scope.data. Even th ...

Can I obtain a comprehensive list of potential return values from a web service?

Is there a way to retrieve a comprehensive list of all potential values that can be returned in a web service? I have been exploring APIs provided by Open Weather Map and have noticed differences between the results from these two calls: Upon inspecting ...

The functionality of AngularJS ngTable is not functioning as expected

I've successfully utilized ngTable with static data in the past for listing, sorting, and filtering. Currently, I am working with ngTable v 0.8.3 Objective This time, my aim is to implement a ngTable with data retrieved from a Web Service. To achiev ...

Comparing HTML5 and web services with MVC3

Within my organization, there is an ongoing discussion regarding the best approach to developing our future web applications. We currently have two distinct groups of developers who share common interests. All parties agree on utilizing html5, css3, and jQ ...

Every attempt to connect with the webservice via an ajax call has ended in failure

I am encountering an issue with a webservice call that I am making using jQuery's AJAX method. Despite receiving JSON data from the webservice when accessed directly through the browser, my site always triggers the error function rather than the succe ...

Execute a node.js package on a web server indefinitely

Currently, I am using a blog platform called specter, which launches once I execute the command npm start. The site is only accessible through the URL after running npm start. Whenever I stop the package by using command-c in the terminal, the site goes ...

MySQL Functions for PDO Connection

My code appears to be functioning correctly, but I want to ensure that it is both secure and appropriate for use. The purpose of this code is to establish a connection between my Android App and MySQL database. I am currently debating whether I should cre ...

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 ...

How to Include an Error Title and Message in JSON Response using PHP (Laravel)

$validation_rules = ['email' => 'required', 'password' => 'required']; $error_messages = ['email.required' => 'Email cannot be empty', 'password.required' => 'Pa ...

Error message: "Unable to access property 'Body' of null in Node-Soap"

Trying to utilize node-soap and encountering an issue: Attempting to access the service at : http://services.resumeparsing.com/ParsingService.asmx?op=ParseResume Successfully receiving a response when querying GetAccountInfo confirms correct account/serv ...

eliminating the xml labels in a json dataset

I'm curious about converting database data to JSON format using an asp.net web service. However, the data I receive comes with XML tags that I need to remove in order to work effectively with it. The structure of the data is as follows: ?xml version= ...

Retrieve JSON Data in Angular 2

I've defined a model with the following structure: export class ExampleData{ id: string; url: string; } When I make a call to a service, it returns the JSON data shown below: [ { "id": "abc", "url": "/path/to/folder" }, { ...

Receive header information from jQuery AJAX POST request for Set-Cookie

Currently utilizing YouTrack as our tracking system. YouTrack includes a rest webservice that allows you to fetch information from the system. However, I am encountering difficulties with authorization as I keep receiving a forbidden error. Upon sending a ...

Setting up webRTC and Express.js to function within the same domain requires proper configuration

Currently, I am in the process of creating a video conferencing website using node.js and express.js rather than apache. However, I am faced with some challenges when deciding on the best approach. The main goal is to have the server deliver the website t ...

Problem encountered when attempting to retrieve information from a web service in Angular 4

I am currently attempting to retrieve data from a web service API. However, all I can see is the data on the console. The web service requires an ID, so I input the ID first and then proceed to obtain the data related to that ID within the web service us ...

utilizing JSON to demonstrate the classic "Hello World" example

Exploring JSON for the first time since Android doesn't support SOAP. I notice the difference in parsing responses, but unsure about sending requests. Can anyone provide a simple 'Hello World' example code to show how requests are sent along ...

receiving JSON data in Java RESTful web services using the Jersey framework (javax.ws.rs.*)

I am facing an issue with passing a json contentType to the glassfish server where I have set up a java restful web service. My POST request is coming from Node.js using needle : var options = { json: true, headers: {'Content-Type':&apo ...

The Jquery AJAX function encounters a 403 Forbidden error while making a web service call

I encountered an issue with a web page that includes an AJAX method. Here is the code snippet: $(document).ready(function() { $.ajax({ type: "POST", url: "http://www.webservice.com/blahblah.asmx/blahb123", ...

Sending data to SOAP API using AngularJS

I've been struggling to send data to a SOAP API but have hit a roadblock. I've attempted various methods but continue to encounter errors when making the API call. The API URL is - and it requires data in XML format like <?xml version="1.0" ...

Exploring the Parameters of Google Maps API Web Service

Exploring the latest geocoding API at https://maps.googleapis.com/maps/api/geocode/json?address=Chiavari+Via+Preli+30&key=.... I'm curious about a few things regarding this: How can I extract just the latitude and longitude information from the ...

JQuery Success/Failure Callback does not trigger the function

I'm a beginner with jQuery and I'm trying to use it to call a Python web service and display a message based on the response received. Below is the current jQuery code I have: $(document).ready(function(){ $("#loginForm").submit( function () { ...

Uncover the secrets of extracting query parameters from a URL using the json api

When working with an external API, I need to access a JSON object from a specific URL. The tutorial for this API provides variables that can be accessed through the URL, but these variables have different names than the attributes of the JSON object. For ...

Java Web Services designed for efficiency and agility

Recently, I've been exploring the potential of using node.js for developing REST web services. While it captures my interest, I've encountered a limitation in its compatibility with Java. Unfortunately, node.js doesn't integrate seamlessly w ...

Differences between REST web services and JSON services

RESTful web services operate on a stateless server where URLs represent resources and utilize HTTP methods like GET, POST, DELETE, PUT for actions. I am considering developing a JSON service layer that relies on server-side state, with URLs representing r ...

Issue with jQuery validate plugin (remote validation not working as expected)

Having trouble validating a user value with the jQuery Validation plugin. The validation appears to be working correctly and calling the web service function as intended. However, even when the server function returns a true/false result, the field is alwa ...

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 ...

JQuery WCF Service is returning a 400 Bad Request response

I developed a WCF web service in ASP.NET 4.5 using VS2012 that delivers a JSON response successfully via the built-in webservice client. The endpoints are correctly configured in the Web.config file. However, I encountered an issue on the client side with ...

The websocket connection in npm automatically closes after a certain period of time

I am using the ws package from npm in my node.js project for socket programming. Here is the code snippet: var server = require('ws').Server; var serverConnection = new server({port : 5000}); serverConnection.on('connection',functio ...

Obtain Twitter updates in JSON structure

Looking to retrieve the latest Twitter feed in JSON format using a single URL. I have tried utilizing the following link: However, I am encountering issues with it not functioning correctly. Any suggestions on how to successfully obtain this data? ...

"Encountering a HTTP 500 Error while using jQuery Ajax with a Web

Exploring the functionality of a jQuery ajax request, I have developed two simple projects within a Visual Studio solution. One project serves as a web service while the other consumes it. If you are interested in checking out this small project, feel fre ...

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 ...

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 ...

Invoke a server-side function via JSON data

Need help with calling a server-side method from JSON. Below is the code I currently have: SERVER SIDE: [WebMethod] private void GetCustomer( string NoOfRecords) { string connString = "Data Source=Something;Initial Catalog=AdventureWorks;Trusted_Con ...

Experiencing timeouts while trying to connect to a SAS webservice from PHP

Issue I am facing a challenge with connecting a PHP script to a SAS web service (SAS Stored Process Web Application). Despite adjusting the socket timeout and SOAPClient timeout values, the script consistently times out. Interestingly, the SAS Web Service ...

Implementing AJAX in ASP.NET to Dynamically Update Quantities

I own a basket filled with products. I am attempting to boost the quantity by using the (+) button and AJAX. Here is the code snippet: Here is my AJAX code: function addToBasket(id) { var productId = id; var sessionId = Session.SessionID; ...