Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takawitter/c51f801217c1aa0b0ad4 to your computer and use it in GitHub Desktop.
Save takawitter/c51f801217c1aa0b0ad4 to your computer and use it in GitHub Desktop.
The script that call searchServices method of ServiceManagement service.
@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