Created
May 12, 2015 19:09
-
-
Save takawitter/c51f801217c1aa0b0ad4 to your computer and use it in GitHub Desktop.
The script that call searchServices method of ServiceManagement service.
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
@Grab('net.servicegrid:jp.go.nict.langrid.client.soap:1.0.5') | |
@Grab('net.servicegrid:jp.go.nict.langrid.service.management_1_2:1.0.5') | |
import jp.go.nict.langrid.client.soap.SoapClientFactory; | |
import jp.go.nict.langrid.service_1_2.foundation.MatchingCondition; | |
import jp.go.nict.langrid.service_1_2.foundation.Order; | |
import jp.go.nict.langrid.service_1_2.foundation.servicemanagement.ServiceManagementService; | |
new SoapClientFactory().create( | |
ServiceManagementService.class, | |
new URL("http://langrid.org/service_manager/services/ServiceManagement"), | |
"id", | |
"pass").searchServices( | |
0, 100, | |
[new MatchingCondition("serviceType", "Translation", "COMPLETE")] as MatchingCondition[], | |
[] as Order[], | |
"ALL").elements.each{ println it.serviceId}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment