public static ServiceRefPortInfo getPortInfo(WSClientContainer container, QName portName) { return container.svcRef.getPortInfoByPort(portName); }
private Set getPropertiesForCall(int methodType, Object args[]) { Set callProperties = null; switch(methodType) { case CREATE_CALL_PORT : case CREATE_CALL_OPERATION_QNAME : case CREATE_CALL_OPERATION_STRING : case GET_CALLS : // Each of these methods has port as first argument. QName port = (QName) args[0]; // Check if call properties are set at the port level. ServiceRefPortInfo portInfo = serviceRef.getPortInfoByPort(port); if( portInfo != null ) { callProperties = portInfo.getCallProperties(); } break; case CREATE_CALL_NO_ARGS : callProperties = serviceRef.getCallProperties(); break; } return callProperties; }
public HandlerInfo getMessageSecurityHandlerInfo(QName port) throws Exception { HandlerInfo rvalue = null; MessageSecurityBindingDescriptor binding = null; ServiceRefPortInfo portInfo = serviceRef.getPortInfoByPort(port); if (portInfo != null) { binding = portInfo.getMessageSecurityBinding(); } if (secServ != null) { rvalue = secServ.getMessageSecurityHandler(binding, serviceRef.getServiceName()); } return rvalue; }
/** * receives notiification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { String name = element.getQName(); if (WLWebServicesTagNames.SERVICE_REFERENCE_PORT_NAME.equals(name)) { ServiceReferenceDescriptor serviceRef = ((ServiceReferenceDescriptor) getParentNode().getDescriptor()); //WLS-DD does not provide a way to specify ns uri of the port, so use the service ns uri String namespaceUri = serviceRef.getServiceNamespaceUri(); QName wsdlPort = new QName(namespaceUri, value); descriptor = serviceRef.getPortInfoByPort(wsdlPort); } else super.setElementValue(element, value); }
/** * receives notiification of the value for a particular tag * * @param element the xml element * @param value it's associated value */ public void setElementValue(XMLElement element, String value) { String name = element.getQName(); if (WLWebServicesTagNames.SERVICE_REFERENCE_PORT_NAME.equals(name)) { ServiceReferenceDescriptor serviceRef = ((ServiceReferenceDescriptor) getParentNode().getDescriptor()); //WLS-DD does not provide a way to specify ns uri of the port, so use the service ns uri String namespaceUri = serviceRef.getServiceNamespaceUri(); QName wsdlPort = new QName(namespaceUri, value); descriptor = serviceRef.getPortInfoByPort(wsdlPort); } else super.setElementValue(element, value); }
portInfo = serviceRef.getPortInfoByPort(port);
existing = getPortInfoByPort(runtimePortInfo.getWsdlPort());
existing = getPortInfoByPort(runtimePortInfo.getWsdlPort());