And also show you how to create WSDL files for this dynamic web service server.
Refer to the below article for Generic Web Service Server Examples.
Example8_RealTime_WebServiceServerRR_For_JCAF.docExample8_RealTime(WebServiceServerRR).zip
It will cover .. BeanFace API, BeanFace Web Service, BeanFace Dynamic Transformation Invocation, Common Architecture Framework (CMAF), Common Service Framework (CMSF), Managed File Transfer (MFT) with Batch, Common Routing, Common Scheduler, Generic Web Service Client / Server, Java with OTD, Big File Handlings, PGP Cryptography, Email Approval, etc. If you have any question, you can contact me through wwlee0825@gamil.com.
private void invokeDirectWebService( com.stc.connectors.jms.Message input, com.wwlee.jcaps.otd.common.eaicommonheader.ServiceInterface otdEAICommonHeaderIn, com.wwlee.jcaps.soap.envelope.Envelope_ otdSOAPEnvelope ) throws Exception{ com.wwlee.jcaps.otd.common.eaisoapcommonbody.SOAPCommonBody otdSOAPCommonBody = new com.wwlee.jcaps.otd.common.eaisoapcommonbody.SOAPCommonBody(); WebServiceClient webService = new WebServiceClient(); String soapAction = otdEAICommonHeaderIn.getWebService().getWebServiceOutbound().getSOAPAction(); webService.setRequestSOAPMessage( otdSOAPEnvelope, soapAction ); String endpointURL = otdEAICommonHeaderIn.getWebService().getWebServiceOutbound().getEndPointLocation(); String timeOutSeconds = StringUtil.setDefaultStringValue( otdEAICommonHeaderIn.getWebService().getWebServiceOutbound().getEndPointTimeoutSeconds(), "10" ); webService.invoke( endpointURL, Integer.parseInt( timeOutSeconds ) ); byte[] soapEnvelopeMessageBytes = webService.getResponseBytesSOAPMessage(); otdSOAPEnvelope = (Envelope_) webService.getResponseOTDSOAPMessage(); webService.getElapsedInvokingTime(); /* Set Invoking Time */ otdEAICommonHeaderIn.getTimeTrackingsHeader().getComponentTimeTracking( countComponentTimeTracking ).setStartInvokingTime( webService.getStartInvokingTime() ); otdEAICommonHeaderIn.getTimeTrackingsHeader().getComponentTimeTracking( countComponentTimeTracking ).setEndInvokingTime( webService.getEndInvokingTime() ); otdEAICommonHeaderIn.getTimeTrackingsHeader().getComponentTimeTracking( countComponentTimeTracking ).setElapsedInvokingTime( webService.getElapsedInvokingTime() ); if (webService.hasFault()) { logger.error( "+++++ Received Fault Message from WebService : " + otdSOAPEnvelope.getBody().getX__AnyText__( 0 ) + " +++++" ); setEAPReprocess( input, otdEAICommonHeaderIn, "Fault Response Message", "Refer to Fault Message in CMSF" ); logger.warn( "+++++ It will be sent to Common EAIReprocess Project in CMSF +++++" ); } else { otdSOAPCommonBody.unmarshalFromString( otdSOAPEnvelope.getBody().getX__AnyText__( 0 ) ); String status = otdSOAPCommonBody.getStatus(); if (status.equalsIgnoreCase( "ERROR" )) { setEAPReprocess( input, otdEAICommonHeaderIn, "ERROR Response", otdSOAPCommonBody.getExceptionInfo().getExceptionMessage() ); logger.warn( "+++++ It will be sent to Common EAIReprocess Project in CMSF +++++" ); } } } |
public static void sendTo(JMS jms, String destinationName, String messageSelectorName, String messageSelectorValue, String correlationID, String message) throws JMSException public static void sendTo(JMS jms, String destinationName, String messageSelectorName, String messageSelectorValue, String correlationID, String message, String priority) throws |
According to Gartner Group: Managed File Transfer (MFT) suites allow businesses to manage and secure the transfer of data between two or more entities including applications and operating systems. We use the term "managed file transfer" to reflect the growing desire of businesses to manage all aspects of a file transfer not just securing communication. |
Gartner “firmly believe that 65‐70% of application integration, both internally and externally is being done using FTP.” |
MFT Manages More Than You Think, and Governs Too. - Gartner ( Feb 3, 2010) |
|
1. Support Unix Crontab-like pattern - * (Start wild character) support - Multiple-Times Support with Common(,) or –(dash) 2. With the different identifier, you can set the same interface key multiple times. 3. In DAY_OF_MONTH column, you can include and exclude the following special day - Company’s First Business Day of the Month - Company’s Last Business Day of the Month - Special Days of the Month for a Interface Key *** In order to use it, you need to maintain FirstLastBusinessDay.properties file under $JCAPS_COMMON_ROOT/properties/CommonInterface directory. 4. Enable and Disable the specific Interface key - If you change ‘ENABLE’ column value to ‘N’, the interface will be disabled. Default is empty or ‘Y’ 5. Whenever you change or update the values, just run Reload Utility against svcCommonScheduler Service. 6. Weekday : From Sun(0) to Sat(6) |