Category: Java Frameworks
How to create WSDL web service client using Maven
Maven provides apache cxf plugin to generate web service client. We have used below code in our pom.xml file to generate java artifact classes (web service client). There are two ways to generate client code: Using complete WSDL URL Using
Netsuite | Invalid email address or account number error on NetSuite, but passed correct credentials
ERROR: Invalid email address or account number error on NetSuite, but passed correct credentials. Need to authenticate NetSuite sandbox account through java application and fetch all the contacts. Below is the link to the WSDL file used to log in:
Java | Delete empty string from list or array
public class deleteEmptyStringQuick { public static void main(String[] args) { String[] emptyStringArray={“test”,”test1″,””,”test3″,””,”test4″}; ArrayList arrayListOfEmptyString=(ArrayList) Arrays.asList(emptyStringArray); //normally we will do this ArrayList filteredList = new ArrayList(); for(String string: arrayListOfEmptyString) { if(!string.isEmpty()) { filteredList.add(string); } } //You can achieve this with single
Salesforce | Change value of an object’s field on button click and reload page
We can change the value of an object’s field on button click by using javascript like this (and this will also reload the page): { !REQUIRESCRIPT(“/soap/ajax/29.0/connection.js”) } var rec = new sforce.SObject(“Contact”); rec.Id = “{!Contact.Id}”; rec.IsActive= ‘true’; var result =
Java | Configure Tomcat as a service on linux
Configure Tomcat service in Linux: These instructions are related to installing and running Tomcat 7 as a service, which means that it will be launched at system boot and will be closed properly on system shutdown. Running tomcat as a
ACORD Forms autofill
We get this request from a lot of clients in US insurance industry who want to generate ACORD forms automatically, means they want data of corresponding insurance Policy and other objects filled automatically in the editable ACORD PDF. Most of
java.sql.SQLException: Data truncated for column date at row 1
You may face this exception while trying to insert data in a mysql table using hibernate: java.sql.SQLException: Data truncated for column date at row 1 While there can be different reasons of this problem, in our case it was occurring
Zoho Creator or PHP based solution?
A lot of Zoho users want to extend the capability that Zoho CRM provides out of the box. For example, one of our clients wanted to build a custom Quote Generator. They initially wanted to get the customization done to
Execute Javascript code on browser back button
Here is sample code to trap browser back button and execute Javascript code on this event: jQuery(document).ready(function($) { if (window.history && window.history.pushState) { $(window).on(‘popstate’, function() {//when back is clicked popstate event executes //code here will execute on back click });