JMSAddress ja =
(JMSAddress) getExtElem(port,
JMSAddress.class,
port.getExtensibilityElements());
SOAPAddress sa =
(SOAPAddress) getExtElem(port,
SOAPAddress.class,
port.getExtensibilityElements());
if (sa != null && ja != null)
throw new WSIFException(
"Both soap:address and jms:address cannot be specified for port "
+ port.getName());
if (sa == null && ja == null)
throw new WSIFException(
"Either soap:address or jms:address must be specified for port "
+ port.getName());
if (ja != null) {
// Port jms:address binding element
jmsAddressPropVals = ja.getJMSPropertyValues();
st = new SOAPJMSConnection(ja, port.getName());
} else {
// Port soap:address bindng element
st = new SOAPHTTPConnection();
// call.getSOAPTransport() is null...
String s = sa.getLocationURI();
try {
url = new URL(s);
} catch (MalformedURLException meu) {
Trc.exception(meu);
throw new WSIFException(