return record != null ? record.wsEndpointDescriptor : null;
}
private TCPAdapter createWSAdapter(@NotNull final String wsPath,
@NotNull final WSEndpointDescriptor wsEndpointDescriptor) throws Exception {
Adapter adapter;
if (wsEndpointDescriptor.isEJB()) {
final EjbRuntimeEndpointInfo ejbEndPtInfo = (EjbRuntimeEndpointInfo) WebServiceEjbEndpointRegistry.getRegistry().
getEjbWebServiceEndpoint(wsEndpointDescriptor.getURI(), "POST", null);
adapter = (Adapter) ejbEndPtInfo.prepareInvocation(true);
} else {
final String uri = wsEndpointDescriptor.getURI();
adapter = JAXWSAdapterRegistry.getInstance().getAdapter(wsEndpointDescriptor.getContextRoot(), uri, uri);
}
//@TODO implement checkAdapterSupportsTCP
// checkAdapterSupportsTCP(adapter);
final TCPAdapter tcpAdapter = new TCP109Adapter(wsEndpointDescriptor.getWSServiceName().toString(),
wsPath,
adapter.getEndpoint(),
new ServletFakeArtifactSet(wsEndpointDescriptor.getRequestURL(), wsEndpointDescriptor.getUrlPattern()),
wsEndpointDescriptor.isEJB());
return tcpAdapter;
}