Google Apps Security and Compliance Services Web Services Manual de usuario Pagina 33

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 70
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 32
Endpoint Resolver 31
Axis Example
This v.1.5 Java example is using Apache Axis 1.4. This example shows how to
create a communication endpoint before creating the port. Once the
dynamically created endpoint is assigned to the port, it can not be changed for
that endpoint instance.
try
{
// Load and instantiate an instance of our endpoint resolver.
EndpointResolverAPI.EndpointResolverServiceLocator
endpointResolverLocator = new
EndpointResolverAPI.EndpointResolverServiceLocator();
EndpointResolverAPI.EndpointResolverPort_PortType
endpointResolverPort =
endpointResolverLocator.getEndpointResolverPort();
// Create an instance of our Automated Batch auth element
AutomatedBatchAPI.AuthElem authCredentials = new
AutomatedBatchAPI.AuthElem();
//Get the email address and password entered by the user
authCredentials.setApiKey("<Software apiKey>");
authCredentials.setEmail("<Email address entered by the user>");
authCredentials.setPword("<Password entered by the user>");
// Load and instantiate an instance of our automated batch API, using
the endpoint resolver to override the endpoint.
AutomatedBatchAPI.AutomatedBatchServiceLocator
automatedBatchServiceLocator = new
AutomatedBatchAPI.AutomatedBatchServiceLocator();
String automatedBatchEndpoint =
endpointResolverPort.getServiceEndpoint(
authCredentials.getApiKey(),authCredentials.getEmail(),EndpointResol
verAPI.Service.v2AutomatedBatch);
automatedBatchServiceLocator.setAutomatedBatchPortEndpointAddress(
automatedBatchEndpoint );
AutomatedBatchAPI.AutomatedBatchPort_PortType automatedBatchPort =
automatedBatchServiceLocator.getAutomatedBatchPort();
//Create an Instance of the extra argument structure for orgs
AutomatedBatchAPI.ListorgsqueryParams qpOrgArgs = new
AutomatedBatchAPI.ListorgsqueryParams();
Vista de pagina 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 69 70

Comentarios a estos manuales

Sin comentarios