public static void applyReferenceParam(EndpointReferenceType toEpr, Object el) { if (null == toEpr.getReferenceParameters()) { toEpr.setReferenceParameters(WSA_OBJECT_FACTORY.createReferenceParametersType()); } toEpr.getReferenceParameters().getAny().add(el); }
public static void applyReferenceParam(EndpointReferenceType toEpr, Object el) { if (null == toEpr.getReferenceParameters()) { toEpr.setReferenceParameters(WSA_OBJECT_FACTORY.createReferenceParametersType()); } toEpr.getReferenceParameters().getAny().add(el); }
public static void applyReferenceParam(EndpointReferenceType toEpr, Object el) { if (null == toEpr.getReferenceParameters()) { toEpr.setReferenceParameters(WSA_OBJECT_FACTORY.createReferenceParametersType()); } toEpr.getReferenceParameters().getAny().add(el); }
public static void applyReferenceParam(EndpointReferenceType toEpr, Object el) { if (null == toEpr.getReferenceParameters()) { toEpr.setReferenceParameters(WSA_OBJECT_FACTORY.createReferenceParametersType()); } toEpr.getReferenceParameters().getAny().add(el); }
/** * Convert from 2004/08 ReferenceParametersType to 2005/08 * ReferenceParametersType. * * @param exposed the 2004/08 ReferenceParametersType * @return an equivalent 2005/08 ReferenceParametersType */ public static ReferenceParametersType convert( org.apache.cxf.ws.addressing.v200408.ReferenceParametersType exposed) { ReferenceParametersType internal = null; if (exposed != null) { internal = ContextUtils.WSA_OBJECT_FACTORY.createReferenceParametersType(); addAll(internal.getAny(), exposed.getAny()); } return internal; } // THERE IS NO ReferenceParametersType for 2004/03
/** * Convert from 2004/08 ReferenceParametersType to 2005/08 * ReferenceParametersType. * * @param exposed the 2004/08 ReferenceParametersType * @return an equivalent 2005/08 ReferenceParametersType */ public static ReferenceParametersType convert( org.apache.cxf.ws.addressing.v200408.ReferenceParametersType exposed) { ReferenceParametersType internal = null; if (exposed != null) { internal = ContextUtils.WSA_OBJECT_FACTORY.createReferenceParametersType(); addAll(internal.getAny(), exposed.getAny()); } return internal; } // THERE IS NO ReferenceParametersType for 2004/03
/** * Convert from 2004/08 ReferenceParametersType to 2005/08 * ReferenceParametersType. * * @param exposed the 2004/08 ReferenceParametersType * @return an equivalent 2005/08 ReferenceParametersType */ public static ReferenceParametersType convert( org.apache.cxf.ws.addressing.v200408.ReferenceParametersType exposed) { ReferenceParametersType internal = null; if (exposed != null) { internal = ContextUtils.WSA_OBJECT_FACTORY.createReferenceParametersType(); addAll(internal.getAny(), exposed.getAny()); } return internal; } // THERE IS NO ReferenceParametersType for 2004/03
/** * Convert from 2004/08 ReferenceParametersType to 2005/08 * ReferenceParametersType. * * @param exposed the 2004/08 ReferenceParametersType * @return an equivalent 2005/08 ReferenceParametersType */ public static ReferenceParametersType convert( org.apache.cxf.ws.addressing.v200408.ReferenceParametersType exposed) { ReferenceParametersType internal = null; if (exposed != null) { internal = ContextUtils.WSA_OBJECT_FACTORY.createReferenceParametersType(); addAll(internal.getAny(), exposed.getAny()); } return internal; } // THERE IS NO ReferenceParametersType for 2004/03
/** * Builds an new endpoint reference using the current target reference as a template. * The supplied id is endcoded using a reference parameter. * This requires the ws-a interceptors to propagate the reference parameters * on subsequent invokes using the returned reference. * @param id the id to encode in the new reference * @return the new reference with the id encoded as a reference parameter * @see org.apache.cxf.transport.MultiplexDestination#getAddressWithId(java.lang.String) */ public EndpointReferenceType getAddressWithId(String id) { EndpointReferenceType epr = EndpointReferenceUtils.duplicate( EndpointReferenceUtils.mint(reference, bus)); ReferenceParametersType newParams = new org.apache.cxf.ws.addressing.ObjectFactory() .createReferenceParametersType(); ReferenceParametersType existingParams = epr.getReferenceParameters(); if (null != existingParams) { newParams.getAny().addAll(existingParams.getAny()); } newParams.getAny().add(new JAXBElement<String>(MULTIPLEX_ID_QNAME, String.class, id)); epr.setReferenceParameters(newParams); return epr; }
/** * Builds an new endpoint reference using the current target reference as a template. * The supplied id is endcoded using a reference parameter. * This requires the ws-a interceptors to propagate the reference parameters * on subsequent invokes using the returned reference. * @param id the id to encode in the new reference * @return the new reference with the id encoded as a reference parameter * @see org.apache.cxf.transport.MultiplexDestination#getAddressWithId(java.lang.String) */ public EndpointReferenceType getAddressWithId(String id) { EndpointReferenceType epr = EndpointReferenceUtils.duplicate( EndpointReferenceUtils.mint(reference, bus)); ReferenceParametersType newParams = new org.apache.cxf.ws.addressing.ObjectFactory() .createReferenceParametersType(); ReferenceParametersType existingParams = epr.getReferenceParameters(); if (null != existingParams) { newParams.getAny().addAll(existingParams.getAny()); } newParams.getAny().add(new JAXBElement<String>(MULTIPLEX_ID_QNAME, String.class, id)); epr.setReferenceParameters(newParams); return epr; }
/** * Builds an new endpoint reference using the current target reference as a template. * The supplied id is endcoded using a reference parameter. * This requires the ws-a interceptors to propagate the reference parameters * on subsequent invokes using the returned reference. * @param id the id to encode in the new reference * @return the new reference with the id encoded as a reference parameter * @see org.apache.cxf.transport.MultiplexDestination#getAddressWithId(java.lang.String) */ public EndpointReferenceType getAddressWithId(String id) { EndpointReferenceType epr = EndpointReferenceUtils.duplicate( EndpointReferenceUtils.mint(reference, bus)); ReferenceParametersType newParams = new org.apache.cxf.ws.addressing.ObjectFactory() .createReferenceParametersType(); ReferenceParametersType existingParams = epr.getReferenceParameters(); if (null != existingParams) { newParams.getAny().addAll(existingParams.getAny()); } newParams.getAny().add(new JAXBElement<String>(MULTIPLEX_ID_QNAME, String.class, id)); epr.setReferenceParameters(newParams); return epr; }
/** * Builds an new endpoint reference using the current target reference as a template. * The supplied id is endcoded using a reference parameter. * This requires the ws-a interceptors to propagate the reference parameters * on subsequent invokes using the returned reference. * @param id the id to encode in the new reference * @return the new reference with the id encoded as a reference parameter * @see org.apache.cxf.transport.MultiplexDestination#getAddressWithId(java.lang.String) */ public EndpointReferenceType getAddressWithId(String id) { EndpointReferenceType epr = EndpointReferenceUtils.duplicate( EndpointReferenceUtils.mint(reference, bus)); ReferenceParametersType newParams = new org.apache.cxf.ws.addressing.ObjectFactory() .createReferenceParametersType(); ReferenceParametersType existingParams = epr.getReferenceParameters(); if (null != existingParams) { newParams.getAny().addAll(existingParams.getAny()); } newParams.getAny().add(new JAXBElement<String>(MULTIPLEX_ID_QNAME, String.class, id)); epr.setReferenceParameters(newParams); return epr; }
@Before public void setUp() throws Exception { //super.setUp(); if (staticBus == null) { SpringBusFactory bf = new SpringBusFactory(); staticBus = bf.createBus(getConfigFileName()); BusFactory.setDefaultBus(staticBus); } messageIDs.clear(); mapVerifier = new MAPVerifier(); headerVerifier = new HeaderVerifier(); Interceptor<?>[] interceptors = {mapVerifier, headerVerifier}; addInterceptors(staticBus.getInInterceptors(), interceptors); addInterceptors(staticBus.getOutInterceptors(), interceptors); addInterceptors(staticBus.getOutFaultInterceptors(), interceptors); addInterceptors(staticBus.getInFaultInterceptors(), interceptors); EndpointReferenceType target = EndpointReferenceUtils.getEndpointReference(getAddress()); ReferenceParametersType params = ContextUtils.WSA_OBJECT_FACTORY.createReferenceParametersType(); JAXBElement<String> param = new JAXBElement<>(CUSTOMER_NAME, String.class, CUSTOMER_KEY); params.getAny().add(param); target.setReferenceParameters(params); greeter = createGreeter(target); mapVerifier.verificationCache = this; headerVerifier.verificationCache = this; } public URL getWSDLURL() {