Exposing AQ's as Webservices

Hi,
Is there a working example to expose AQ's as Webservices.
Regards
Deepak

Yes, you can mix different type of J2EE artifacts in a single application. The easiest way to do this may be to use JDeveloper 10g (or the 11g Tech Preview) and to build you web service application, then add the remaining of you web application into the same project.
Hope it helps,
-Eric

Similar Messages

  • Exposing business services as webservices

    Hi All,
    Im new to webservices.I have a running java web application.
    I need to expose some methods as webservices.
    Can it be possible to create a single ear file,using which i can access webapplication and webservice wsdl file and how
    Regards,
    Bhuvan.

    Yes, you can mix different type of J2EE artifacts in a single application. The easiest way to do this may be to use JDeveloper 10g (or the 11g Tech Preview) and to build you web service application, then add the remaining of you web application into the same project.
    Hope it helps,
    -Eric

  • Exposing OIM APIs as webservice

    Hi,
    I wanted to know if i can expose OIM APIs as webservice?
    As per my reqmnt, i need to implement forgot password and change password functionality for OIM users from a portal application.
    So wanted to know if I can use OIM APIs say getChallengeValuesForSelf , compareChallengeValuesForSelf, changePasswordForSelf and then expose them as webservice?

    Can I do this...
    Create a WebService using NetBeans Editor...
    In it add a web method, which basically is using OIM API say getChallengeValuesForUser to fetch some value and then returning it as output of this web method?
    I'll be setting all the system properties required for calling OIM API here itself and also would make the connection to OIM here.
    I tried doing so, but getting an exception while I try to deploy the webservice,
    com.sun.xml.ws.model.RuntimeModelerException: The web service defined by the class weblogic.wsee.async.AsyncResponseBeanSoap12 does not contain any valid WebMethods.
    Kindly suggest.

  • Exposing DB adapter as webservice

    Hi ,
    Is it possible to expose DB adapter as webservice?
    Thanks,
    Ramesh

    Yes it is possible. Create a new project in Jdeveloper. Create new dbadatpter. Then create a deployment profile and deploy it to the server.
    Alternatively, if the dbadapter is deployed with the BPEL process, go to the BPEL Console and click the process. Click on the Descriptors tab and you can see a link to the wsdl of the dbadapter there.
    Deepak

  • How to expose ODI package as webservice..?

    hi,
    We are having a requirement where other application needs to call ODI package.
    How to expose ODI package as webservice..?

    hi John,
    when I tried to upload odi-public-ws.aar service , it faulted.
    plase help...
    This Web axisService has deployment faults
    Error: org.apache.axis2.deployment.DeploymentException: null; nested exception is: java.lang.NullPointerException; nested exception is: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException; nested exception is: org.apache.axis2.deployment.DeploymentException: null; nested exception is: java.lang.NullPointerException; nested exception is: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:273) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:604) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:199) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(SchedulerTask.java:61) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: org.apache.axis2.deployment.DeploymentException: null; nested exception is: java.lang.NullPointerException; nested exception is: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:194) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:261) ... 10 more Caused by: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:192) ... 11 more Caused by: java.lang.NullPointerException at org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:235) at org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:232) at org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:232) at org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:232) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:59) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:250) at org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuilder.java:959) at org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1067) at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:221
    regards,
    Amey

  • Exposing Oracle CEP as WebService

    Can you explain a step by step process to expose an Oracle CEP application through web services?
    I was using the steps mentioned into the following link -
    http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14301/webservconfig.htm - Step 14.3
    I have followed the steps but while deploying the Oracle CEP server was throwing error stating - 'bea-jaxws.xml' is not found.
    If you know some way to make 'bea-jaxws.xml' recognizable by the server please let me know.

    You need to
    1) configure glashfish webservice at server's config.xml:
    <glassfish-ws>
    <name>JAXWS</name>
    <http-service-name>JettyServer</http-service-name>
    </glassfish-ws>
    2) configure a bea-jaxws.xml at META-INF
    <endpoints>
    <endpoint>
    <name>EchoService</name>
    <implementation-class>
    sample.echoservice.EchoService
    </implementation-class>
    <url-pattern>/echo</url-pattern>
    <wsdl-location>
    /META-INF/wsdl/echoservice.wsdl
    </wsdl-location>
    <service-name>
    {http://example.cep.oracle.com}EchoService
    </service-name>
    <port-name>
    {http://example.cep.oracle.com}EchoPort
    </port-name>
    </endpoint>
    </endpoints>
    3) state the webservice configuration location at META-INF/MANIFEST.MF
    BEA-JAXWS-Descriptor: META-INF/bea-jaxws.xml
    4) implement the webservice like below:
    import javax.jws.WebMethod;
    import javax.jws.WebResult;
    import javax.jws.WebParam;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    @WebService(name="SimplePortType", serviceName="EchoService",
    portName="EchoPort",
    targetNamespace="http://example.cep.oracle.com")
    @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
    use=SOAPBinding.Use.LITERAL,
    parameterStyle=SOAPBinding.ParameterStyle.BARE)
    public class EchoService{
    @WebMethod()
    @WebResult(name="echoWorldResponse", targetNamespace="http://example.cep.oracle.com", partName="parameters")
    public String echoWorld(String message) {
    System.out.println("echo:" + message);
    return "echo:" + message;
    Note that only SOAPBinding.ParameterStyle.BARE is supported in OCEP for now.
    Let me know if you still have question.
    Junger

  • Exposing MDM LOGS as webservices

    Hi Experts,
    Does anybody knows if it's possible to expose the MDM logs as a webservice or even connect trough any Portal iview on it?
    Thanks in advance,
    Armando Martines Neto

    Hi,
    Logs are just the files. So, as per my knowledge, you can connect to the logs folder usin portal and display the files on that...Or if possible, you can directly connect to Logs in MDM Console under server node and display it on portal.
    Regards,
    Dheeraj.

  • Exposing cached data as webservice

    Hi all,
    I am planing to put an xml file data in cache i.e by making the xml data as a string and putting it in the cache. Now I want to expose this cached data as webservice. How can I do that. I am a newbie, pardon my ignorance.
    Thanks,
    PS

    Hi,
    You can either place your config file in your application classpath.
    http://wiki.tangosol.com/display/COH32UG/Cache+Configuration+Elements
    Or you can set from the command line or maybe from a startup script like catalina.bat using
    the following -D argument.
    -Dtangosol.coherence.cacheconfig=pathtofile
    The following has more information as well.
    http://wiki.tangosol.com/display/COH32UG/Command+Line+Setting+Override+Feature
    Thanks,
    -Dave

  • Authentication when Exposing EJB as a webservice

    Hello,
    can anybody advice me on how to expose a webservice for an ejb on the CE plattform, that requires authentication from the consumer.
    In earlier EJB EP7 implementation I had the possiblity to work with the webservice configuration and define it in the security section.
    This feature I miss, when I use @webservice annotation?
    Thanks in advance.
    Regards, Jens

    got it...
    if you run into the same problem,here's the solution
    go to nwa --> configuration management --> infrastructure and then to the
    webservice configuration section...
    the rest is straight forward.
    best regards, Jens

  • Reg:pojo datacontrol not functioning wehn exposed as proxy for webservice.

    Hi ,
    I have a class which sets the request and header part and for this data control is created and hence works fine when worked by dragging to page.
    Sample :
    Class1{
    function setheader (){  ....  }
    function setrequest() { .... }
    function invokeservice(){
    Class1 objClass = new Class();
    objClass .setheader();
    objClass .setrequest();
    } ----------- this works fine.
    But when I use setters in different class, that works through normal run(executingjava class). But not functioning when exposed as data control.
    Class1{
    function invokeservice(){
    Class2 objClass = new Class();
    objClass .setheader();
    objClass .setrequest();
    Class2{
    function setheader (){  ....  }
    function setrequest() { .... }
    This doesnt function. I want to know the reason for not working, because by this only we can edit the validations of data control attributes , which is not possible in the earlier one.
    Regards,
    Dinesh Vishnu Kumar C.

    I didn't clearly understand the question. If the question is , both Class1 and Class2 are exposed as data control and used in a page, and then you want to update Class2 properties from Class1 then the approach you took is wrong
    You cannot instantiate data control instance of Class2 as you are trying, rather you may need to use binding API to set the value or to get hold of the instnace. See the code snippet given here http://biemond.blogspot.in/2009/03/some-handy-code-for-backing-beans-adf.html
    If you have some method to initialize the properties and this method is added page def as method action ,then following will work
    // get the binding container
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    // get an Action or MethodAction
    OperationBinding method = bindings.getOperationBinding("someMethodAction");
    Map paramsMap = method.getParamsMap();
    paramsMap.put("param1","value1") ;
    paramsMap.put("param2","value2") ;
    method.execute();

  • Exposing Application Module as Webservice - Query

    Hi,
         I have a few queries regarding ADF Business Components. It will be great if you guys answer these queries:
    1. Application Module can be exposed as web service. In this scenario, does ADF support clustering?
    2. If AM is exposed as WS, what is the implication in terms of performance and availability?
    3. I could not find information related to clustering, performance and availability of WS in ADF developer guide. So, please provide any similar implementations, support statements, articles, blogs, etc for the above two queries.
    Thanks & Regards,
    Saravanan.

    Saravanan, there is a powerful, new web services feature in ADF BC in the 11g release called "Service Interface". If you use the Technology Preview 4 release from OTN, you can follow
    along with this Oracle Magazine article to learn more about the
    feature: [Services
    with a Smile|http://www.oracle.com/technology/oramag/oracle/08-jan/o18frame.html]
    Unfortunately, since the feature depends on some SOA infrastructure
    that was not ready in time on WebLogic for the first production
    JDeveloper 11g release (due out on OTN very, very soon), the Service
    Interface feature had to be removed along with the Business Events feature
    from the initial JDev/ADF 11g production release. It is planned to be
    re-introduced in the JDev/ADF release that will ship with the full
    Oracle Fusion Middleware 11g production release in the first half of
    calendar 2009.
    So, in the initial JDeveloper 11g production release the only kind of
    web services that can use ADFBC components would be ones you
    hand-create. As stateless components, they should work fine in a
    clustered environment (both now and when the "Service Interface"
    feature goes production along with the complete FMW 11g suite.

  • Exposing plsql Packages as webservices using JDeveloper

    Hi folks,
    I'm using Jdeveloper to publish database package/ procedures as webservices.These procedures use objects types as parameters (Varchar2's). I can generate the webservices (by the JDeveloper wizard), the WSDL file is generated;
    Question is about the required and optional fields. In my procedure declaration I defined the input as Varchar2 and also defined a default
    Procedure p ( p_var IN VARCHAR2 Default NULL) AS
    BEGIN
    NULL;
    END; 
    But when I deploy this package as webservice (via jdeveloper) to our weblogic server, and run a test, I get errors related to required fields if I don't pass in any value.
    Invalid input arguments for the following fields: p_var value required
    How would I change this behavior ? I made the procedures to accept default parameters ( even when no value is passed I would want my code to run)
    Thanks in advance,
    Prashanth

    Thanks Timo !
    Found out to be an issue with Oracle Fusion Middleware control (http://<hostname>:<port>/em ) validating for required Inputs, but when tested with SOAP UI or Web logic Test Client (http://<hostname>:<port>/wls_utc) it works as expected. Reported the issue to Oracle Support and the problem has been reproduced there.
    Regards,
    Prashanth

  • Exposing Database adapter as Webservice : Urgent

    Hi
    Is it possible to expose the Database Adapter as a web service using the polling strategies??
    Thanks
    Brett
    Edited by: user11688998 on Oct 18, 2009 2:50 AM

    yes u can create a BPEL Process in which use a database adapter to poll on the particular table and then invoke some process as pe your requirement
    Every BPEL Process is deployes on the app server as a webservice

  • How to create business functions and expose as webservice?

    Hi...
      How to use Java to create business functions and expose that as a webservice.

    Hi Leela,
    Can you please post the answer to the question posed?
    We are also looking for a similar implementation in our integration and would really appreciate any help.
    Regards

  • Deployment Issue with MDM Java API exposed as Webservice using EJBS

    Hi Experts,
    I am implementing MDM Java APIS in Stateless session bean.Exposed that bean as Webservice and using that webservice in
    Webdynpro through Adaptive Webservice Model.
    I am facing following issue:
    Webservice works fine after deployment,after some number of execution webservice stops working and gives exception.After
    Redeployment of the Webservice, it starts working again works fine some number of execution.
    I am Using new MDMJava API.
    MDM Server Details: MDM 5.5 SP06
    I am using following code for connetion
    //////////////*************Getting Connection************///////
              ConnectionPool pool = null;
              String sessionId = null;
              try {
                   pool = ConnectionPoolFactory.getInstance("Server Ip");
              } catch (ConnectionException e1) {
                   System.out.println(e1.getMessage());
    //////////////*************Repository Session************///////
    CreateRepositorySessionCommand repSeession =
                   new CreateRepositorySessionCommand(p_pool);
              repSeession.setRepositoryIdentifier(p_repId);
              try {
                   repSeession.execute();
              } catch (CommandException e2) {
                   System.out.println(e2.getMessage().toString());
              String repIID = repSeession.getRepositorySession();
              //     Authenticate Repository
              AuthenticateRepositorySessionCommand autRepSeesion =
                   new AuthenticateRepositorySessionCommand(p_pool);
              try {
                   autRepSeesion.setSession(repSeession.getRepositorySession());
                   autRepSeesion.setUserName(p_user);
                   autRepSeesion.setUserPassword(p_Password);
                   autRepSeesion.execute();
              } catch (CommandException e3) {
                   System.out.println(
                        "RepSession Seesion" + e3.getMessage().toString());
              return autRepSeesion.getSession();
    //////////////*************user Session************///////
    GetRepositoryRegionListCommand regionListCommand =
                   new GetRepositoryRegionListCommand(p_pool);
              regionListCommand.setRepositoryIdentifier(p_repId);
              try {
                   regionListCommand.execute();
              } catch (CommandException e) {
                   System.out.println(e.getMessage().toString());
              RegionProperties[] regions = regionListCommand.getRegions();
              //                                 create a user session
              CreateUserSessionCommand UsersessionCommand =
                   new CreateUserSessionCommand(p_pool);
              UsersessionCommand.setRepositoryIdentifier(p_repId);
              UsersessionCommand.setDataRegion(regions[0]);
              // use the first region
              try {
                   UsersessionCommand.execute();
              } catch (CommandException e) {
                   System.out.println("UserSession" + e.getMessage().toString());
              String UsersessionId2 = UsersessionCommand.getUserSession();
    AuthenticateUserSessionCommand authUserCommand =
                   new AuthenticateUserSessionCommand(p_pool);
              authUserCommand.setSession(UsersessionCommand.getUserSession());
              authUserCommand.setUserName(p_userId);
              authUserCommand.setUserPassword(p_password);
              try {
                   authUserCommand.execute();
              } catch (CommandException e) {
                   System.out.println("User Seesion" + e.getMessage().toString());
              return authUserCommand.getSession();
    //////////////*************Destroy Session************///////
         DestroySessionCommand destroySessionCommand =
                   new DestroySessionCommand(p_pool);
              destroySessionCommand.setSession(p_repsession);
              try {
                   destroySessionCommand.execute();
              } catch (CommandException e) {
                   e.printStackTrace();
              destroySessionCommand.setSession(p_Uesrsession);
                   try {
                        destroySessionCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
    Do we need to relase the connection pool object also?
    Can anyone help me with the code how that can be achived?
    Please Reply if anyone has come accross similar issue or know what can be the solution.
    Thanks in Advance.
    Regards Shruti
    Edited by: Shruti Shah on Dec 18, 2008 12:52 PM

    Hi Nitin,
    Thanks for the prompt Response.
    Even I am guessing that its becose of Connection pool.
    I am destroying session as follows
                   DestroySessionCommand destroySessionCommand =
                   new DestroySessionCommand(p_pool);
              destroySessionCommand.setSession(p_repsession);
              try {
                   destroySessionCommand.execute();
              } catch (CommandException e) {
                   e.printStackTrace();
              destroySessionCommand.setSession(p_Uesrsession);
                   try {
                        destroySessionCommand.execute();
                   } catch (CommandException e) {
                        e.printStackTrace();
    But I didnot find any method by which i can close realsse connection from connection pool.
    It would be great if you can help me how close or realese those connection.In MDM Console i am able to see those sessions even after destroying them.
    Regards Shruti.

Maybe you are looking for