web-services

How to find my php.ini in my webhost?

我怕爱的太早我们不能终老 提交于 2019-12-25 05:22:42
问题 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

How to find my php.ini in my webhost?

浪尽此生 提交于 2019-12-25 05:22:37
问题 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

Prestashop 1.6 Webservice Order

 ̄綄美尐妖づ 提交于 2019-12-25 05:21:11
问题 I'm trying to finish my custom module to import clients, addresses, carts and orders from a webservice. Clients, Adresses and Carts imports works fine but when trying to insert new Order, it returns this error: This call to PrestaShop Web Services failed and returned an HTTP status of 500. That means: Internal Server Error. If i take a look to my apache2 error.log I can see this error: PHP Fatal error: Call to a member function validateOrder() on boolean in /var/www/html/prestashop_pool

Web.config - PayPal IPN Listener - HTTP error code 500: Internal Server Error

空扰寡人 提交于 2019-12-25 05:15:14
问题 I am trying to get my PayPal IPN Listener to work on my Live environment, it works on Staging perfectly and the issue is something to do with the web.config file: (http://pastebin.com/B8YhJEZK) I am using "https://developer.paypal.com/us/cgi-bin/devscr" and the Instant Payment Notification (IPN) simulator to test the web service however I am getting the following: "IPN delivery failed. HTTP error code 500: Internal Server Error" 回答1: You might want to read this announcment from PayPal in

How to increase the MaxStringContentLength size when creating the XML reader

折月煮酒 提交于 2019-12-25 05:14:38
问题 I am getting following error: The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'InsertQuery'. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 33788. To increase the size of MaxStringContentLength, i

Java web service not giving error message

此生再无相见时 提交于 2019-12-25 05:12:49
问题 I am doing a simple Hello World example of java webservices, which is of document style from this link, he told that at step Number 3 , we will get an error message "Wrapper class com.mkyong.ws.jaxws.GetHelloWorldAsString is not found. Have you run APT to generate them?". But with out using wsgen, I am able to run my application with out any exception and able to see the output at client end. I am unable to find the reason , why didn't I get the error message? Here is my code: HelloWorld.java

Cyrillic letters are incorrectly encoded in the C# Web Service [duplicate]

冷暖自知 提交于 2019-12-25 05:10:15
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Parsing UTF8 encoded data from a Web Service I've written small web service which inserts data to the DB. It takes parameter "comment": CreateBuy(DateTime date, String cardNumber, Decimal amount, String comment) { ... } It works fine with latin letters, but when I try to pass value of comment = "Продукт1" it passes to the stored procedure value @comment = '?YN€????N???N‚1' instead of 'Продукт1'. How can it be

Which .net exception to throw when the server throws an unexpected exception via webservice

纵饮孤独 提交于 2019-12-25 05:08:33
问题 Which .net exception should throw the client (or better re-throw), if it catches any unexpected exception from the server (e.g. wrapped in as FaultException via WCF, the server can be written on java) to handle it further on client as follow: The client shows the user a message about the possible bug in client/server The client provides developers the details of this exception (e.g. per e-mail) Example in the business layer: var client = new MyWcfClient()); try { // Try get data. var data =

Web service with database : SqlException

北慕城南 提交于 2019-12-25 05:07:29
问题 I wrote a web service which works with SQL Server'08 Database When I try to invoke a web method, I get this: System.Data.SqlClient.SqlException: Login failed for user 'IIS APPPOOL\ASP.NET v4.0'. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet

ASP.NET Web API how to authenticate user

核能气质少年 提交于 2019-12-25 05:04:07
问题 I'm trying to create a simple user authentication function but I just can't get it to work. Here is the code I'm working on: public class LoginController : ApiController { private void SetPrincipal(IPrincipal principal) { Thread.CurrentPrincipal = principal; if (HttpContext.Current != null) { HttpContext.Current.User = principal; } } public bool Login(string token) { //Check token if (.....) { //Authenticate user var identity = new GenericIdentity("Test user"); SetPrincipal(new