String scope = (String) getOption(RPCProvider.OPTION_SCOPE);
if (null == scope) {
scope = "Request";
}
ss.setOption(RPCProvider.OPTION_SCOPE, scope);
ServiceDesc sd = AxisHook.createServiceDesc(wsm, cls.getClassLoader());
ss.setServiceDescription(sd);
List allowedMethodNames = sd.getAllowedMethods();
Iterator allowIt = allowedMethodNames.iterator();
StringBuffer sb = new StringBuffer();
boolean firstPass = true;
while (allowIt.hasNext()) {
if (firstPass) {
sb.append(' ');
firstPass = false;
}
sb.append(((String) allowIt.next()));
}
ss.setOption(RPCProvider.OPTION_ALLOWEDMETHODS, sb.toString());
ss.setOption(RPCProvider.OPTION_WSDL_PORTTYPE, wsm.getWsName());
ss.setOption(RPCProvider.OPTION_WSDL_SERVICEPORT, wsm.getWsName());
ss.setOption(RPCProvider.OPTION_WSDL_SERVICEELEMENT, wsm
.getWsServiceName());
ss.setOption(RPCProvider.OPTION_WSDL_TARGETNAMESPACE, wsm
.getWsTargetNamespace());
ss.setStyle(sd.getStyle());
ss.setUse(sd.getUse());
soapServices.put(cls.getName(), ss);
}
return ss;
}