@Override Source toReturnValue(Packet response) { Message msg = response.getMessage(); try { return new StreamSource(XMLMessage.getDataSource(msg, binding.getFeatures()).getInputStream()); } catch (IOException e) { throw new RuntimeException(e); } }
@Override Source toReturnValue(Packet response) { Message msg = response.getMessage(); try { return new StreamSource(XMLMessage.getDataSource(msg, binding.getFeatures()).getInputStream()); } catch (IOException e) { throw new RuntimeException(e); } }
@Override Source toReturnValue(Packet response) { Message msg = response.getMessage(); try { return new StreamSource(XMLMessage.getDataSource(msg, binding.getFeatures()).getInputStream()); } catch (IOException e) { throw new RuntimeException(e); } }
Packet createPacket(DataSource arg) { switch (mode) { case PAYLOAD: throw new IllegalArgumentException("DataSource use is not allowed in Service.Mode.PAYLOAD\n"); case MESSAGE: return new Packet(XMLMessage.create(arg, binding.getFeatures())); default: throw new WebServiceException("Unrecognized message mode"); } }
Packet createPacket(DataSource arg) { switch (mode) { case PAYLOAD: throw new IllegalArgumentException("DataSource use is not allowed in Service.Mode.PAYLOAD\n"); case MESSAGE: return new Packet(XMLMessage.create(arg, binding.getFeatures())); default: throw new WebServiceException("Unrecognized message mode"); } }
Packet createPacket(DataSource arg) { switch (mode) { case PAYLOAD: throw new IllegalArgumentException("DataSource use is not allowed in Service.Mode.PAYLOAD\n"); case MESSAGE: return new Packet(XMLMessage.create(arg, binding.getFeatures())); default: throw new WebServiceException("Unrecognized message mode"); } }
public synchronized @NotNull com.oracle.webservices.api.message.MessageContextFactory getMessageContextFactory () { if (messageContextFactory == null) { messageContextFactory = MessageContextFactory.createFactory(getFeatures().toArray()); } return messageContextFactory; }
public synchronized @NotNull com.oracle.webservices.api.message.MessageContextFactory getMessageContextFactory () { if (messageContextFactory == null) { messageContextFactory = MessageContextFactory.createFactory(getFeatures().toArray()); } return messageContextFactory; }
DataSource toReturnValue(Packet response) { Message message = response.getInternalMessage(); return (message instanceof MessageDataSource) ? ((MessageDataSource)message).getDataSource() : XMLMessage.getDataSource(message, binding.getFeatures()); } }
DataSource toReturnValue(Packet response) { Message message = response.getInternalMessage(); return (message instanceof MessageDataSource) ? ((MessageDataSource)message).getDataSource() : XMLMessage.getDataSource(message, binding.getFeatures()); } }
DataSource toReturnValue(Packet response) { Message message = response.getInternalMessage(); return (message instanceof MessageDataSource) ? ((MessageDataSource)message).getDataSource() : XMLMessage.getDataSource(message, binding.getFeatures()); } }
public synchronized @NotNull com.oracle.webservices.api.message.MessageContextFactory getMessageContextFactory () { if (messageContextFactory == null) { messageContextFactory = MessageContextFactory.createFactory(getFeatures().toArray()); } return messageContextFactory; }
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding) { if (existingBinding != null) { webServiceFeatures.addAll(existingBinding.getFeatures()); } Iterable<WebServiceFeature> configFeatures; //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving // ability to turn off the WSDL/Policy based features and its associated tubes. //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration if (portModel != null) { // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(), // So, using here WsdlModel for merging is right. // merge features from WSDL configFeatures = portModel.getFeatures(); } else { configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName); } webServiceFeatures.mergeFeatures(configFeatures, false); // merge features from interceptor webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false); BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray()); owner.getHandlerConfigurator().configureHandlers(this,bindingImpl); return bindingImpl; }
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding) { if (existingBinding != null) { webServiceFeatures.addAll(existingBinding.getFeatures()); } Iterable<WebServiceFeature> configFeatures; //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving // ability to turn off the WSDL/Policy based features and its associated tubes. //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration if (portModel != null) { // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(), // So, using here WsdlModel for merging is right. // merge features from WSDL configFeatures = portModel.getFeatures(); } else { configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName); } webServiceFeatures.mergeFeatures(configFeatures, false); // merge features from interceptor webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false); BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray()); owner.getHandlerConfigurator().configureHandlers(this,bindingImpl); return bindingImpl; }
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding) { if (existingBinding != null) { webServiceFeatures.addAll(existingBinding.getFeatures()); } Iterable<WebServiceFeature> configFeatures; //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving // ability to turn off the WSDL/Policy based features and its associated tubes. //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration if (portModel != null) { // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(), // So, using here WsdlModel for merging is right. // merge features from WSDL configFeatures = portModel.getFeatures(); } else { configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName); } webServiceFeatures.mergeFeatures(configFeatures, false); // merge features from interceptor webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false); BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray()); owner.getHandlerConfigurator().configureHandlers(this,bindingImpl); return bindingImpl; }
WebServiceFeatureList features=((BindingImpl)binding).getFeatures(); if (isStandard) { features.parseAnnotations(implType);
WebServiceFeatureList features=((BindingImpl)binding).getFeatures(); if (isStandard) { features.parseAnnotations(implType);
WebServiceFeatureList features=((BindingImpl)binding).getFeatures(); if (isStandard) { features.parseAnnotations(implType);