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($ ...
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 ...
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¶m2=xxx I need to make a ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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":"[{ ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Currently experimenting with this: This is my JavaScript code snippet: function insertVisitor() { var pageUrl = '<%=ResolveUrl("~/QuizEntry.asmx")%>' $.ajax({ type: "POST", url: pageUrl + "/insert_Visitor ...
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. { " ...
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.. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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" ...
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 { ...
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 ...
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 () { ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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; ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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", ...
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 ...
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 ...