Created
March 18, 2011 17:48
-
-
Save hshemer/876522 to your computer and use it in GitHub Desktop.
Main+Endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SOAPClient { | |
private static final String ENDPOINT_URL = "http://localhost:8888/Mango/build/rome/builds/ent/sugarcrm/service/v3/soap.php"; | |
private static final String USER_NAME = "admin"; | |
private static final String PASSWORD = "0cc175b9c0f1b6a831c399e269772661"; | |
private static final String APPLICATION_NAME = "sugarcrm"; | |
private static final String MODULE_NAME = "Contacts"; | |
public static void main (String args[]){ | |
//creating a URL endpoint for the client | |
java.net.URL url = null; | |
try { | |
url = new URL(ENDPOINT_URL); | |
} catch (MalformedURLException e1) { | |
System.out.println("URL endpoing creation failed. Message: "+e1.getMessage()); | |
e1.printStackTrace(); | |
} | |
System.out.println("URL endpoint created successfully!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment