web-services

ASIHttpRequest call Restful web service?

十年热恋 提交于 2019-12-25 06:44:27
问题 Can ASIHttpRequest call Restful web service ? I knew that Restkit is good at it. If no,any easy way to convert ? Can we say that ASIHttpRequest is good at calling soap based web service ? Thanks for your comments ! 回答1: ASIHTTPRequest simply does a HTTP request. Nothing more, nothing less. Since REST is also just an HTTP request, you can use ASIHTTPRequest just fine with a restful web service. It doesn't do any parsing of the response, though, so if the response is JSON you still have to

ksoap2 AsyncTask PropertyInfo not recevied to webservice, why?

强颜欢笑 提交于 2019-12-25 06:34:55
问题 I need to send some parameters to my web service and get result. I have used ksoap2-android-assembly-2.4-jar-with-dependencies.jar in lib, my web service work properly : [WebMethod] public string TestParams(string userName, string password, string startRowIndex, string maximumRows, string OrderType, string IdOpera) { return userName + " - " + password + " - " + startRowIndex + " - " + maximumRows + " - " + OrderType + " - " + IdOpera; } In main java code : private class AsyncCall extends

What is the time delay between getting data and loading to UITableView

杀马特。学长 韩版系。学妹 提交于 2019-12-25 06:26:39
问题 I'm loading my UITableView from an Api call but although the data is retrieved fairly quickly, there is a significant time delay before it is loaded into the table. The code used is below import UIKit class TrackingInfoController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet var table : UITableView? @IBOutlet var indicator : UIActivityIndicatorView? @IBOutlet var spinnerView : UIView? var tableArrayList = Array<TableData>() struct TableData { var dateStr:String = "

Apache CXF Webservice failing on AJAX call

╄→гoц情女王★ 提交于 2019-12-25 06:13:22
问题 We have developed a webservice based on Apache CXF . This is working fine when accessed normally that is using APIGEE or by using a JaxWsProxyFactoryBean (A clinet for Apache CXF ). But when I tried to access this by providing the SOAP Address through AJAX call it is giving me the following exception: INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: No such operation: (HTTP GET PATH_INFO: /tata-ws-1.0/TataWeb) at org.apache.cxf.interceptor

MS project server Error while updating team through SoapUI

和自甴很熟 提交于 2019-12-25 06:12:51
问题 I want to update project team of project using Soap UI, But i m getting GeneralUnhandledException while doing the operation through Soap UI. Following is my request body and response : URL of asmx service : http://vmw2k8sp136167:30/_vti_bin/PSI/Project.asmx Request : <proj:QueueUpdateProjectTeam> <proj:JobUid>e0b1816d-daf7-e411-97e7-005056ad0852</proj:JobUid> <proj:sessionUid>e0b1816d-daf7-e411-97e7-005056ad0753</proj:sessionUid> <proj:projectUid>e0b1816d-daf7-e411-97e7-005056ad0472</proj

can we convert Odata metadata to C# code (datacontract)

感情迁移 提交于 2019-12-25 05:38:08
问题 there is a odata webservice, i can get metadata from http://service-uri.com/$metadata which contains definition of all its model object, is there any tools that i can use, to convert that metadata xml to data contract class in C#? 回答1: The WCF Data Services Client library can generate C# classes for you from the $metadata endpoint. These classes won't have the [DataContract] attribute, but you can use them with the rest of the client library to interact with the service. To use this feature,

Error: Validating XML against XSD in JDev 11g

南楼画角 提交于 2019-12-25 05:36:16
问题 I am using JDEV11.1.1.7.0. I am a newbie to Webservices and SOAP. I am building a Web Service from an Existing WSDL. i.e. I create an XSD and WSDL and then creating a Web Service over it. I am able to test the web service. I am getting the output as required. But, when i validate the XML against the XSD, it has an error. The XSD is prepared by referring to a very popular blog http://one-size-doesnt-fit-all.blogspot.in/2008/11/creating-jax-ws-web-services-via-wsdl.html Request XML taken from

Exception in AsyncTask due to enormous number of data

感情迁移 提交于 2019-12-25 05:25:34
问题 I am connecting from my Android app to a RESTful Web Service in Java. I am using AsyncTask to fetch the data. It works perfectly for normal amount of data. but when I have a huge amount of data, an Exception happens in the Android app. I tried to catch this exception, but I couldn't: private class LoadingDataFromServer extends AsyncTask<Void, Void, Void> { private boolean outOfMemory = false; @Override public void onPreExecute() { progress = ProgressDialog.show(main_activity, null,"Loading ..

Get Custom Class from webservices

自闭症网瘾萝莉.ら 提交于 2019-12-25 05:24:09
问题 After calling Webservices , it returns an object (This object is a custom object class) to client. So, I want to convert from this object to custom class. -Webservices: [WebMethod] public Cls_ROLES GetRoles(int firstNum) { Cls_ROLES o = new Cls_ROLES(); o.Role_ID = 2; o.RoleName = "binh"; return o; } -Client: +Function: public object CallWebService(string webServiceAsmxUrl, string serviceName, string methodName, object[] args) { System.Net.WebClient client = new System.Net.WebClient(); //

How to find my php.ini in my webhost?

£可爱£侵袭症+ 提交于 2019-12-25 05:23:02
问题 I'm having an error log that says: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. I want to change the settings on my php.ini on my webhost but i cant find it. 回答1: If you are on a shared hosting, it's most likely that you do not have access to the php.ini However, you can change the desired value by adding this to your .htaccess: php_value max_input_vars 3000 //you can change 3000 to whatever suits your needs 回答2: If you dont have have php.ini