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.

Removing unnecessary extra characters from both the beginning and end of a SOAP response when using PHP SoapClient

When I attempted to retrieve data from a SOAP API server using PHP, I encountered an issue with the response code. The code "looks like we got no XML document" was returned. try { $soap = new SoapClient($wsdl, $options); $data = $soap->GetXYZ($ ...

User account management in AngularJS web services

My latest project involves developing a web application on Azure. The backend is powered by a web API service while the frontend is supported by AngularJS, both hosted on Azure. I am now looking to implement a login page with individual user accounts, but ...

Drupal 7 Web Service Implementation

Currently, I am managing a Drupal 7 codebase that includes a web service utilized by external iPhone and Android applications. The URL for this web service is like so: http://example.com/api/module_name/find.json?param1=xxx&param2=xxx I need to make a ...

What steps can I take to protect my website from malicious shells and malware uploads?

I run a website for sharing images and videos, but I'm concerned about its security. I've noticed that anyone can upload harmful shells or malware instead of legitimate content. I'm curious how YouTube and Facebook are able to prevent such vulnerabilitie ...

What is the process for transforming an HttpEntity into JSON format?

Is my approach correct if I want to fetch JSON data from a web-service and parse it? HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet(url); HttpResponse response; try { response = httpclient.execute(h ...

Struggling to develop a C# (asmx) Web service utilizing the POST method and accepting FormData input

Could you kindly share a link with me so that I can follow it to create my first web service? This service needs to take data in form data and output it in JSON using the POST method. I am developing this service for both Android and iOS apps. Note: I am ...

The importance of ensuring the security of JSON and web services

I have a unique situation where I am seeking specific advice on multiple questions related to my ASP.NET app. The application interacts with a SQL Server database through a web service, using JSON for creating JavaScript graphs and charts. Given the extens ...

ASP.NET - Severely struggling with connectivity issues involving AJAX/JQUERY

I have developed a real-time update script that refreshes certain div elements with server-side information every second. The issue I am facing is that the script seems to be causing heavy usage, as even my mouse animation in Google Chrome keeps loading. ...

Launching a web service on my Google App Engine platform

We developed a basic application and successfully ran it locally using GoogleAppEngineLauncher (GAEL). After that, we deployed the application to our appid with GAEL again, and everything was working smoothly. Next, we created a web service. We tested it ...

ASP.NET JSON web service for the disillusioned php enthusiast

Having worked as a PHP developer for a number of years and creating numerous APIs using JSON, I find it quite simple to create a URL that performs a task and returns json_encode($array). Piece of cake, right? However, my previous experience as a .net deve ...

Unveiling the Secrets: Reading .Net Web Service in PHP

After successfully reading the WSDL from SoapClient, I attempted to pass a value to a web method and read the results: $client = new SoapClient("restaurant.asmx?wsdl"); $param = array('search_keywords'=>$search_text); $result = $client->__soapCall ...

How to use Newtonsoft to deserialize a JSON string into a collection of objects in C#

Here is a sample code for a class: using System; public class AppEventsClass { public string title { get; set; } public string description { get; set; } } Imagine retrieving the following JSON string after calling a remote webservice: {"d":"[{ ...

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

Is it possible to send Page.Request to a Web Service?

Can a Page.Request object be passed to a Web Service? I am in need of a Web Service that can supply data to a browser client. However, I am facing the challenge of needing an object that includes Page.Request in the signature in order to retrieve this dat ...

The enduring resilience of intricate Java components (SQLite, Serialization, JSON) and the structured design of client-server applications

I'm currently working on an Android application that retrieves data from the internet, among other tasks. The project was initially started by someone else who is no longer part of the team. Now, I am tasked with converting it into a light client applicati ...

Delivering an Angular2 application from a base URL using Express

I currently have an Angular2 application running alongside a simple express server. Is there a way to only display my application when a user navigates to a specific route, like '/app' for example? If so, how can this functionality be implemented? My goal ...

Obtain the raw JSON URL from the web

Is there a website that can provide me with a constant URL for my JSON code so that I can edit it and see the changes reflected live on the same link? Currently, when I try to edit JSON code on gist.github.com, the URL of the raw format changes. Any sugg ...

Error message "Authorization issue occurred while trying to call a function in the PHP webservice."

I am facing an issue with calling a web service. It successfully connects and returns its methods, however, when I call one of the functions, it throws an unauthorized error. Here is my code try { $service = new SoapClient("http://www.go-to-orbit.com/oo ...

AutoComplete not functioning properly in ASMX file on IIS6 Windows 2003 virtual server

After developing an asp.net 4.0 AJAX/JQUERY Autocomplete.asmx webservice that worked perfectly on my localhost, I faced a challenge when trying to publish the website and transfer the files to an iis6 Windows 2003 virtual server. The service simply did n ...

PHP WebService, exclusively containing private variables within an empty array

I'm attempting to create a PHP webservice. In the "Aluno" class, there are 2 private variables. After struggling all day with this, I finally discovered that if I change those variables to public, everything works as expected. However, if they remain priv ...

I could really use some assistance with the concept of "AJAX" - can anyone help

After spending several months working with AJAX, I have come to understand the typical request lifecycle: Sending parameters to a background page (PHP/ASP/HTML/TXT/XML ... what other options are available?) Performing server-side processing Receiv ...

How can I transmit data to a jQuery web-service request?

I have been following various online tutorials but haven't had any luck so far. My goal is to create a basic example that successfully passes a value to a web service call. What am I missing here? I can achieve this easily with HttpHandlers...why is it p ...

What is the process for inputting client-side data using a web service in ASP.NET?

Currently experimenting with this: This is my JavaScript code snippet: function insertVisitor() { var pageUrl = '<%=ResolveUrl("~/QuizEntry.asmx")%>' $.ajax({ type: "POST", url: pageUrl + "/insert_Visitor ...

Guide on accessing a web service using a PHP POST request

Today, I encountered a challenge where I need to access a web service that contains JSON data. In order to do so, I was instructed to utilize the PHP POST method to log into the web service. The instructions included an array with 3 key-value pairs. { " ...

Exploring the process of fetching a JSON object using the POST method from a client

My task involves sending a JSON object from the client to the server via a POST request. The JSON data is hardcoded on the client side. Here's a snippet of my server program (test.java) which is purely for learning purposes, so I need a clear explanation.. ...

I am unable to retrieve a list using Jquery's ajax function

Can someone please help me diagnose the issue with the code below and why it's not functioning properly? This code snippet is from a webmethod in an aspx.cs page. [webmethod] [ScriptMethod(ResponseFormat=ResponseFormat.Json)] public sta ...

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

Transmitting various parameters with XMLHttpRequest and Windows Communication Foundation (WCF

My goal is to pass multiple parameters to a WCF service, where the server side logs incoming data. I can see errors 1 and 2 being logged, but not 3 and 4. I attempted debugging to step through the code, but the client-side javascript call isn't triggering ...

Having trouble with testing axios web service promises to return results using Jest in a Vue.js application

In the process of developing a new application with Vue.js and axios, I am focusing on retrieving stock market details based on company names. To kickstart the application, I am compiling all the names of US-based S&p 500 companies into a JavaScript ar ...

The transmission of information via Java, Ajax, and json through web services is currently experiencing issues

Seeking assistance with a persistent error in my code. It keeps returning an error, but no error message is displayed, only the console.log. Any suggestions on how to debug this issue or if you could identify what's wrong? Thanks! Sami function fo ...

Using jQuery to retrieve a List<> from an ASP.NET WebService

This is my WebService Method: [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string retrieveImages() { DBservices DBS = new DBservices(); List<string> ImageUrls = new List<string>(); try { DBS.g ...

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

Trouble parsing Ajax response data from web service in JavaScript

When I make an ajax call to a web service, it appears like this - $.ajax({ cache: false, type: 'POST', url: 'callWebService.asmx/getData', dataType: 'json', data: object, success: function ...

Learning how to interpret the output of a jQuery post() call to a web service using jQuery and AJAX

I am currently working on sending data to a web service using jQuery's post() function. Although I have received a successful response, I am struggling to identify the specific data being returned. This is the code I have written so far: var responseData ...

Ways to send information to browser javascript from Spring MVC controller

Looking for the most efficient method to transfer data from Spring MVC to JavaScript. Let's say there is an array in JavaScript: var myArray = new Array(); And in the Java backend, there is another array: int[] myArray = new int[100]; What would ...

Dealing with RxSwift observable errors interrupting the chain of events - Utilizing Rx for web services: strategies for

As a newcomer to RxSwift, I have extensively studied various documentations and talks but still feel like I am lacking some fundamental concepts. In my app, I encounter a challenge where the base URL of a RESTful web service is not known at build or start ...

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

Utilizing Jersey Rest Webservices and Java to Extract Data from JSON Arrays

Receiving a JSON array from an iOS client and aiming to parse it on the server side using Java, Jersey, and Gson. The JSON array is sent via POST method from iOS. The hurdle lies in figuring out how to save the JSON data into a Java class. Shown below is t ...

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

Comparing the Efficiency of Caching JSON Strings and Java Objects

One of the strategies I use in my web services is caching the result with memcached. I have two options for caching: either cache the resulting JSON or cache the source object. However, when caching the source object, I need to convert it to JSON every t ...

Talend - Constructing URIs using values retrieved from a list

Struggling to feed a MongoDB collection with values from JSON-providing web services, particularly due to interdependency between URIs. For example, the URI returns a JSON collection structured like this: { "COD_AGENCIA", "521800300", "NAME", "PORANGATU" ...

Parse the JSON string into a list of C# objects when the string is received as NULL in the request

I'm currently working on a code snippet that converts a JSON string into a list of objects: public class rest_all { public string restaurants { get; set; } } public class rest_all_data { ...

Anticipated BEGIN_OBJECT yet encountered BEGIN_ARRAY at line 1, character 2 (slight adjustment)

In this scenario, I have a web service that provides JSON data in the following format: [ { "_OrderDetails": [ { "ProductName": "FUCHS SUPER GT SAE 10W30 6X5 / FP10100010102", "TotalAfterDiscount_Lc": "7500", "MeasureU ...

Script causing issue with webservice communication

My webservice seems to be malfunctioning. Here is the script that I am using: <script src="Scripts/jquery-1.11.1.min.js"></script> <script> $(document).ready(function () { $('#btn').click(function () { ...

The data in AngularJS is not being successfully incorporated into the service

Utilizing angularjs and ajax, I am attempting to retrieve data from a webservice and pass it to the controller. To accomplish this, I am using a holder (a factory method or service). The setup works fine without the webservice, but when trying to fetch dat ...

techniques for synchronizing web service protocols and documents

I posted this query on programmers, but there hasn't been much activity yet... if this isn't the right place, I may just withdraw the question. Currently, I am in the process of creating a web service (PHP+JSON) to synchronize with my iPhone app. The prim ...

"Exploring the Relationships in Entity Framework: Understanding the Connection Between Child and Parent Entities through

I've been working on a project utilizing EF5, Vb.net, AJAX (Javascript), ASMX-Webservices and HTML. Here's my query concerning classes: Public Class Company Public Property CompanyId As Integer Public Property Name As String Public Overridab ...

Obtain JSON data instead of XML data from a web service through Ajax with the option 'contentType' set to 'false'

Upon making an AJAX call to send an image file to one of my web service (.asmx) methods, I encountered a problem where the web service returns XML instead of JSON. This issue arose because I needed to set the contentType to false, in order to successfully ...

The web service that retrieves XML data using jQuery functions perfectly on a local environment, but faces issues when deployed to

I have a webmethod that returns data. I am using jQuery to call this function with its Content type specified as XML. The interesting issue is that it works fine on my local machine but not on the server. Here is the code snippet I am currently using: var ...

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

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

Leveraging MVC 4 for Web Service Development

I am currently in the process of developing a web service using MVC 4 and HTML for the client interface. One issue I am facing is that my HTML file is located outside of the application, while my MVC service is running on Visual Studio IIS Express. I'm uns ...

In search of a highly efficient webservices tutorial that provides comprehensive instructions, yielding successful outcomes

I've reached a point of extreme frustration where I just want to break things, metaphorically speaking, of course. For the past week, I've been trying to learn how to create a web service using C# (whether it's WCF or ASMX, I don't really care as long as ...

Suggestions for resolving the "Undefined" problem in my JQuery Ajax web service request

Below is the JavaScript code I've written: function testService(test) { var data = "{param2:\"" + test + "\"}"; $.ajax({ type: "POST", url: "WebService1.asmx/HelloWorld", dataType: "json", data: data, contentType: "appli ...

PHP web service issue

Hey there, I'm facing an issue with my webservice that requires a database handler class when receiving a request. It all works perfectly fine when tested locally, but as soon as I hosted the service on a server, these two lines seem to be causing tro ...

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

Calling ASPX method remotely and receiving undefined data

I'm still fairly new to ASP.NET and web services. I've encountered an issue where I am calling a web service from a *.aspx page, and the web service is returning the correct output. However, when I call the *.aspx method from an external HTML pag ...

Issues encountered while accessing REST in Angular 6 due to Access-Control-Allow-Origin restrictions

I am currently facing an issue with loading data from a REST source into my Angular 6 app using http: HttpClient from '@angular/common/http'. When I try to call the app in the browser using ng serve --open, it seems like CORS is causing a problem ...

Received an undefined response from jQuery Ajax request to a webservice

I'm facing a small issue with my webservice call. I've thoroughly debugged it and confirmed that the webservice is being called with the correct value and returning the expected result. However, when I check the alert message in the completed fun ...

Prestashop Webservice Feature: Managing Multiple Cart Rows

I've been dealing with PrestaShop 1.6 and have successfully set up the webservice (API) with Prestashop, but I've encountered a minor issue with the cart adding process. Essentially, when I try to create my cart, each additional item I add (cart_row) unde ...

Limit entry to a webpage based on the user's category

Greetings, I have successfully implemented a login feature using C# webservice and ajax calls. However, there seems to be a security issue that I need assistance with. In my application, I have two types of users - admin and regular user. The problem arise ...

A web service that retrieves data in the form of a JSON object and returns

I need assistance with creating a webservice in .NET Framework 4.0 that will generate and return data in json format. Here is the code I have for the WebMethod: [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string GetLobMonth(st ...

Contemplating the protection of an Android online platform

In the process of developing an Android app to connect to a http server, I have implemented a web service that sends JSON data to a PHP script on the server. This PHP script then accesses the desired database and inserts the JSON objects. However, my focu ...

Recommendation for a web service Python framework

In the process of developing a web service that will facilitate file upload/download, user management, and permissions, I am seeking guidance on which web framework to utilize for this task. This service will essentially function as remote storage for med ...

Guidelines for forming a JSON variable using a SOAP Response

Currently using ASP.NET 4.0, I am faced with the task of sending a SOAP (XML) Response to a JSON variable in javascript on the page. The aim is to access the variable and its properties just like any other JSON variable would be accessed. The challenge lie ...

Ways to eliminate the absence of the 'Access-Control-Allow-Origin' header in an error message when using a Java-based web-service server

I'm currently working on developing a webservice using Java as the server and Javascript as the client. My goal is to send a Post request with JSON data and receive a Post response with JSON data from the server. However, since the client and server have d ...

A guide to resolving cross-origin resource sharing issues using a reverse proxy

After creating a JavaScript web application for processing documents, I am now looking to integrate with web services like NLTK-server, TIKA-server, and SOLR for further analysis. While I can successfully access the REST endpoints of these services using c ...

The server returned a 500 Error when attempting to send a JSON object to an .ASMX

Short and sweet question: Why do I get a 500 error when passing a JSON object to an ASMX webservice? If I define the params as individual variables (e.g. int ID, int OrderHeaderID), I don't encounter the error. I'm puzzled because I've successfully passed ...

Validation with Jquery in an ASP.NET C# login form utilizing a webservice

Hi there, I've been working on a login form in asp.net that should redirect to another page. To handle user validation, I created a webservice using jQuery but I'm facing an issue where the ajax data is returning undefined and the page is not redirecting. ...

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

One single block preventing all asynchronous jQuery/ASP.NET AJAX calls

My JQuery application is set up to make four asynchronous calls to four different asp.net web services, each on its own timer. However, I noticed that when I introduced a Thread.Sleep(10000) command in one of the web services, it ended up causing delays i ...

GridPanel Store Failing to Load

Having trouble loading a simple GridPanel with a Store created in the code behind. I've double-checked everything, but when I add the Store to the GridPanel, it just displays "Loading..." indefinitely without actually loading anything. This is how the Gri ...

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

Comparing MVC's return Json() Method to JSON-Based Web Services

I am eager to offer a service on my website that allows any user to request JSON data. Ultimately, I hope that users will utilize this service frequently. My website is built using the asp.net MVC framework and I am exploring the best approach for accompl ...

Using PHP, you can set header data in your cURL

Trying to utilize the jobcrank feeds api which requires data to be sent in headers. In order to make a request, it should follow this format: POST /v2/QueryService.asmx/QueryJob HTTP/1.1 Host: api.jobcrank.com Content-Type: application/x-www-form-urlencod ...