web-services

Display Latitude and longitude on a webserver

巧了我就是萌 提交于 2019-12-25 18:24:55
问题 I have been trying to display the gps coordinated to a web server since several days but havent come to any conclusion yet. What i am trying to do is to get the latitudes and longitudes of a person and then display them on the webserver. I got a php server and mysql database. There is no error but There is nothing displayed on the url public class UseGps extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super

Web Service check in SOAP UI with Session

杀马特。学长 韩版系。学妹 提交于 2019-12-25 18:24:01
问题 I have a simple web-service on .Net 3.5 in which there is a method of HelloWorld() as below [WebMethod(EnableSession=true)] public string HelloWorld() { if (Session["Count"] == null) { Session["Count"] = 1; } Session["Count"] = Convert.ToInt32(Session["Count"]) + 1; return "Hello World " + Session["Count"]; } which works in ASP.NET web-browser and IIS and returns output Hello World 1, 2, 3, 4 and soon.... depend on how much page open or refresh. After some time according to requirement of

How can I use ASP.NET to check if cookies are enabled without having a web page?

懵懂的女人 提交于 2019-12-25 18:04:45
问题 I am working on a desktop application that automates numerous websites and processes the returned data. This application will be run on a server and the user will connect with remote desktop. The automation breaks when the server doesn't have cookies enabled, and instead of having the application stop working, I would like to check the server settings and tell the user why it isn't working. To do this, I decided to create an ASP.NET Web Service. I figured that the web service could store the

How can I use ASP.NET to check if cookies are enabled without having a web page?

China☆狼群 提交于 2019-12-25 18:03:44
问题 I am working on a desktop application that automates numerous websites and processes the returned data. This application will be run on a server and the user will connect with remote desktop. The automation breaks when the server doesn't have cookies enabled, and instead of having the application stop working, I would like to check the server settings and tell the user why it isn't working. To do this, I decided to create an ASP.NET Web Service. I figured that the web service could store the

Consuming non-asmx SOAP 1.1 Web Service in C# with Header Security

半城伤御伤魂 提交于 2019-12-25 17:49:18
问题 First time poster so please take it a bit easy on me if I break any posting rules - I have read them and I think I'm right. I've been searching for a while before posting and can't seem to find a guide on what I am trying to do so I thought I would post here. I need to write a C# .NET 3.5 program to consume a web service developed in Java. I have practice consuming ASMX web services in .NET using Web References from my experience writing Dynamics CRM plugins and software but this has me

How to create webservice in java using apache tomcat using PostgreSQL [closed]

柔情痞子 提交于 2019-12-25 17:21:41
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I want to know how to create web service. I am an android developer. Which method is suitable in android web services, actually we are using server side apache tomcat in PostgreSQL so please give me any ideas

Create SOAP Request from JWSDL

我们两清 提交于 2019-12-25 17:01:51
问题 Hey there, I have been working with JWSDL to allow me to programatically work with WSDL files. I now want to create SOAP requests that can be sent to the server. How do I generate these requests from the JWSDL classes? any ideas? thanks! 回答1: You can do it like this: Here, i have created a sample web service which takes two parameters number1 and number2. And gives the response as number3 (= number1 + number2). Web service is already deployed on localhost:8080 (tomcat server) Your answer

Get first and last column value in C#

我的未来我决定 提交于 2019-12-25 16:52:07
问题 I am using the following code in my .NET web service that gets its data form a CSV file. private List<Item> ietms = new List<Item>(); public ItemRepository() { string filename = HttpRuntime.AppDomainAppPath + "App_Data\\items.csv"; var lines = File.ReadAllLines(filename).Skip(1).ToList(); for (int i = 0; i < lines.Count; i++) { var line = lines[i]; var columns = line.Split('$'); //get rid of newline characters in the middle of data lines while (columns.Length < 9) { i += 1; line = line

cors not working with azure mobile service .net backend

耗尽温柔 提交于 2019-12-25 16:49:35
问题 we are running into a permissions problem and what ever page we look at we can't seem to get it working. We have two parts. The mobile service in Azure and the webpage (client). Webservice is called "https://mobileservice.azure-mobile.net/tables/program.... and the client webpage is called "http://azure-webservicesclient.azurewebsites.net". We enabled on "https://mobileservice.azure-mobile.net" <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*"

jsonp with asmx error 500

假如想象 提交于 2019-12-25 16:48:36
问题 when i try this it works perfact function test() { debugger; $.ajax({ url: "http://testweb.com/myAPI.asmx/GetPersonTest", type: "GET", contentType: "application/json; charset=utf-8", data: { userid: 1 }, dataType: "jsonp", success: function(json) { alert(json.UserID + ' ' + json.FirstName + ' ' + json.LastName); }, error: function() { alert("Hit error fn!"); } }); } in the same asmx, i have another method called as below function Post_test(){ var newURL = window.location.protocol + '//' +