1 57 58 package org.apache.wsif.providers.soap.soaprmi; 59 60 import java.util.Iterator ; 61 import java.util.List ; 62 63 import javax.wsdl.Binding; 64 import javax.wsdl.Definition; 65 import javax.wsdl.Port; 66 import javax.wsdl.Service; 67 import javax.wsdl.extensions.soap.SOAPBinding; 68 import org.apache.wsif.WSIFException; 69 import org.apache.wsif.WSIFPort; 70 import org.apache.wsif.base.WSIFServiceImpl; 71 import org.apache.wsif.logging.Trc; 72 import org.apache.wsif.providers.WSIFDynamicTypeMap; 73 import org.apache.wsif.spi.WSIFProvider; 74 75 96 public class WSIFDynamicProvider_SoapRMI implements WSIFProvider { 97 98 private static final String [] supportedBindingNamespaceURIs = 99 { "http://schemas.xmlsoap.org/wsdl/soap/xxx" }; 100 101 private static final String [] supportedAddressNamespaceURIs = 102 { "http://schemas.xmlsoap.org/wsdl/soap/xxx" }; 103 104 public WSIFDynamicProvider_SoapRMI() { 105 WSIFServiceImpl.addExtensionRegistry( 106 new org.apache.wsif.wsdl.extensions.jms.JMSExtensionRegistry()); 107 } 108 109 113 public WSIFPort createDynamicWSIFPort( 114 Definition def, 115 Service service, 116 Port port, 117 WSIFDynamicTypeMap typeMap) 118 throws WSIFException { 119 120 Binding binding = port.getBinding(); 122 List exs = binding.getExtensibilityElements(); 123 for (Iterator i = exs.iterator(); i.hasNext();) { 124 Object o = i.next(); 125 if (o instanceof SOAPBinding) { 126 return new WSIFPort_SoapRMI(def, service, port, typeMap); 128 } 129 } 130 131 return null; 133 } 134 135 139 public String [] getBindingNamespaceURIs() { 140 Trc.entry(this); 141 Trc.exit(supportedBindingNamespaceURIs); 142 return supportedBindingNamespaceURIs; 143 } 144 145 149 public String [] getAddressNamespaceURIs() { 150 Trc.entry(this); 151 Trc.exit(supportedAddressNamespaceURIs); 152 return supportedAddressNamespaceURIs; 153 } 154 } | Popular Tags |