Created
March 18, 2011 19:42
-
-
Save hshemer/876700 to your computer and use it in GitHub Desktop.
get_entry
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
//getting an entry (the one we just set) | |
//setting up parameters for get_entry | |
Link_name_to_fields_array[] link_name_to_fields_array = null; | |
String[] select_fields = null; | |
Get_entry_result_version2 getEntryResponse = null; | |
//trying to get entry | |
try { | |
getEntryResponse = stub.get_entry(loginResponse.getId(), MODULE_NAME, setEntryResponse.getId(), select_fields , link_name_to_fields_array); | |
} catch (RemoteException e) { | |
System.out.println("get entry failed. Message: "+e.getMessage()); | |
e.printStackTrace(); | |
} | |
System.out.println("get entry was successful. response: "); | |
//Getting the fields for entry we got. | |
Entry_value[] entryList = getEntryResponse.getEntry_list(); | |
for (int k=0; k < entryList.length; k++){ | |
Entry_value entry = entryList[k]; | |
Name_value[] entryNameValueList = entry.getName_value_list(); | |
for (int j=0; j< entryNameValueList.length; j++){ | |
Name_value entryNameValue = entryNameValueList[j]; | |
//Outputting only non empty fields | |
if (!entryNameValue.getValue().isEmpty()){ | |
System.out.println("name: '"+entryNameValue.getName()+"' value: '"+entryNameValue.getValue()+"'"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i think this was not properly worked ....ya else something should be there ... don't know