Creating a Proxy Application Using the Command-Line Interface

Procedure

  1. Navigate to <<TIBCO-HOME>/pd/1.2/scripts/psm/ to take a look at the sample properties file. Use the sample to create a customized properties file.
  2. Navigate to <TIBCO-HOME>/pd/1.2/scripts/psm to open the appropriate data file.
  3. Use the element <gx:ProxyApplication>, to specify the properties of the proxy application.
    <gx:ProxyApplication> 
        <gx:Name>${proxy.application.Name}</gx:Name>
        <gx:ApplicationName>${proxy.application.name}</gx:ApplicationName> 
        <gx:Version>${proxy.application.version}</gx:Version> 
        <gx:EnvironmentName>${proxy.application.environment}</gx:EnvironmentName>
        <gx:DeploymentConfiguration> 
           <gx:NodeName>${proxy.application.nodename}</gx:NodeName> 
           <gx:EndpointConfiguration xsi:type="gx:SOAPJMSEndpointConfiguration" 
                portName="${proxy.application.endpointconfiguration.portName}"> 
               <gx:ProxyEndpointAddress>
                 ${proxy.application.endpointconfiguration.proxyendpointaddress}
               </gx:ProxyEndpointAddress> 
               <gx:ServiceConnectionFactoryConfigurationResource>
                 ${proxy.application.endpointconfiguration.
                 ServiceConnectionFactoryConfigurationResource}
               </gx:ServiceConnectionFactoryConfigurationResource> 
               <gx:ServiceConnectionFactoryResource>
                 ${proxy.application.endpointconfiguration.
                 ServiceConnectionFactoryResource}
               </gx:ServiceConnectionFactoryResource> 
               <gx:ServiceDestinationConfigurationResource>
                 ${proxy.application.endpointconfiguration.
                 ServiceDestinationConfigurationResource}
               </gx:ServiceDestinationConfigurationResource> 
               <gx:ReferenceConnectionFactoryResource>
                 ${proxy.application.endpointconfiguration.
                 ReferenceConnectionFactoryResource}
               </gx:ReferenceConnectionFactoryResource> 
               <gx:ReferenceOutDestinationResource>
                 ${proxy.application.endpointconfiguration.
                 ReferenceOutDestinationResource}
               </gx:ReferenceOutDestinationResource> 
           </gx:EndpointConfiguration> 
        </gx:DeploymentConfiguration>
    </gx:ProxyApplication>
    Note: The type attribute for the element, <gx:EndpointConfiguration> will change depending on the transport type. For SOAP/HTTP, the type attribute is SOAPHTTPEndpointConfiguration and for SOAP/JMS, the type attribute is gx:SOAPJMSEndpointConfiguration.
  4. Use the element, <gx:WSDL> to specify a WSDL.
    <gx:WSDL> 
        <gx:Name>${proxy.wsdl.Name}</gx:Name> 
        <gx:Location>
            <gx:WSDLFileLocation>${proxy.wsdl.file}</gx:WSDLFileLocation>
        </gx:Location> 
        <gx:RegistrationInformation> 
            <gx:Description>${proxy.wsdl.RegistrationInformation.description}
            </gx:Description> 
            <gx:Properties> 
                <gx:NameValuePair 
                 Name="${proxy.wsdl.RegistrationInformation.Property.Name}">
                       ${proxy.wsdl.RegistrationInformation.Property.Value}
                </gx:NameValuePair> 
            </gx:Properties> 
        </gx:RegistrationInformation> 
        <gx:ResourceDownloadFolder>./</gx:ResourceDownloadFolder> 
    </gx:WSDL>
  5. Use the element, <gx:SystemPreferences>, to specify system preferences.
    <gx:SystemPreferences> 
        <gx:NameValuePairSet> 
            <gx:NameValuePair 
             Name="defaultAppFolder">ProxyApplication</gx:NameValuePair>
         </gx:NameValuePairSet> 
    </gx:SystemPreferences>