return animalAccessPoint;
}
private boolean _publish_animalService(){
boolean ret = false;
BusinessService busService = new BusinessService();
busService.setBusinessKey(_animalBusinessEntity.getBusinessKey());
Name name = new Name(ANIMAL_BUSINESS_SERVICE);
busService.setDefaultName(name);
CategoryBag catBag = _createCategoryBag();
busService.setCategoryBag(catBag);
BindingTemplate bindingTemplate = new BindingTemplate();
TModelInstanceDetails tModelInstanceDetails = new TModelInstanceDetails();
TModelInstanceInfo tModelInstanceInfo = new TModelInstanceInfo();
tModelInstanceInfo.setTModelKey(((TModel)_animalProtocol_tModelDetail.getTModelVector().elementAt(0)).getTModelKey());
tModelInstanceInfo.setDefaultDescriptionString("Animal Protocol tModel Instance");
tModelInstanceDetails.add(tModelInstanceInfo);
tModelInstanceInfo = new TModelInstanceInfo();
tModelInstanceInfo.setTModelKey(((TModel)_animalProtocol_tModelDetail.getTModelVector().elementAt(0)).getTModelKey());
/**
* This creates the unique, well-defined tModel representing the service's WSDL
*/
TModelDetail tmodelDetail = null;
try {
tmodelDetail = _publishWSDL_tModel();
}
catch (TransportException ex) {
/**
* @todo cleanup ??
*/
return ret;
}
catch (UDDIException ex) {
/**
* @todo cleanup ??
*/
return ret;
}
tModelInstanceInfo = new TModelInstanceInfo();
tModelInstanceInfo.setTModelKey(((TModel)tmodelDetail.getTModelVector().elementAt(0)).getTModelKey());
tModelInstanceInfo.setDefaultDescriptionString("Animal Service tModel instance");
tModelInstanceDetails.add(tModelInstanceInfo);
/**
* Associate the set of tModels with the Service's BindingTemplate
*/
bindingTemplate.setTModelInstanceDetails(tModelInstanceDetails);
/**
* The binding template needs an [ accessPoint | hostRedirector ]
*/
AccessPoint animalAccessPoint = _createAccessPoint(ANIMAL_WSDL_URL.substring(0,ANIMAL_WSDL_URL.lastIndexOf("?")));
bindingTemplate.setAccessPoint(animalAccessPoint);
BindingTemplates bindingTemplates = new BindingTemplates();
bindingTemplate.setDefaultDescriptionString("SOAP Binding");
bindingTemplates.add(bindingTemplate);
busService.setBindingTemplates(bindingTemplates);
// save the service
java.util.Vector servicesVector = new Vector();
servicesVector.add(busService);
try {