Cisco Cisco Prime Central 1.5.2 Entwickleranleitung

Seite von 223
Appendix II – 3GPP-Miscellaneous
 
11.6 FTP Configuration 
File Transfer is required to transfer inventory files to a remote file server as specified by 
end user. User can configure the file server details using  the script (ftpConfig.sh) available 
in the SIL installation directory ($SIL_HOME/bin). 
 
Each FTP server has a primary and a secondary ftp server setup with fail-over option or 
replication option. In fail-over option, files are transferred to the secondary ftp server if the 
primary is not reachable or copied on to the configured directory on local machine if the 
secondary is not reachable as well. However, in replication option, files are transferred to 
both the primary and the secondary ftp servers. In cases, where both primary and 
secondary servers are not available, the files will be stored in the local storage directory.  
 
For information on managing FTP for Standalone integration layer, see the Next Steps 
chapter in 
. 
11.7 Useful Code Snippets for 3GPP 
This section has sample code snippets to retrieve the inventory using 3GPP interface. 
11.7.1 Useful Code Snippets for 3GPP Request Response 
This section provides code snippets that can be used by a SOAP client to communicate with 
the 3GPP Web Service to perform the required operation.
 
 
// Java SOAP client Imports 
 
import javax.xml.soap.SOAPBody; 
import javax.xml.soap.SOAPConnection; 
import javax.xml.soap.SOAPConnectionFactory; 
import javax.xml.soap.SOAPElement; 
import javax.xml.soap.SOAPEnvelope; 
import javax.xml.soap.SOAPException; 
import javax.xml.soap.SOAPFactory; 
import javax.xml.soap.SOAPHeader; 
import javax.xml.soap.SOAPMessage; 
import javax.xml.soap.SOAPPart; 
import javax.xml.transform.Source; 
 
 
// Constructing the SOAP Header 
 
SOAPHeader header = message.getSOAPHeader(); 
    if (header == null) 
  header = envelope.addHeader(); 
 
// Constructing the contents for performing Authorization 
 
   
String AUTH_NS = "http://docs.oasis-open.org/wss/2004/01/oasis-
200401-wss-wssecurity-secext-1.0.xsd"; 
   
String AUTH_PREFIX = "wsse"; 
   
SOAPFactory soapFactory = SOAPFactory.newInstance(); 
   
SOAPElement wsSecHeaderElm = soapFactory.createElement("Security", 
   
 
 
AUTH_PREFIX, AUTH_NS); 
   
SOAPElement userNameTokenElm = soapFactory.createElement( 
   
 
 
"UsernameToken", AUTH_PREFIX, AUTH_NS); 
 
Cisco Prime OSS  Integration  Guide for  MTOSI and 3GPP 
 
 
219