OSB: Soap 1.1 and Soap 1.2

Hello i am tasked with a wsdl file that contains two port types one with soap 1.1 and the other with soap 1.2
Now I need both the soap 1.1 and soap 1.2 to be available to the end user
however in osb when creating the proxy service i am forced to choose either hte soap 1.1 binding or the soap 1.2 binding... will i have to create two separate proxy services for each or is there a way to have it where one proxy service can support both soap types?

How come a SOAP 1.2 request can go through the whole flow even though the local PS and provider BS I chose the SOAP 1.1 ports?Make your PS_3 as Any XML Service proxy service and the select Local Transport.
come a SOAP 1.2 request can go through the whole flow even though the local PS and provider BS I chose the SOAP 1.1 ports?Your PS_3 can accept both SOAP1.1 and SOAP1.2 as it's based on Any XML service.
Regards,
Abhinav

Similar Messages

  • OSB 11g - Authentication - Username and password in SOAP body

    Hi,
    I have a PS based on the WSDL provided by the client. According to the WSDL the client will send the username and password (to be used for authentication) in SOAP Body. I have extract the username and password from the body and authenticate it and then only process the data.
    The approach I am thinking of is to create two PS. The first PS will be called by client to send the data. There will be no authentication required for this PS. Once this PS (PS-1) receives the message it will extract the username, password and data from the SOAP body. It will then set the username and password in the HTTP header of the second PS (PS-2) and the data in the SOAP body of PS-2.
    PS-2 will be under basic authentication. PS-2 will accept the data as the only payload. Upon receiving the data it will do the normal processing.
    But I do not see any way to set the HTTP header (Authorization) for the second PS. Is my approach correct? Is there another/better approach?
    I went through this link [http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/security/model.html] and found that we may have to configure another Authentication provider. How to do that?
    Thanks,
    Sanjay

    Hi Sanjay,
    Your approach seems correct to me (using two proxies) but instead of setting the username and password in HTTP header, you may set it as SOAP header and use Custom Authentication method in OSB. To know more about it, please refer -
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15866/message_level_cust_auth.htm#i1069719
    Regards,
    Anuj

  • Prefix namespace OSB, SOAP response

    Hi!
    I'm doing a web service in OSB 11g.
    An application is parsing the SOAP response after calling my WS, and they are expecting that my SOAP response have hardcode prefixes.
    My SOAP response is like this:
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    XXXX
    </soapenv:Body>
    </soapenv:Envelope>
    They want another prefix (soap instead of env or other prefix). Something like this:
    <soap:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    XXXX
    </soap:Body>
    </soap:Envelope>
    Do you know how can I fix it? I know this is a problem of the application who is calling my WS, but if I can do this, I can solve them a problem.
    Thanks!!

    mybe the valid one is something like this,...please refer to the namespace,it sould be "xmlns:soap" than "xmlns:env" because you trying to use soap prefix .
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    XXXX
    </soap:Body>
    </soap:Envelope>
    you can change the soap message in many way...for example you can use message processing actions such as 'replace action':
    you can replace xpath . on variable $body with expression fn-bea:inlinedXML('<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    </soap:Body>
    </soap:Envelope>')
    hope it will helping you

  • [OSB] SOAP Message Body Deleted in Routing Process

    Hello Folks,
    I'm using Oracle Services Bus 11g and I have the following scenario:
    A Business Services that is a client of a WebService. This WebService has an operation that return in its Soap Message a field with special characters (an encripted password).
    So, I've created an Proxy Service that route the request message to above business service, but when the message returned by Business service is routing back to Proxy Service the body of the message is deleted.
    Checking out the trace of the call, it says "Body was deleted" ! And so the message is returned by Proxy service without body !
    I suspected that problem is something about encoding !
    Someone could help me resolve this problem ?
    Thanks in advanced!

    Hi,
    I am facing some similar issues with OSB 10gR3 where the Message body gets deleted and i get empty soap body as response when i make continuous calls to a business service without any time delay between the calls.
    Though surprisingly i get the correct response from the business service for the first time but only on consecutive calls without any time delay between two calls i get empty soap body. Later if i try to call the business service leaving a gap of 15 sec after my first call, i get the correct response.
    I initially thought it might be a problem with the business service itself but when i try to make continuous calls to the Business service without any timedelay directly from SOAPUI , I am getting correct response everytime.
    Hence this seems to be a problem only when i invoke the business service via the OSB proxy and thsi deletes the response body wehn i make continuous calls.Not sure whether this is a bug with OSB or encoding issues.
    Pls help me to know if this has anything to do with the caching or any setting in OSB server.
    Thank you
    Preetha
    Edited by: 893969 on 31-Oct-2011 06:25
    Edited by: 893969 on 31-Oct-2011 06:27

  • [OSB] SOAP Validation

    Hello,
    I have a proxy with service type "Any SOAP". Is there a way to validate the SOAP request?
    For example:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:op="http://www.op.org/">
    <soapenv:Header/>
    <soapenv:Body>
    <op:baja>
    <op:id>2231</op:id>
    </op:baja_ERROR>
    </soapenv:Body>
    </soapenv:Envelope>
    or with wrong/inexistent namespace
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:op="http://www.op.org/">
    <soapenv:Header/>
    <soapenv:Body>
    <op:baja>
    <opINEXISTENT:id>2231</opINEXISTENT:id>
    </op:baja>
    </soapenv:Body>
    </soapenv:Envelope>
    or without Body:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:op="http://www.op.org/">
    <soapenv:Header/>
    </soapenv:Envelope>
    is possible check this?
    Thanks.

    There is no out of the box way to do that. However you can try following:
    Instead of defining a Any SOAP type service, create a dummy WSDL with AnyType request and response. In the Proxy Service configuration enable the WS-I compliance checkmark and it will validate the structure of SOAP Envelope for you.
    The problem is that WS-I compliance is available for only WSDL based web services hence you will need the workaround.
    You can find more details here:
    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/modelingmessageflow.html#wp1076699

  • OSB Authentication using username and password (plaintext or digest)

    Hi,
    I want to implement a simple osb authentication using username/password (plain text or digest) , so that client required to provide username password token in soap header (message Level security) to access our webservices. I have read some of articles which shows how to create custom ws policy, but received following error during deployment.
    weblogic.wsee.ws.init.WsDeploymentException: The WebLogic Server 9.x-style policy is not supported in JAX-WS web services
    Please note - I can not install OWSM as part of my requirement
    =======
    <?xml version="1.0"?>
    <!-- WS-SecurityPolicy -->
    <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    xmlns:wssp="http://www.bea.com/wls90/security/policy"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wls="http://www.bea.com/wls90/security/policy/wsee#part">
    <!-- Identity Assertion -->
    <wssp:Identity>
    <wssp:SupportedTokens>
    <!-- Use UsernameToken for authentication -->
    <wssp:SecurityToken IncludeInMessage="true"
    TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
    <wssp:UsePassword Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"/>
    </wssp:SecurityToken>
    </wssp:SupportedTokens>
    </wssp:Identity>
    </wsp:Policy>

    You can use the default Auth.xml WS policy in OSB and be able implement the authentication using username and plain text password.
    Just assign the Auth.xml on the Request Policies of the Proxy Service (under Policies).
    Then use any user credentials that has access to the domain for testing.
    If you want to restrict access for each operation then in the Security tab, under Message Access Control, specify a Role.
    Then in the OSB > Security Configuration, create the appropriate role with the specific role conditions like User is User1 or User is User2 etc ...
    Hope this helps.
    Thanks,
    Patrick

  • OSB 10gR3 Error handling and reporting action approach

    My use case:
    Simple Proxy service routes to an external web service created as Business service in OSB
    Whenever there is transport error/soap fault from the external web service, that error needs to be reported along with the original request received by the proxy service.
    What I have tried so far?
    Created a error handler/stage in the route node of my proxy service. Within that stage, added a report action to report $body which contains the error received from the external service. I created a report index key/value to report for this request, I used a specific element in the body of the original request sent to the proxy service.
    Within the route error handling stage, I realized that $body which had my original request to the proxy service lost its content and replaced by the fault from external WS. So I made a copy of $body in my request pipeline and tried to use an element from that copy to index my failed request. But the copied variable always seem to be empty within the error handling stage.
    So, my questions to the experts,
    1)What variables are visible within the error handling stage/scope?
    2)What is the best way(less overhead) to preserve my original request as $body context variable is already changed with fault by the time error handler is invoked? Remember I wanted to report the original request only incase of error, for success cases I don't care/I don't want to un-necessarily add an overhead of copying to a vairbale.
    3)Is there another proper way to simply report the original request received by proxy and fault received from external service for a given key in the request, say orderId
    Sample proxy request:
    <MyData>
    <OrderId>123</OrderId>
    </MyData>

    1)What variables are visible within the error handling stage/scope? $fault - http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/context.html#wp1051816
    $body - http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/context.html#wp1103311
    2)What is the best way(less overhead) to preserve my original request as $body context variable is already changed with fault by the time error handler is invoked? Remember I wanted to report the original request only incase of error, for success cases I don't care/I don't want to un-necessarily add an overhead of copying to a variable.Can you print $body and $fault variables in your error handler?. Are they different ? What I'm suspecting is the back-end webservice is faulting (returning soap-fault and http response =5xx). There is no other way I can think of than copying the contents of $body to a separate variable.
    Thanks
    Manoj

  • OSB 1031: proxy service and publishing JMS messages with no duplicates

    Hi all,
    we have a Web Service proxy that publishes messages into a JMS queue. The queue is persistent and the related connection factory is XA enabled.
    The proxy does the call to the JMS business service from a route node.
    If a failure occurrs after the publishing returns successfully, the caller receives back an error and it will try again to call the web service proxy.
    As the message has been published successfully and was not rollbacked by the proxy, the second call could put on the JMS queue a duplicate message.
    As far as we know only with JMS proxy service, OSB starts a transaction within the pipeline or are we wrong ?
    What do you suggest in order to avoid such a scenario described above ?
    Thanks and regards
    ferp

    Try this link to depict the behavior
    http://allthingsmdw.blogspot.com.au/2012/09/osb-service-callouts-and-oql-part-1.html

  • SOA 11 G and OSB under single WLS and domain

    Hi,
    I have OSB(10.3.1)(file:osb1031_wls103_win32.exe) installed on local machine on some domain say "osb_domain".
    I also want to install the SOA_Suite_11.1.1.2.0 on the same machine under the same domain.
    is this right way of doing it?
    OR
    Do we need a seperate domain for both SOA and OSB?
    If yes, then I dont understand why cant we leverage the WL server infrastructure to manage the OSB and SOA, since both runs on WLS.
    thanks
    Sanjeeva

    thanks Adam,
    What if I want to install both on same machine with different domains?
    Say
    Soa - soa_domain
    osb - osb_domain
    can this be done?
    SOA has three servers running (admin server, soa_server1, bam_server1 on ports 7001,8001,9001 respectively) and listening to port 5556 (default port)
    if I install OSB also on the same machine with different domain on port say for ex 1001, do I need to change the listening port to different port ?
    thanks
    Sanjeev

  • OSB Unused block compression and Undo backup compression

    Dear all.
    I know that osb backup software is faster than other vendor software especially oracle database backup area.
    There are two special method (Unused block compression and Undo backup compression)
    But, normally in case of comparable product using same RMAN API(Veritas/Legato etc...), they only backup used block and skip unused block, right?
    I'm confused, what is different from used block only backup and unused block compression.
    Please explain detail about unused block compression and Undo backup compression.
    Sorry about my poor knowledge.
    Thanks.

    This is explained in detail in the OSB technical white paper:
    http://www.oracle.com/technetwork/products/secure-backup/learnmore/osb-103-twp-166804.pdf
    Let me know if you have any questions
    Donna

  • OSB for Win 64 and Linux 64

    Will OSB be released for Win64 and Linux 64 platforms?
    If so, when?
    Chris

    Yes, we are now working on Win64, Linux64 as well as other platforms. I anticipate having support in about 2 -3 month timeframe

  • OSB EXPRESS documentation needed and OSB install fails

    For six days I have been trying to install OSB in the absence of ANY documentation on OSBE - Express - with a Service Request now 5 days old not updated by Oracle for 4 days.
    ALL I am trying to do is implement OSBE on ONE Linux server with it's own tape drive.
    There is NO documentation on this ANYWHERE. Neither at Oracle or ANYWHERE else in the Googlesphere, which is quite remarkable.
    But I cannot even install OSB - which is where all Express paths lead - from
    Oracle® Secure Backup Installation and Configuration Guide
    Release 10.2
    Part Number E05408-02
    as I get as far as making the Linux Attach Points and ... can't.
    The commands are irrelevant to OSBE configuration, they assume a tape library as well as a drive. I don't have a tape library. I couldn't define one if I wanted to.
    [root@DBAS10G dev]# sg_map -i –x
    /dev/sg0 0 0 3 0 1 /dev/nst0 HP C5683A C908
    shows that I ONLY have one Linux Attach Point candidate.
    Has ANY ONE ever installed OSBE on a 1 : 1 - Linux server : Tape drive - configuration, please?

    I've not looked at the Express version, but the full OSB installation media has a doc folder which contains all the installation and configuration guides. This is also available from the webtool by clicking the "help" link at the top right corner. The documentation is also available for download from http://download.oracle.com/docs/cd/E10317_01/welcome.html.
    Anyway, have you got OSB installed and have access to the webtool? If so you can just go to Configure Hosts, make sure your client is listed with the mediaserver role, and then go to Configure Devices and add the tape device. For the device attachment you can just specify /dev/sg0, no need to put anything else in there.

  • OSB on Sun solaris and JMS Reporting

    Dear all,
    When I install OSB and configure domain for OSB on Sun solaris, I encounter error when start manage-server:
    <Feb 9, 2011 11:24:34 AM ICT> <Error> <OSB-Reporting> <BEA-473500> <JMS Reporting Data Manager failed to deploy during server start up weblogic.application.ApplicationException: [OSB-Reporting:473517]The JMS Reporting Provider Database tables werent created and the JMS Reporting Data Manager didnt deploy.
    weblogic.application.ApplicationException: [OSB-Reporting:473517]The JMS Reporting Provider Database tables werent created and the JMS Reporting Data Manager didnt deploy.
    at com.bea.wli.reporting.jmsprovider.init.JmsReportingDBCreate.createDBObjects(JmsReportingDBCreate.java:78)
    at com.bea.wli.reporting.jmsprovider.init.JmsReportingStartupAndShutdown$1.run(JmsReportingStartupAndShutdown.java:58)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.security.Security.runAs(Security.java:61)
    Truncated. see log file for complete stacktrace
    So it seems like I have to use RCU for create table but there is no version for sun solaris.
    Please kindly help how to solve this issue. I use Sun Solaris 64bit

    RCU is available for Windows & linux platforms only but it can be used to create schema's on remote databases as well. So in case your DB is on non Linux/Windows platform, then run RCU from any machine with Linux/Windows plaform and create schema's on remote database.
    Please refer -
    http://onlineappsdba.com/index.php/2009/10/09/how-to-create-fmw-11g-schemas-soa-webcenter-on-solaris-non-windowslinux-platform/
    Regards,
    Anuj

  • Auto deploy of ALSB/OSB artifacts - Proxy, WSDL and other resources

    hi.
    i want to create resources (wsdl resource,proxy service resource ,eg) useing alsb api with java code.
    i got one method in alsbconfigmbean(not alsbconfigurationmbean) class,createResource.
    and i find one method in Refs class,makewsdlref.
    but i donnot know how to use it.
    now i had created project and folder,how can i create WSDL resource under the folder.
    I am new about alsb,can someone help me please.

    Resource creation through API is not supported by OSB or in other terms API is not made public.
    Only API supported is documented at http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15867/app_apis.htm#CHDHAJGD
    Little surprised about use-case in which it is required?
    Manoj

  • Auto deploy of ALSB/OSB artifacts - Proxy, WSDL and webservices...

    Would like to know if there are any leads on how to automate the deployment of artifacts within OSB in an automated manner using WLST or any other method

    Hi,
    One can use offline WLST scripts for automated deployment. The script (python scripts) can be invoked using Ant. In summary, the steps are:
    1. Copy the relevant files in a folder (preferably <DOMAIN_HOME>). The files are
    a. import.py: The actual python script that does the deployment process
    b. import.properties: A properties file used by the import script. It contains information about the deployment jar file (sbconfig.jar), any customization file, host and port information of the OSB server and credential information
    c. sbconfig.jar(Or any other name): OSB deployable artifacts bundled using the editor or exported from another OSB environment
    d. build.xml: Defines the import task executed by ant
    e. OSB customization xml file
    2. Open a command prompt (Windows environment), navigate to <DOMAIN_HOME>/bin and execute setDomainenv.bat
    3. Additionally add the follwing jar files to the classpath. These files are used by the APIs used in the python script. These were not needed prior to the 3.0 version of OSB (ALSB). The files are: +<BEA_HOME>/modules/com.bea.common.configfwk_1.1.0.0.jar+ and +<OSB_HOME>/lib/sb-kernel-api.jar+
    4. Using the same command prompt, navigate to the folder where the files in step 1 had been placed and exeute the import task using ant (something like ant import)
    Plese find a sample of the import.py, build.xml and import.properties files as follows:
    *================= import.py =============================*
    from java.util import HashMap
    from java.util import HashSet
    from java.util import Map
    from java.util import Set
    from java.util.Map import Entry
    from java.util import ArrayList
    from java.util import Hashtable
    from java.lang import System
    from java.io import FileInputStream
    from weblogic.management.mbeanservers.domainruntime import DomainRuntimeServiceMBean
    from javax.management.remote import JMXConnector
    from weblogic.management.jmx import MBeanServerInvocationHandler
    from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    from com.bea.wli.config.customization import Customization
    from javax.management import ObjectName;
    from com.bea.wli.config.resource import Diagnostics
    from javax.management.remote import JMXConnectorFactory
    from javax.management.remote import JMXServiceURL
    from javax.naming import Context
    from com.bea.wli.config import Ref
    from com.bea.wli.sb.management.importexport import ALSBImportPlan
    from com.bea.wli.sb.management.importexport import ALSBImportOperation
    import sys
    #=======================================================================================
    # Entry function to deploy project configuration and resources
    # into a OSB domain
    #=======================================================================================
    def importToALSBDomain(importConfigFile):
    try:
    print 'Loading Deployment config from :', importConfigFile
    exportConfigProp = loadProps(importConfigFile)
    host = exportConfigProp.get("host")
    port = exportConfigProp.get("port")
    intPort = int(port)
    print "Connecting to: " + host + ":" + port
    importUser = exportConfigProp.get("importUser")
    importPassword = exportConfigProp.get("importPassword")
    importJar = exportConfigProp.get("importJar")
         customFile = exportConfigProp.get("customizationFile")
    # passphrase = exportConfigProp.get("passphrase")
    # project = exportConfigProp.get("project")
         print "Initiate Connection"
         conn = initConnection(host, intPort, importUser, importPassword)
         print "Connection successful"
         mbconn = conn.getMBeanServerConnection()
         obname = DomainRuntimeServiceMBean.OBJECT_NAME
         domainService = MBeanServerInvocationHandler.newProxyInstance(mbconn, ObjectName(obname))
         name = SessionManagementMBean.NAME
         type = SessionManagementMBean.TYPE
         sm = domainService.findService(name, type, None)
         bytes = readBinaryFile(importJar)
         sessionName = "ScriptImport"
         print "sessionName: ", sessionName
         sm.createSession(sessionName)
         alsbSession = domainService.findService(ALSBConfigurationMBean.NAME + "." + sessionName, ALSBConfigurationMBean.TYPE, None)
         alsbSession.uploadJarFile(bytes)
         jarInfo = alsbSession.getImportJarInfo()
         importPlan = jarInfo.getDefaultImportPlan()
         result = alsbSession.importUploaded(importPlan);
         # list of created references
         createdRef = ArrayList()
         operationMap = importPlan.getOperations()
         set = operationMap.entrySet()
         for entry in set:
              ref = entry.getKey()
              createdRef.add(ref)
    # Print out status and build a list of created references. Will be used for customization
         if result.getImported().size() > 0:
              print "The following resources have been imported: "
              for successEntry in result.getImported():
                   print successEntry.toString()
    # Check for error and discard session in any resource fails
         failCount = result.getFailed().size()
         if failCount > 0:
              print ""
              print "Failed for: " + failCount + " resources"
    #          print "The following resources failed to import"
    #          for entry in result.getFailed().entrySet():
    #               ref = entry.getKey()
    #               diagnostics = entry.getValue().toString()
    #               print ref + " Reason: " + diagnostics
    #          abort = true
    #          raise
    #=================================================
    # Apply Customizations
    #=================================================
    #customize if a customization file is specified
    #affects only the created resources
         if customFile != None :
              print "Loading customization File: " + customFile
              print "Customization applied to the created resources only" + createdRef.toString()
              iStream = FileInputStream(customFile)
              customizationList = Customization.fromXML(iStream)
              filteredCustomizationList = ArrayList()
              setRef = HashSet(createdRef)
    # apply a filter to all the customizations to narrow the target to the created resources
              for customization in customizationList:
                   newcustomization = customization.clone(setRef)
                   filteredCustomizationList.add(newcustomization)
              alsbSession.customize(filteredCustomizationList)
    #=========================
    # Activate Session
    #=========================
         sm.activateSession(sessionName, "Imported Configuration")
         print "Project imported"
         conn.close()
    except:
    print "Unexpected error:", sys.exc_info()[0]
         print "Discarding the session."
         sm.discardSession(sessionName)
         conn.close()
         raise
    #==================================================
    # Utility function for initiating connection
    #================================================
    def initConnection(hostname, port, username, password):
         serviceURL = JMXServiceURL("t3", hostname, port,"/jndi/" + DomainRuntimeServiceMBean.MBEANSERVER_JNDI_NAME)
         h=Hashtable()
         h.put(Context.SECURITY_PRINCIPAL, username)
         h.put(Context.SECURITY_CREDENTIALS, password)
         h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote")
         return JMXConnectorFactory.connect(serviceURL, h)
    #=======================================================================================
    # Utility function to print the list of operations
    #=======================================================================================
    def printOpMap(map):
    set = map.entrySet()
    for entry in set:
    op = entry.getValue()
    print op.getOperation(),
    ref = entry.getKey()
    print ref
    print
    #=======================================================================================
    # Utility function to print the diagnostics
    #=======================================================================================
    def printDiagMap(map):
    set = map.entrySet()
    for entry in set:
    diag = entry.getValue().toString()
    print diag
    print
    #=======================================================================================
    # Utility function to load properties from a config file
    #=======================================================================================
    def loadProps(configPropFile):
    propInputStream = FileInputStream(configPropFile)
    configProps = Properties()
    configProps.load(propInputStream)
    return configProps
    #=======================================================================================
    # Connect to the Admin Server
    #=======================================================================================
    def connectToServer(username, password, url):
    connect(username, password, url)
    domainRuntime()
    #=======================================================================================
    # Utility function to read a binary file
    #=======================================================================================
    def readBinaryFile(fileName):
    file = open(fileName, 'rb')
    bytes = file.read()
    return bytes
    #=======================================================================================
    # Utility function to create an arbitrary session name
    #=======================================================================================
    def createSessionName():
    sessionName = String("SessionScript"+Long(System.currentTimeMillis()).toString())
    return sessionName
    #=======================================================================================
    # Utility function to load a session MBeans
    #=======================================================================================
    def getSessionMBean(sessionName):
    SessionMBean = findService("Session","com.bea.wli.config.mbeans.SessionMBean")
    SessionMBean.createSession(sessionName)
    return SessionMBean
    # IMPORT script init
    try:
    # import the service bus configuration
    # argv[1] is the export config properties file
    importToALSBDomain(sys.argv[1])
    except:
    print "Unexpected error: ", sys.exc_info()[0]
    dumpStack()
    raise
    *=================================================================*
    *================ import.properties ======================================*
    # OSB Admin Security Configuration #
    host=localhost
    port=7001
    importUser=weblogic
    importPassword=weblogic
    # OSB Jar to be exported, optional customization file #
    importJar=ALSBSampleProject.jar
    #Use the following if you have any customization xml file#
    #customizationFile=ALSBSampleProject_Customization.xml
    # Optional passphrase and project name #
    #passphrase=
    #project=
    *===================================================================*
    *============================== build.xml===============================*
    <project default="import">
    <property name="domain.import.script" value="import.py"/>
    <property name="import.config.file" value="import.properties"/>
    <target name="import">
         <echo message="Importing configuration"/>
         <echo message="importscript: ${domain.import.script}"/>
         <java classname="weblogic.WLST" fork="true">
    <arg line="${domain.import.script} ${import.config.file}"/>
         </java>
    </target>
    </project>
    *=====================================================================*
    Hope this helps
    Thanks & Regards,
    Vivek

Maybe you are looking for

  • Font antialiasing in Word 2007 with Wine

    Is there any way to get antialiasing in Word 2007 with Wine? Also I'm having some problems with bullets, they don't show up right. Maybe I'm missing a package for Wine or something? Thanks

  • Raise Application Error on Dynamic Action

    Hi I am using Apex 4.2. On a click of button a Dynamic Action is written, which calls a DB Package. The DB package has exception handlers and also the package has two output parameters Error Code and Error Msg So in my code(Dynamic Code) i make a cal

  • IChat AV doesn't work with M-Audio Firewire audio interface

    I saw similar topics to this but none dealing with a Firewire audio interface and none with exactly the same problem. Every other piece of software I use works with the M-Audio Firewire Solo, except for iChat AV. When it is the selected output device

  • Tree selection listener problem

    I have a JTree which uses a selection listener. I encounter a problem when I collapse a row while a leaf has focus. My program doesn't hang but so many error messages scroll up my prompt. How can I resolve this problem? Thanks!

  • OMG SOMEBODY HELP

    I created an Apple ID with an Itunes card instead of a credit card (there is $15 credit in my account) and when i try to make purchases it says "your purchase cannot be completed". Someone helppp, i don't know what to do ;-;