Webservice client : different wsdl file for test/production environment

In an ADF application, I need call a web service in model project
In my company, we have 2 environments : test and production.
This webservice is deploye in test server and production server.
So there are 2 different wsdl file for test/production.
I want to make my ADF Application portable cross the 2 environments.
An environment variable can indicate in which environment the ADF application run.
According to this variable, application choose which wsdl/endpoint to call.
If I use "web service Data control" wizard, how can I achieve this?
If I use "webservice proxy" wizard, how can I achieve this?
Thanks!!!!!!

Hi,
I have a model project with ws proxy client and on this proxy I added an adf ws connection called CustomerExperience
then I can do this.
// a test to try to overrule the adf ws connection from EM
Context ctx = null;
try {
ctx = ADFContext.getCurrent().getConnectionsContext();
WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("CustomerExperience");
CustomerExperience customerExperience = wsc.getJaxWSPort(CustomerExperience.class);
} catch (NamingException e) {
LOGGER.severe("got web service loading fault: "+ e.getMessage());
throw new JboException( messages.getString("NOM-999"),
"NOM-999",
null );
I exported this to an adf jar and added this to a webapp.
On runtime the ws connection is not dectected by the webapp so need to copy this ws conn to the connections of the webapp. This works
but can I change it from wlst instead of EM , is this possible?
I don't see the WS connection in wlst (oracle common) adf_listURLConnection('CE_Portal')
thanks

Similar Messages

  • How to assosciate webservice to a WSDL file

    Hi
    I tried developing webservice(EJB as RPC) in weblogic server and installed and its working fine if i call it from client.
    I am using java2WSDL(axis) tool to create a WSDL file and WSDL2Java to create stubs for client to call.I am struck in linking webservice to use the wsdl file which i have created.
    I manually tried to add my WSDL file to the WAR file of my application and also Updated the web.xml file of the Web application adding a mime-mapping.
    I am able to access the WSDL file in browser as http://bt885094:7001/webservice/user.wsdl
    But my client tries to access the service "http://bt885094:7001/webservice/C2PUserService" which has an associated WSDL file defined as http://bt885094:7001/webservice/C2PUserService?WSDL which needs to be checking for http://bt885094:7001/webservice/user.wsdl
    Could anyone tell me how to assosciate webservice to a WSDL file.
    thanks in advance

    Thank you everyone for your help. As a complete newbie I found this nice walkthrough tutorial in onjava(i dont mean to spam).
    1. View: Take a peek at the existing Fibonacci code.
    2. Java2WSDL: Generate the WSDL file for the given Fibonacci interface.
    3. WSDL2Java: Generate the server side wrapper code, and stubs for easy client access.
    4. FibonacciSoapBindingImpl: Fill in wrapper to call the existing Fibonacci code.
    5. Deploy: Deploy the service to Apache Axis.
    6. Client: Write a client that uses the generated stubs, to easily access the Web service.
    Given the webservice endpoint and the method name, I think I can now consume the web service using steps 3,4, and 6.

  • How to combine multiple webservices into one WSDL file

    Gurus,
    I have 4 four webservices(ws1,ws2,ws3 & ws4) defined in XI. Normally in XI when we define webservice ,WSDL file will be generated for each interface. Now I have 4 related interfaces, so 4 WSDL files will generated. Suppose if I have 100 webservices then 100 WSDL files need to be generated & need to send to other party to consume our services, which is very tedious task & to track also. So is it possible to combine related webservices into one WSDL file? Your inputs will be highly appreciated.
    Regards,
    Santhosh

    Hi,
             Instead of trying to combine the interfaces, you can try to define your interface mapping with 4 sender interfaces with in one interface mapping . I think this may give you the result you are expecting.
                      If you want entire content to be in one interface , then, define single interface which can accomadate, all message ocntent of all 4 interfaces.Means your sender message to contain the 4 datatypes internally.
    Regards,
    Reyaz

  • How to write won WSDL file for SOAP adapter ?

    Hi experts
      Can any one expalin me how to write WSDL file  for SOAP adapter ?
      What and all things i need to know ? i have no idea on this....
      I got the business but to WSDL ...i am very new to this
    Adv...thanks
    Rakesh

    HI,
    Please see the below links,
    Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a61ff
    /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
    /people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12
    Regards
    Chilla..

  • So how to specify different answer file for different install images in WDS snap-in?

    hello
    in WDS snap-in, in properties on server name, on client tab, we can define an answer file for unattended windows installation on WDS clients.
    my question is, maybe we have added multiple images in WDS snap-in (win xp image, win 7 , win 2008,...)
    now this one answer file applies to all of them ?
    so how to specify different answer file for different install images in WDS snap-in?
    thanks in advanced 

    Under the "Client" tab of WDS, you should only use an answer-file with settings relevant for the installation. This would be credentials for the WDS deployment share, international settings used during the setup and possibly also destination drive
    details (if you want the installation to take care of partitioning the disk etc). The settings relevant for unattend-files used under "Client" would only be of those in phase 1 (WinPE).
    However, if you would like to have specific unattend file for every installation, e.g. Win7, Server 2008, Win 8 etc, you can browse to the image under "Install Images" under the image Groups. There you can select properties for every image and
    have a personal unattend-file.
    hi Joel
    very cool. thanks a lot, that really helped me.
    best regards

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • How to create different log files for different users in log4j

    I want to create different logs for different users, using different appenders for each user so that logs are created in his file only.
    Confusion:How to direct them to different files in my logger class

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • Java.util.logging - different log files for different loggers

    I'm having trouble configuring Java logging to use different log files for different loggers.
    In log4j, I would do this by configuring multiple loggers each with a different appender. But how can I do this with Java (java.util.logging) logging?
    This is the basic idea of what I'd like to do:
    com.mycompany.app1.level = FINEST
    com.mycompany.app1.<log file> = logfile1.log
    com.mycompany.app2.level = ALL
    com.mycompany.app2.<log file> = logfile2.log
    Any suggestions?

    This kind of thing?
    import java.io.IOException;
    import java.util.logging.FileHandler;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import java.util.logging.SimpleFormatter;
    public class LogTest {
        private Logger app1;
        private Logger app2;
        public LogTest() {
            // setup loggers
            try {
                // first logger
                app1 = Logger.getLogger("com.mycompany.app1");
                FileHandler filehandler = new FileHandler( "logfile1.log" );
                filehandler.setFormatter(new SimpleFormatter());
                app1.addHandler(filehandler);  
                // second logger       
                app2 = Logger.getLogger("com.mycompany.app2");
                filehandler = new FileHandler( "logfile2.log" );
                filehandler.setFormatter(new SimpleFormatter());
                app2.addHandler(filehandler);  
            } catch(IOException ioex) {
                ioex.printStackTrace();
        private void logStuff() {
            app1.log(Level.SEVERE, "a message for log 1");
            app2.log(Level.SEVERE, "a message for log 2");
            app2.log(Level.WARNING, "another message for log 2");
         * @param args
        public static void main(String[] args) {
            new LogTest().logStuff();
    }

  • Extracting from flat file for testing inplace of ECC(r/3)

    Hi Expert,
    Please help me out and give me your suggestion.
    We are creating a custom table in ECC it is under progress.
    I would like to create infoObject, transformation, DTP and Cube and create queries with loading info by flate file. Later on connection whole provider to table.
    Give me suggestion is ther any problem for this Or any good opinion.
    Thanks in Advance

    Loading from a flat file for testing has worked well for me.  We recently wanted to test an ODS object, but I didn't want to create a custom extracter until we knew if the ODS object would work for us. So under my infoSource I created a quick infopackage that pulled some test data from a flat file.  We've loaded test data into cubes before.  Only problem that I ever had was when I used Excel to create the flat file.  Excel wants to truncate leading zeros.  0calmonth for example needs to be loaded as 072007 not 72007.

  • Create Client Using WSDL files

    Hi All,
    I've completed the following -
    1. Created the scenario SOAP => XI => RFC
    2. Using XI configuration , generated WSDL specifying the Message Interface which triggers the scenario in XI.
    http://<serverhost>:<port>/XISOAPAdapter/MessageServlet?channel=<party>:<ServiceName>:<Channel Name>
    3. Transported this WSDL to local directory
    now when i retrive wsdl from XIServer to Create Client
    it gives exception
    and i didn't retrive WSDL files
    so please help, i have WSDL file how to Create Client using WSDL file.
    Thanks in advance...
    regards
    Bhaumik

    hi suraj
    i will check with XMLSPY
    but it gives Error Like :
    HTTP Error : Could not Post
    http://xiserver:8000/XISOAPAdapter/MessageServlet?channel=:BS_SoapToRFC:SOAPtoXI&version=3.0&Sender.Service=BS_SoapToRFC&Interface=http%3AservicetoRFC%5EPO_sync_out
    on xiserver (500)
    regards
    Bhaumik

  • How can get a database like ****.SQL file for test in sqlplus in oracle8i

    How can get a database like ****.SQL file for test in sqlplus in oracle8i,I am a beginner,thanks

    I'll give it a guess as to what it is you want but I'm afraid you'll have to give some more information to go on. I appreciate it's difficult for people who are beginners or who don't have English as their first language.
    Are you trying to run a SQL file? From SQL*plus you can do either of these:
    SQL> start my_file
    or
    SQL> @my_file
    N.B.: if th efile has a .sql extension you don't need to include it, but you do for any other file extension e.g.
    SQL> @myfile.run
    Here is the page Vijay referred to:
    Re: Physical storage Checks & adding disk on server. I hope you find it useful.
    You will more helpful links (including links to the Oracle on-line manuals at this page:
    Re: How to attach a java bean in forms6i
    good luck, APC

  • Working with Test/Production environment as application sets

    Hi to all,
    does anyone here works with a Test/Production environment system?
    We've got a single system (2 machines, one for the DB server, one for BPC), and we were thinking on making 2 application sets: Production and Test. While most of the things is easy to migrate from one system to the other one (since almost all of them are files), what worries me a bit are dimensions and some configurations of the application, security, and so on...
    Has anyone experience about it? Would you suggest it?
    Thanks
    Daniele

    Hi Daniele,
    As rightly suggested, duplicating an appset can be easily done on 2 different physical systems. In the source, you run the server manager and take the backup of your appset. Then copy the back up folder from source to the destination through the network. Again use server manager to restore the appset from the backup folder. With this process, everything will be migrated and you dont have to worry about anything.
    The point of worry is, lets say you have moved everything to the PROD and then you continue doing development in DEV and then you want to move these changes also. Now, again taking backup and restoring will not be the right option because by now, there might be some PROD data available. and if you restore again, then all that data will be lost. So, after the first restore, whatever you are doing in DEV, keep a note of all that. So, that the same thing can be replicated in the PROD system.
    Hope this helps.

  • Webservice client is not working for secured service

    Hi Experts,
    Currently i am facing issue when i try to access the secured webservice,
    I used jdeveloper 11.1.2.1.0 to create the webservice client proxy and found the following error if i invoke the service,
    I am using the following code to access the service,
    URL url = new URL(".", wsdl_url);
    MyService myservice = new MyService(url, new QName("urn:drs.test.com",
    "MyService"));
    myTester = myservice .getTester();
    Map<String, Object> reqContext = ((BindingProvider) myTester ).getRequestContext();
    reqContext.put(BindingProvider.USERNAME_PROPERTY, "user name");
    reqContext.put(BindingProvider.PASSWORD_PROPERTY, "password");
    May i know the reason for this issue?
    javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Invalid XML in source with PublicId: null: oracle.xml.parser.v2.XMLParseException: Whitespace required.
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:344)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:294)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:278)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDLInternal(CachedWSDLReader.java:531)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:484)
         at oracle.jdeveloper.webservices.wsdl.CachedWSDLReader.readWSDL(CachedWSDLReader.java:455)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1050)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$1.run(SpecifyWsdlPanel.java:364)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.xml.parser.v2.XMLParseException: Whitespace required.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:323)
         at oracle.xml.parser.v2.XMLReader.scanQuotedString(XMLReader.java:1831)
         at oracle.xml.parser.v2.XMLReader.scanQuotedString(XMLReader.java:1939)
         at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:489)
         at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:363)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:321)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
         at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
         at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:337)

    Hi
    I am facing similar issue but with Custom Adapter . I copied the axis jars under the JavaTasks folder but it does not help.
    I then copied them under the oim.ear/APP_INF/lib and restarted the OIM managed server but somehow even that does not help.
    I get following error.
    Caused by: java.lang.NoSuchMethodError: org/apache/axiom/om/OMAbstractFactory.getMetaFactory()Lorg/apache/axiom/om/OMMetaFactory;
            at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:150)
            at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:133)
            at org.apache.axiom.om.OMXMLBuilderFactory.createOMBuilder(OMXMLBuilderFactory.java:104)
            at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:590)
            at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:575)
            at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
            at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90)
            at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:857)
            at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)
            at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
            at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:210)
            at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:151)
    Any pointer on how I can try to resolve it.
    Regards
    Abhinav

  • Creating a Webservice from a WSDL File

    Hello,
    I am trying to create a web service from a wsdl supplied by a business partner.
    The business partner will not have their web service up and running for a few
    months, but we want to be able to unit test our work. We have the wsdl file from
    the business partner, is there an easy way to reverse engineer this into a very
    simple web service?
    Thanks
    Linda

    Hi Linda,
    You have to options here:
    [Recommended] 1. Use WebLogic Workshop to generate a Web service that "simulates"
    the one from the vendor you mentioned. See this link:
    http://dev2dev.bea.com/products/wlworkshop/index.jsp
    2. Use WebLogic Server to generate a Web service that "simulates" the one from
    the vendor you mentioned. See this link:
    http://edocs.bea.com/wls/docs81/webserv/anttasks.htm#1080773
    Depending on the WSDL, you may or may not have a problem doing either of these.
    If so, just post the issue on this news group, and someone should be able to help
    you :-)
    Regards,
    Mike Wooten
    "Linda Gilligan" <[email protected]> wrote:
    >
    Hello,
    I am trying to create a web service from a wsdl supplied by a business
    partner.
    The business partner will not have their web service up and running for
    a few
    months, but we want to be able to unit test our work. We have the wsdl
    file from
    the business partner, is there an easy way to reverse engineer this into
    a very
    simple web service?
    Thanks
    Linda

  • Best practices for Test - Production promotions

    Good Day to all
    Environment:
    OWB Client: 10.1.0.2.0 on Windows XP Professional
    OWB Server Side: 10.1.0.2.0 on UNIX (AIX 5.2)
    Repository: Oracle 9.2.0.4 on UNIX (AIX 5.2)
    Runtime Schema: Oracle 9.2.0.4 on UNIX (AIX 5.2)
    I am trying to put together an idiot-proof process to have our Infrastructure Team (Operators) facilitate the promotion of OWB objects from our Test environment to our Production environment.
    The Production environment is a separate OWB Repository and separate target schema.
    Thanks to SOX we can't have one person be able to update both environments.
    I am thinking of using UNIX scripts to run MDL Exports and MDL Imports and OMBPLUS to do the deployments.
    Has anyone implemented such a process?
    My other thought was to use the 'Deploy to File' method and OMBPLUS to do the actual deployment.
    Any pros and cons to either method?
    Any and all opinions are most welcomed.
    Many thanks.
    Gary

    Upon further research it appears I'll need a combination of exp/imp and OMBPlus to do what I need. Please correct any of the below assumptions:
    1 - I need to use exp/imp to get the object definitions from the Test repository to Production repository.
    2 - I need to do a 'Deploy to File' through the OWB Client on the Test repository objects to generate the deployment files.
    3 - I then need to use OMBPlus to deploy the objects on the Production side.
    Questions:
    1 - Is there a way to get the 'Deploy to File' output in a command line environment so it can be scripted in UNIX?
    2 - Is there a way to set up a 'Deploy Only' type user so the Operators can ONLY deploy objects and NOT change anything?
    Thanks very much for the help. I'm very interested in how other companies are handling the separation of duties with SOX and these moves from Test to Production.
    Till then...
    Gary

Maybe you are looking for

  • Email messages don't appear in the inbox

    Hello, This morning, I sent 2 messages from my tablet and they didn't appear in the message inbox after I sent them.  I never had this problem since I purchased my new tablet a few weeks ago and suddenly this problem decided to occur.  So, I'm using

  • Problem by Maintaining a Business System for the Integration Server

    Hi to all, I have the following problem. I tried to change some Business systems configuration in SLD but accidentally deleted defined Business System for our Integration Server. After that I tried to create that business system again but I have the

  • Printing 11.7 X 16.5 with Epson R3000

    I am trying to print out photos on 11.7 X 16.5 photo paper on an Epson R3000.  The aperture software does not have this option and when I put it in custom it does not print correctly.  I have tried changing from portrait to landscape, using 11 X 17 a

  • REP-1849    HELP!     Reports 6i runtime error message REP-1849

    Running Reports runtime 6 on Windows 2000 server. Printing to either printer from Notebook, prints OK. Printing to network HP LaserJet 8150 PL 6, all is OK Printing to network HP LaserJet 5Si MX this happens: The end of the trace log: 13:45:11 APP ..

  • Using Elements 9

    I bought Photoshop Elements 9 because we were told in my class that I am taking that we needed elements to edit our photos.  I cannot figure out how to use it.  The book that I am using for school describes how to use elements 3.  I cannot make heads