web-services

Flex Webservice and Android

爷,独闯天下 提交于 2020-01-07 04:35:17
问题 I have a problem when I try to access to a webservice from a mobile application. When I try the address of the webservice on my browser, it works, when I try in my application on the emulator of Flash Builder, it works. But when I try it on my phone, it doesn't work! I have access to the web in my application. I just create the webservice in a view in MXML. <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" title

call and post value webservice with jquery mobile or phonegap

廉价感情. 提交于 2020-01-07 04:00:48
问题 i desing my page with jquerymobile and i do native app for android with phonegap. it is working but in my page i have form and i have to get some value and after that i will send value/data with webservice. How can i do that ? i research about that but i found some documents these are so complex and not working. so do you have some exapmle/sample ? Thanks 回答1: $.ajax({ url: PublishUrl, type: 'POST', data: JSON.stringify(postData), contentType: "application/json;charset=utf-8", success:

android call soap webservice- getting message of Server was unable to process request

对着背影说爱祢 提交于 2020-01-07 03:52:11
问题 I am very new to soap webservice i need help... this is my code i am not able to understand the problem.. please help.... private static String URL = "MYURL.asmx"; private static String SOAP_ACTION = "http://tempuri.org/methodname"; private static String NAMESPACE = "http://tempuri.org/"; private static String METHOD_NAME = "methodname"; //Create request SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("parm1", "11111111"); request.addProperty("parm2", "111");

How to add Basic Authorization to a wsdl on startup with cxf?

非 Y 不嫁゛ 提交于 2020-01-07 03:10:09
问题 I have a wsdl client and autogenerated classes with cxf . The wsdl's themselves require basic authorization to be accessd, thus I add the following to each BindingPort : Map<String, Object> requestContext = ((BindingProvider)sc).getRequestContext(); requestContext.put(BindingProvider.USERNAME_PROPERTY, userName); requestContext.put(BindingProvider.PASSWORD_PROPERTY, password); Problem: the evaluates first when running the webservice client. But before that, cxf is trying to initialize the

How to query OSM from the server

家住魔仙堡 提交于 2020-01-07 03:06:10
问题 Is there any way to connect to the web server of OpenStreetMap? I want to receive the speed limit information given a geoLoc "lat and Lon". I thought of solving this issue by creating a huge database encompases the node's lat and lon and the speed limit and then query the speed limit given a specific geoLoc. but now i am wondering is it possible to connect directly the OSM server and query the speed limit given a specific geoLoc?! whic approach is more efficient? 回答1: You can use Overpass API

How to query OSM from the server

ぃ、小莉子 提交于 2020-01-07 03:06:06
问题 Is there any way to connect to the web server of OpenStreetMap? I want to receive the speed limit information given a geoLoc "lat and Lon". I thought of solving this issue by creating a huge database encompases the node's lat and lon and the speed limit and then query the speed limit given a specific geoLoc. but now i am wondering is it possible to connect directly the OSM server and query the speed limit given a specific geoLoc?! whic approach is more efficient? 回答1: You can use Overpass API

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'

孤街浪徒 提交于 2020-01-07 03:04:11
问题 Here i am consuming java rest webservices in asp.net,while calling service in asp.net i am using ajax to call webservice,below is the code i have used $.ajax({ type: "POST", url: 'http://localhost:9090/EmployeeService/employee/create', data: { id: 4, first_name:"narayan", last_name:"phone", email:"phone", phone:4545454545 }, contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccessCall, error: OnErrorCall }); when i run this i get error saying as below

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'

你。 提交于 2020-01-07 03:04:00
问题 Here i am consuming java rest webservices in asp.net,while calling service in asp.net i am using ajax to call webservice,below is the code i have used $.ajax({ type: "POST", url: 'http://localhost:9090/EmployeeService/employee/create', data: { id: 4, first_name:"narayan", last_name:"phone", email:"phone", phone:4545454545 }, contentType: "application/json; charset=utf-8", dataType: "json", success: OnSuccessCall, error: OnErrorCall }); when i run this i get error saying as below

Android:unable to get data from webservice using kSoap

∥☆過路亽.° 提交于 2020-01-07 02:56:07
问题 hi in my app i am trying to check the username and password in database from webservice and if its true will show success message or failed message, but unable to show the status message public class AndroidLoginExampleActivity extends Activity { private final String NAMESPACE = "http://ws.userlogin.com"; private final String URL = "http://localhost:8080/Androidlogin/services/Login?wsdl"; private final String SOAP_ACTION = "http://ws.userlogin.com/authentication"; private final String METHOD

No HTTP resource was found that matches the request URI

蓝咒 提交于 2020-01-07 02:40:41
问题 Here is my ajax call which is calling GetFileContents: views.titleClick = function (e) { var grid = $("#documentsGrid").data("kendoGrid"); var docId = grid._data[0].DocumentId; $.ajax({ type: "GET", //"Document/GetByReview?reviewId=" + that.selectedReview.ReviewId; url: constants.serviceUrl + "Document/GetFileContents?DocumentId=" + docId, contentType: "application/json; charset=utf8", }) }; Below is my Controller GetFileContents [HttpGet] public HttpResponseMessage GetFileContents(int id) {