public Endpoint readEndpoint(String xml) { try { //System.out.println("Read Endpoint string >> " + xml); XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(xml)); Endpoint result = processor.read(reader, new ProcessorContext(registry)); result.setRemote(true); reader.close(); return result; } catch (Exception e) { throw new ServiceRuntimeException(e); } }
private void processUnknownEndpoint(EndpointReference endpointReference, Audit matchAudit){ Binding b = null; if (unknownEndpointHandler != null) { b = unknownEndpointHandler.handleUnknownEndpoint(endpointReference); } if (b != null) { Endpoint matchedEndpoint = new RuntimeEndpointImpl(extensionPoints); matchedEndpoint.setBinding(b); matchedEndpoint.setRemote(true); endpointReference.setTargetEndpoint(matchedEndpoint); endpointReference.setBinding(b); endpointReference.setUnresolved(false); endpointReference.setStatus(EndpointReference.Status.WIRED_TARGET_FOUND_AND_MATCHED); matchAudit.append("Match because the UnknownEndpointHandler provided a binding: " + b.getType() + " uri: " + b.getURI()); matchAudit.appendSeperator(); } }
endpoint.setURI(uri); endpoint.setBinding(binding); endpoint.setRemote(true); endpointRef.setStatus(EndpointReference.Status.RESOLVED_BINDING);
endpoint.setURI(uri); endpoint.setBinding(binding); endpoint.setRemote(true); endpointRef.setStatus(EndpointReference.Status.RESOLVED_BINDING);