public EndpointReferenceType readEndpointReferenceType(final Document wsdlDocument) throws WSAddressingException { EndpointReferenceType res = null; final com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType desc = this.reader.readEndpointReferenceType(wsdlDocument); res = WSAddressing4AgreementFactory.newInstance().addMonitoringElmt2Description(desc); return res; }
public EndpointReferenceType readEndpointReferenceType(final URI wsdlURI, final InputSource inputSource) throws WSAddressingException { EndpointReferenceType res = null; final com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType desc = this.reader.readEndpointReferenceType(wsdlURI, inputSource); res = WSAddressing4AgreementFactory.newInstance().addMonitoringElmt2Description(desc); return res; }
public EndpointReferenceType readEndpointReferenceType(final URI wsdlURI) throws WSAddressingException { EndpointReferenceType res = null; final com.ebmwebsourcing.wsstar.addressing.definition.api.EndpointReferenceType desc = this.reader.readEndpointReferenceType(wsdlURI); res = WSAddressing4AgreementFactory.newInstance().addMonitoringElmt2Description(desc); return res; }
/** * Private method that get - if the expected xml fragment exists - a {@link EndpointReferenceType} * object from an {@link List} Of {@link Object}. * * @param listOfObj from which the xml representation is supposed to be found * @return a {@link EndpointReferenceType} object * @throws WSNotificationExtensionException */ private static EndpointReferenceType getEndpointReference(final List<Object> listOfObj) throws WSAddressingException{ EndpointReferenceType result = null; if (listOfObj!= null) { for (final Object item : listOfObj) { if (item instanceof Element && ((Element)item).getLocalName().compareTo(com.ebmwebsourcing.wsstar.addressing.definition.impl.Constants.ENDPOINT_REFERENCE_QNAME.getLocalPart()) == 0 && ((Element)item).getNamespaceURI().compareTo(com.ebmwebsourcing.wsstar.addressing.definition.impl.Constants.ENDPOINT_REFERENCE_QNAME.getNamespaceURI()) == 0){ final Document doc = ((Element)item).getOwnerDocument(); doc.setDocumentURI(com.ebmwebsourcing.wsstar.addressing.definition.impl.Constants.WSADDRESSING_NAMESPACE); result = WSAddressingFactory.getInstance().newWSAddressingReader().readEndpointReferenceType(doc); } else if (item instanceof JAXBElement<?> && ((JAXBElement<?>)item).getValue() instanceof com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType) { result = new EndpointReferenceTypeImpl((com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType) ((JAXBElement<?>)item).getValue(),null); } } } return result; }
public ServiceRefImpl(final ServiceRefType model, final BPELElementImpl parent) { super(Constants._ServiceRef_QNAME, model, parent); try { if(this.model.getAny() instanceof Element) { this.epr = this.getReader().readEndpointReferenceType(((Element)this.model.getAny()).getOwnerDocument()); } else if((this.model.getAny() instanceof JAXBElement)&& (((JAXBElement)this.model.getAny()).getValue() instanceof com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType)) { this.epr = new EndpointReferenceTypeImpl(new URI("."), (com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType) ((JAXBElement)this.model.getAny()).getValue(), null); } else if(this.model.getAny() instanceof com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType) { this.epr = new EndpointReferenceTypeImpl(new URI("."), (com.ebmwebsourcing.wsstar.jaxb.addressing.EndpointReferenceType) this.model.getAny(), null); } } catch (final WSAddressingException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException("In one serviceRef => " + e.getMessage(), e))); } catch (final URISyntaxException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException("In one serviceRef => " + e.getMessage(), e))); } }
private EndpointReferenceType getEpr(final Element root) throws CoreException { EndpointReferenceType epr = null; try { final Document eprjDom = new Document((Element) root.clone()); final DOMOutputter converter = new DOMOutputter(); final org.w3c.dom.Document eprDom = converter.output(eprjDom); epr = WSAddressingFactory.getInstance().newWSAddressingReader().readEndpointReferenceType(eprDom); } catch (final JDOMException e) { throw new CoreException(e); } catch (final WSAddressingException e) { throw new CoreException(e); } return epr; }