public static void setWSDLLocation(EndpointReferenceType ref, String... wsdlLocation) { MetadataType metadata = WSAEndpointReferenceUtils.getSetMetadata(ref); //wsdlLocation attribute is a list of anyURI. StringBuilder strBuf = new StringBuilder(); for (String str : wsdlLocation) { strBuf.append(str); strBuf.append(" "); } metadata.getOtherAttributes().put(WSDL_LOCATION, strBuf.toString().trim()); }
public static void setWSDLLocation(EndpointReferenceType ref, String... wsdlLocation) { MetadataType metadata = WSAEndpointReferenceUtils.getSetMetadata(ref); //wsdlLocation attribute is a list of anyURI. StringBuilder strBuf = new StringBuilder(); for (String str : wsdlLocation) { strBuf.append(str); strBuf.append(" "); } metadata.getOtherAttributes().put(WSDL_LOCATION, strBuf.toString().trim()); }
/** * Sets the service and port name of the provided endpoint reference. * @param ref the endpoint reference. * @param serviceName the name of service. * @param portName the port name. */ public static void setServiceAndPortName(EndpointReferenceType ref, QName serviceName, String portName) { if (null != serviceName) { JAXBElement<ServiceNameType> jaxbElement = getServiceNameType(serviceName, portName); MetadataType mt = WSAEndpointReferenceUtils.getSetMetadata(ref); mt.getAny().add(jaxbElement); } }
/** * Sets the service and port name of the provided endpoint reference. * @param ref the endpoint reference. * @param serviceName the name of service. * @param portName the port name. */ public static void setServiceAndPortName(EndpointReferenceType ref, QName serviceName, String portName) { if (null != serviceName) { JAXBElement<ServiceNameType> jaxbElement = getServiceNameType(serviceName, portName); MetadataType mt = WSAEndpointReferenceUtils.getSetMetadata(ref); mt.getAny().add(jaxbElement); } }
/** * Adds service locator properties to an endpoint reference. * @param epr * @param props */ private static void addProperties(EndpointReferenceType epr, SLProperties props) { MetadataType metadata = WSAEndpointReferenceUtils.getSetMetadata(epr); ServiceLocatorPropertiesType jaxbProps = SLPropertiesConverter.toServiceLocatorPropertiesType(props); JAXBElement<ServiceLocatorPropertiesType> slp = SL_OBJECT_FACTORY.createServiceLocatorProperties(jaxbProps); metadata.getAny().add(slp); }
/** * Adds service locator properties to an endpoint reference. * @param epr * @param props */ private static void addProperties(EndpointReferenceType epr, SLProperties props) { MetadataType metadata = WSAEndpointReferenceUtils.getSetMetadata(epr); ServiceLocatorPropertiesType jaxbProps = SLPropertiesConverter.toServiceLocatorPropertiesType(props); JAXBElement<ServiceLocatorPropertiesType> slp = SL_OBJECT_FACTORY.createServiceLocatorProperties(jaxbProps); metadata.getAny().add(slp); }
public static void setInterfaceName(EndpointReferenceType ref, QName portTypeName) { if (null != portTypeName) { AttributedQNameType interfaceNameType = WSA_WSDL_OBJECT_FACTORY.createAttributedQNameType(); interfaceNameType.setValue(portTypeName); interfaceNameType.getOtherAttributes().put(XML_SCHEMA_NAMESPACE_NS, XML_SCHEMA_NAMESPACE); interfaceNameType.getOtherAttributes().put(XSI_TYPE, XML_SCHEMA_NAMESPACE_PREFIX + ":" + portTypeName.getClass().getSimpleName()); JAXBElement<AttributedQNameType> jaxbElement = WSA_WSDL_OBJECT_FACTORY.createInterfaceName(interfaceNameType); MetadataType mt = WSAEndpointReferenceUtils.getSetMetadata(ref); mt.getAny().add(jaxbElement); } }
public static void setInterfaceName(EndpointReferenceType ref, QName portTypeName) { if (null != portTypeName) { AttributedQNameType interfaceNameType = WSA_WSDL_OBJECT_FACTORY.createAttributedQNameType(); interfaceNameType.setValue(portTypeName); interfaceNameType.getOtherAttributes().put(XML_SCHEMA_NAMESPACE_NS, XML_SCHEMA_NAMESPACE); interfaceNameType.getOtherAttributes().put(XSI_TYPE, XML_SCHEMA_NAMESPACE_PREFIX + ":" + portTypeName.getClass().getSimpleName()); JAXBElement<AttributedQNameType> jaxbElement = WSA_WSDL_OBJECT_FACTORY.createInterfaceName(interfaceNameType); MetadataType mt = WSAEndpointReferenceUtils.getSetMetadata(ref); mt.getAny().add(jaxbElement); } }
MetadataType mt = WSAEndpointReferenceUtils.getSetMetadata(ref); List<Object> anyList = mt.getAny(); try {
MetadataType mt = WSAEndpointReferenceUtils.getSetMetadata(ref); List<Object> anyList = mt.getAny(); try {