public void generateWSDL(MessageContext msgContext) throws AxisFault { try { String url = msgContext.getStrProp(MessageContext.TRANS_URL); String wsdlString = wsdlStart + url + wsdlEnd; Document doc = XMLUtils.newDocument(new ByteArrayInputStream(wsdlString.getBytes("UTF-8"))); msgContext.setProperty("WSDL", doc); } catch (Exception e) { throw AxisFault.makeFault(e); } } };
public void generateWSDL(MessageContext msgContext) throws AxisFault { try { String url = msgContext.getStrProp(MessageContext.TRANS_URL); String wsdlString = wsdlStart + url + wsdlEnd; Document doc = XMLUtils.newDocument(new ByteArrayInputStream(wsdlString.getBytes("UTF-8"))); msgContext.setProperty("WSDL", doc); } catch (Exception e) { throw AxisFault.makeFault(e); } } };
public void generateWSDL(MessageContext msgContext) throws AxisFault { try { String url = msgContext.getStrProp(MessageContext.TRANS_URL); String wsdlString = wsdlStart + url + wsdlEnd; Document doc = XMLUtils.newDocument(new ByteArrayInputStream(wsdlString.getBytes("UTF-8"))); msgContext.setProperty("WSDL", doc); } catch (Exception e) { throw AxisFault.makeFault(e); } } };
String configPath = msgContext.getStrProp(Constants.MC_CONFIGPATH); if (configPath == null) { configPath = "";
String configPath = msgContext.getStrProp(Constants.MC_CONFIGPATH); if (configPath == null) { configPath = "";
String configPath = msgContext.getStrProp(Constants.MC_CONFIGPATH); if (configPath == null) { configPath = "";
/** * Returns the endpoint URL that should be used in the returned WSDL. * * @param msgContext the current Axis JAX-RPC message context * @return the endpoint URL that should be used in the returned WSDL * @throws AxisFault if we fail to obtain the {@link org.apache.axis.description.ServiceDesc} for this service */ protected String getEndpointURL(MessageContext msgContext) throws AxisFault { // First see if a location URL is explicitly set in the MC. String locationUrl = msgContext.getStrProp( MessageContext.WSDLGEN_SERV_LOC_URL); if (locationUrl == null) { // If nothing, try what's explicitly set in the ServiceDesc. locationUrl = msgContext.getService().getInitializedServiceDesc( msgContext) .getEndpointURL(); } if (locationUrl == null) { // If nothing, use the actual transport URL. locationUrl = msgContext.getStrProp(MessageContext.TRANS_URL); } return locationUrl; } }
/** * Returns the endpoint URL that should be used in the returned WSDL. * * @param msgContext the current Axis JAX-RPC message context * @return the endpoint URL that should be used in the returned WSDL * @throws AxisFault if we fail to obtain the {@link org.apache.axis.description.ServiceDesc} for this service */ protected String getEndpointURL(MessageContext msgContext) throws AxisFault { // First see if a location URL is explicitly set in the MC. String locationUrl = msgContext.getStrProp( MessageContext.WSDLGEN_SERV_LOC_URL); if (locationUrl == null) { // If nothing, try what's explicitly set in the ServiceDesc. locationUrl = msgContext.getService().getInitializedServiceDesc( msgContext) .getEndpointURL(); } if (locationUrl == null) { // If nothing, use the actual transport URL. locationUrl = msgContext.getStrProp(MessageContext.TRANS_URL); } return locationUrl; } }
/** * Returns the endpoint URL that should be used in the returned WSDL. * * @param msgContext the current Axis JAX-RPC message context * @return the endpoint URL that should be used in the returned WSDL * @throws AxisFault if we fail to obtain the {@link org.apache.axis.description.ServiceDesc} for this service */ protected String getEndpointURL(MessageContext msgContext) throws AxisFault { // First see if a location URL is explicitly set in the MC. String locationUrl = msgContext.getStrProp( MessageContext.WSDLGEN_SERV_LOC_URL); if (locationUrl == null) { // If nothing, try what's explicitly set in the ServiceDesc. locationUrl = msgContext.getService().getInitializedServiceDesc( msgContext) .getEndpointURL(); } if (locationUrl == null) { // If nothing, use the actual transport URL. locationUrl = msgContext.getStrProp(MessageContext.TRANS_URL); } return locationUrl; } }
!JavaUtils.isTrueExplicitly(serviceHandler.getOption("enableRemoteAdmin"))) { String remoteIP = msgContext.getStrProp(Constants.MC_REMOTE_ADDR); if (remoteIP != null && !(remoteIP.equals(NetworkUtils.LOCALHOST) ||
!JavaUtils.isTrueExplicitly(serviceHandler.getOption("enableRemoteAdmin"))) { String remoteIP = msgContext.getStrProp(Constants.MC_REMOTE_ADDR); if (remoteIP != null && !(remoteIP.equals(NetworkUtils.LOCALHOST) ||
} else if(msgContext.getStrProp(Constants.MC_HOME_DIR)!=null){ String path = msgContext.getStrProp(Constants.MC_HOME_DIR) +'/' + filename; file = new File(path); if(file.exists()) {
!JavaUtils.isTrueExplicitly(serviceHandler.getOption("enableRemoteAdmin"))) { String remoteIP = msgContext.getStrProp(Constants.MC_REMOTE_ADDR); if (remoteIP != null && !(remoteIP.equals(NetworkUtils.LOCALHOST) ||
BooleanHolder useFullURL = new BooleanHolder(false); StringBuffer otherHeaders = new StringBuffer(); targetURL = new URL(msgContext.getStrProp(MessageContext.TRANS_URL)); String host = targetURL.getHost(); int port = targetURL.getPort();
BooleanHolder useFullURL = new BooleanHolder(false); StringBuffer otherHeaders = new StringBuffer(); targetURL = new URL(msgContext.getStrProp(MessageContext.TRANS_URL)); String host = targetURL.getHost(); int port = targetURL.getPort();
BooleanHolder useFullURL = new BooleanHolder(false); StringBuffer otherHeaders = new StringBuffer(); targetURL = new URL(msgContext.getStrProp(MessageContext.TRANS_URL)); String host = targetURL.getHost(); int port = targetURL.getPort();
BooleanHolder useFullURL = new BooleanHolder(false); StringBuffer otherHeaders = new StringBuffer(); targetURL = new URL(msgContext.getStrProp(MessageContext.TRANS_URL)); String host = targetURL.getHost(); int port = targetURL.getPort();
new GenericUrl(msgContext.getStrProp(MessageContext.TRANS_URL)), new ByteArrayContent(contentType, bos.toByteArray()));
new GenericUrl(msgContext.getStrProp(MessageContext.TRANS_URL)), new ByteArrayContent(contentType, bos.toByteArray()));
String objectID = msgContext.getStrProp("objectID"); if (objectID == null) { return getApplicationScopedObject(msgContext, serviceName, clsName, scopeHolder);