This file contains hidden or 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
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sug="http://www.sugarcrm.com/sugarcrm" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<sug:get_entry_list soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | |
<session xsi:type="xsd:string" xs:type="type:string" xmlns:xs="http://www.w3.org/2000/XMLSchema-instance">q8a05imogajdfpvvo97idped64</session> | |
<module_name xsi:type="xsd:string" xs:type="type:string" xmlns:xs="http://www.w3.org/2000/XMLSchema-instance">Leads</module_name> | |
<query xsi:type="xsd:string" xs:type="type:string" xmlns:xs="http://www.w3.org/2000/XMLSchema-instance">leads.id in ( | |
SELECT eabr.bean_id | |
FROM email_addr_bean_rel eabr JOIN email_addresses ea | |
ON (ea.id = eabr.email_address_id) |
This file contains hidden or 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
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sug="http://www.sugarcrm.com/sugarcrm" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> | |
<soapenv:Header/> | |
<soapenv:Body> | |
<sug:set_entry soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | |
<session xsi:type="xsd:string">bd9m099g9rn8j7p2mqnh29lj22</session> | |
<module_name xsi:type="xsd:string">Cases</module_name> | |
<name_value_list xsi:type="sug:name_value_list" soapenc:arrayType="sug:name_value[6]"> | |
<item xsi:type="ns1:name_value"> | |
<name xsi:type="xsd:string">priority</name> | |
<value xsi:type="xsd:string">P1</value> |
This file contains hidden or 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
[{ | |
"agreedToTermsOfUse": false, | |
"comments": "", | |
"companyId": 10157, | |
"contactId": 12102, | |
"createDate": 1392734987656, | |
"defaultUser": false, | |
"digest": "", | |
"emailAddress": "[email protected]", | |
"emailAddressVerified": false, |
This file contains hidden or 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
curl http://localhost:8080/api/jsonws/ShirusLabsExampleServices-portlet.customusers/get-users-company-by-tag-name \ | |
-u [email protected]:test \ | |
-d companyId=10157 \ | |
-d tagName='crm' \ | |
-d userStatus=0 \ | |
-d start=0 \ | |
-d end=3 |
This file contains hidden or 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 TestGetUsersCompanyByTagNameService { | |
static final String LIFERAY_USER_NAME = (System.getProperty("username") != null) ? System | |
.getProperty("username") : "[email protected]"; | |
static final String LIFERAY_USER_PASSWORD = (System.getProperty("password") != null) ? System | |
.getProperty("username") : "test"; | |
static final String USER_SERVICE = "Portal_UserService"; | |
/** |
This file contains hidden or 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 UserSoap[] getUsersCompanyByTagName(long companyId, String tagName, | |
Integer userStatus, int start, int end) throws PortalException, | |
SystemException { | |
return CustomUsersLocalServiceUtil.getUsersCompanyByTagName(companyId, tagName, userStatus, start, end); | |
} |
This file contains hidden or 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 com.liferay.portal.model.UserSoap[] getUsersCompanyByTagName(long companyId, String tagName, | |
Integer userStatus, int start, int end) throws PortalException, | |
SystemException { | |
SearchContext searchContext = new SearchContext(); | |
searchContext.setCompanyId(companyId); | |
searchContext.setEntryClassNames(new String[] { User.class.getName() }); |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_2_0.dtd"> | |
<service-builder package-path="it.dontesta.shirus.labs.liferay.ws.example"> | |
<author>amusarra</author> | |
<namespace>shirus_labs_liferay_ws_example</namespace> | |
<entity name="CustomUsers" local-service="true" remote-service="true"> | |
</entity> | |
<exceptions> | |
<exception>UsersNotFound</exception> | |
</exceptions> |
This file contains hidden or 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
$ curl -v http://localhost:8080/services/horses.xml | xmllint --format - | |
$ curl -v http://localhost:8080/services/horses.json | jsonlint - | |
## | |
# XML Output | |
## | |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<horses> | |
<count>3</count> | |
<horse> |
This file contains hidden or 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
SELECT DLFILEENTRY.REPOSITORYID, | |
(SUM(DLFILEENTRY.SIZE_) / 1048576) SIZE_MBYTE | |
FROM DLFILEENTRY | |
GROUP BY DLFILEENTRY.REPOSITORYID | |
ORDER BY SIZE_MBYTE; |