public PartnerRoleChannel createPartnerRoleChannel(QName processId, PortType portType,
Endpoint initialPartnerEndpoint) {
// NOTE: This implementation assumes that the initial value of the
// partner role determines the binding.
ProcessConf pconf = _server._store.getProcessConfiguration(processId);
Definition wsdl = pconf.getDefinitionForService(initialPartnerEndpoint.serviceName);
if (wsdl == null) {
throw new ContextException("Cannot find definition for service " + initialPartnerEndpoint.serviceName
+ " in the context of process "+processId);
}
return createExternalService(pconf, initialPartnerEndpoint.serviceName, initialPartnerEndpoint.portName);