Web service which listens/replies over JMS Queues/Topics - HOW?

Hi all,
I need help - I have to implement the following Web Service for Weblogic 8.1:
- Simple Helloworld operation
- The Web service should listen on a Queue(or Topic) - say Queue1
- The response of the service should be put in another queue - predefined - say Queue2(or taken as propetry of the request "ReplyTO")
I looked for such an implementation in the available examples and forum topics, but without luck.
Please, give an example or a guide how to implement such a service if possible!
Thanks,
Ivo

Hi,
I have a work around to this problem please see if it suits you or you might already be knowing it.
Workaround is
1. Create a Simple Webservice as needed which puts a message in a Queue.
2. Create an MDB which listens to you Queue / Topic and call the created webserivce in the onMessage function of the MDB.
Vivek

Similar Messages

  • Regarding JMS-Queue/Topic in Proxy and Business service in OSB

    Hi
    I have one query regarding to the JMS-Queue/Topic.
    I am published the message to the JMS-Queue/Topic.
    ----My Business-service configuration is---
    General----Any xml
    Tranport--jms://localhost:7001/MyConnectionFactory/RequestQueue
    Response--None
    I call this Business-service in proxy-service of Routing message was published successfully to thee Queue.
    I try to dequeue the message from that queue for this
    --- I take another proxy with---
    General----Any xml
    Tranport--jms://localhost:7001/MyConnectionFactory/RequestQueue
    In meassage flow
    Routing--second busines-service)
    --- Second business-service configuration is---
    General----Any xml
    Tranport-File (C://temp)
    Issue is when I publish the message to Queue,the message is also found in the file  i.e C:temp. I don't now why  this come to the file.*
    Any suggestions
    Thanks
    Mani

    Either I did not get an idea, but in your JMS proxy you are routing to File :)
    If you don't want file, why route to 2nd BS ?

  • Can universe connect to restful web service which is not soap based

    Can universe connect to restful webservice? I know it is allowed to connect to SOAP webservice. Currently is using WSDL1.1.
    How about restful web service which does not have any wsdl file?

    Hi,
    there is a chapter - Security Configuration at Message Level
    in XI config guide which specifies everything you need - this is what you need
    so I hope no further explanations are necessary
    Regards,
    Michal Krawczyk

  • Stop MDB from listening to a JMS queue

    Hello,
    From time to time we would like to stop the processing done in our application.
    The processing is started by onMessage() in MDB. Is it possible to tell the MDB
    to stop listening
    to the JMS queue or stop the delivery of messages by JMS ? We do not intent to
    stop the processing of messages that have already started by only to stop processing
    of further messages (the ones still in the JMS queue).
    We are using 6.1SP3.
    Any help is appreciated.
    Eric Poupaert,
    Approach Belgium SA.

    If you can tune the number of messages that should be sent to the MDB to 0, that would
    temporarily stop the MDB from consuming messages. Thsi is the "Messages maximum"
    parameter on ur connectionfactory. WL6 doesnt support changing this value to 0 but there
    were some newsgroup discussions last year that it might be supported in a future
    release. Maybe its fixed in 8?
    Eric Poupaert wrote:
    Hello,
    From time to time we would like to stop the processing done in our application.
    The processing is started by onMessage() in MDB. Is it possible to tell the MDB
    to stop listening
    to the JMS queue or stop the delivery of messages by JMS ? We do not intent to
    stop the processing of messages that have already started by only to stop processing
    of further messages (the ones still in the JMS queue).
    We are using 6.1SP3.
    Any help is appreciated.
    Eric Poupaert,
    Approach Belgium SA.

  • How to provide a (web)service which delivers a process context?

    Hi folks,
    i have designed a process with Process Composer so far.
    Several tasks read and write data into the process context.
    What i want to do now is providing a (web)service which gets an process instance number as input and delivers the data from the corresponding process context as output.
    Maybe someone can explain me the steps that are needed to implement that?
    TIA
    Michael

    Hi Michael,
    In case you want to have an 'instant view' on the process data context that might be an option.
    Nevertheless I would not recommend doing so / be careful if there is no other possibility. Maybe it makes sense to define specific check points where data could be synchronized. You would benefit of a more clean process model and a reduced number of outgoing web service calls which in fact would also speed up process execution.
    I am somehow curious what you are planning to achieve. Could you elaborate on that?
    Best regards,
    Martin

  • JMS,Queues/Topics,Weblogic8.1

    Hi
    Im newbie to JMS, and I would like to get start with
    JMS,Queues/Topics on Weblogic8.1 .
    Can anybody provide me urls which are easy to
    understand as well as run the sample applications.
    thnks..

    Maybe its worth starting with a library that wraps up JMS for you so you can focus on POJOs and your application objects - like Lingo
    http://lingo.codehaus.org/
    James
    http://logicblaze.com/

  • How to send BusinessEvent from oracle EBS 12 to an external JMS Queue/Topic

    Hello Sir:
    How to send BusinessEvent from oracle EBS 12 to an external JMS Queue/Topic??
    How to receive BusinessEvent from an external JMS Queue/Topic to oracle EBS 12 ??
    It is a Third Party JMS Server, it has queue and topic etc??
    which module should be used??
    what is the basic steps to do??
    Thanks

    swapnil_yeole wrote:
    Hello,
    We want to install Oracle EBS 12.1.1.
    Our internet speed is very poor so it would not be feasible for us to download the software from E-delivery site.
    Can you please let me know how & where to obtain Oracle EBS 12.1.1 DVD's.
    Do we need to raise an SR with Oracle for same.
    Thanks in advance.
    Yes -- https://blogs.oracle.com/stevenChan/entry/how_to_obtain_media_packs
    Thanks,
    Hussein

  • Accessing JMS Queue/Topic located in different Managed server on same domai

    Our use-case is as follows.
    In our weblogic domain we have SOA_Cluster and a stand alone managed server. All the custom JMS resources belong to a JMS server that is targeted to stand alone JMS server. We are trying to access JMS Queues/Topics located in the stand alone managed server from JMS adapter (part of SOA Cluster).
    I am wondering what should be our adapter configuration in this scenario. In going through JMS adapter use-cases (below is the link), there is a mention of how to access resources located in Remote weblogic Domain. I am wondering if the same applies to us OR if there is better way to access JMS resources for our use case.
    http://download.oracle.com/docs/cd/E14571_01/integration.1111/e10231/adptr_jms.htm#CJAHAFGF
    Appreciate your feedback.

    Yes, the same applies for your case but no need to enable trust. Rest of the things will remain same.
    Better you post weblogic related questions in Weblogic forum.
    Regards,
    Anuj

  • How to deploy a web service to another machine over a network

    I've built a web service on my desktop, which deploys and functions as inteded on the desktop. What would I need to do to deploy it from a project on this computer to another over the network?

    Hi drewb3172,
    If I understand you correctly, you're just looking to deploy this web service to a computer other than your development system?
    If so, this link should be very helpful: LabVIEW Web Services FAQ: How do I create and install a built application containing a Web server a...
    Have a great day,
    Chris Vo I create and install a built application containing a Web server and Web services VIs?
    Applications Engineer
    National Instruments

  • Oracle Service Bus - Alert Destination on JMS Queue

    Hi Guys, I have been trying to create Alert destination with email destinations and have been successful. The problem that I am facing now is when I am trying to create an Alert Destination to a JMS Queue. I am using the correct format that you generally use for a JMS URI. -- jms://<host>:port/<factoryJNDIName>/<QueueJNDIName>
    This, is the scenario. I have an Alert Rule specified in one of my proxy services, which basically sends out the fault to the Alert Destination as configured above. This alert will be triggered
    when the error count in the Proxy Service exceeds 3. But I do not seem to be getting the messages into my queue which I am monitoring from weblogic console.
    However, I do get all the messages that I trigger from a separate biz service that I had made just to test the authenticity of my JMS Configuration.
    Any one experienced this before? Specifically related to SLA Alerts/Alert Destinations configuration on JMS Queues?

    Thank you for your response. Well, Let me see if I can explain in a clearer way.
    As you already know, Alert Destination (used for SLA Alerting for example) in OSB have two destinations that you can configure. One - an email recipient(s), who will get the email when the alert (configured in your proxy service and bounded to this alert destination is triggered) . Two - a jms queue, where the same "alert" can be pushed to.
    My question is - I have configured the JMS Destination on the Alert Destination configuration page as such - jms://localhost:7001/testConnFact/testQueue
    (testConnFact and testQueue being the JNDI names of the connection factory and queue respectively configured in weblogic server)
    When the alert (configured in the proxy service) is triggered, (like maybe, due to the error count being more than 3), I should be getting the message pushed into the queue, because, that's the destination I have set in this ALERT DESTINATION.
    I am NOT getting it however.
    On a diff note, when I am creating a business service in OSB on a JMS protocol giving the URI of the queue created in weblogic, I AM getting the messages into the Queue. This, I had done, to test whether my configuration for the queue is correct or not.
    So it seems that Queue configuration on weblogic is correct, however, the alert destination is simply not pushing the messages to the queue.
    Hope this was clear.

  • A web service that never replies...

    Hi!
    I write a java web service client that sends a soap message to a JAXMServlet that never replies.
    This is the simple client that sends a soap message and waits for the response:
    import java.net.*;
    import java.util.*;
    import javax.xml.soap.*;
    public class MyWebServiceClient {
      public static void main(String[] args) {
        String url = "http://localhost:8080/ws/ws";
        try {
            SOAPConnectionFactory scFactory =  SOAPConnectionFactory.newInstance();
            SOAPConnection con = scFactory.createConnection();
            MessageFactory factory = MessageFactory.newInstance();
            SOAPMessage message = factory.createMessage();
            SOAPPart soapPart = message.getSOAPPart();
            SOAPEnvelope envelope = soapPart.getEnvelope();
            SOAPHeader header = envelope.getHeader();
            SOAPBody body = envelope.getBody();
            URL endpoint = new URL(url);
            SOAPMessage response = con.call(message, endpoint);
            con.close();
        } catch (SOAPException e) {
            e.printStackTrace();
        } catch (MalformedURLException e) {
            e.printStackTrace();
    }This is the server that never replies (running on Tomcat 4.1.18):
    import javax.xml.messaging.*;
    import javax.xml.soap.*;
    public class MyWebService extends JAXMServlet implements ReqRespListener {
      public SOAPMessage onMessage(SOAPMessage message) {
        while (true);
        return message;
    }The problem is that the client doesn't receive a response (or a SOAPException) even if I kill Tomcat (and the servlet too)!!!!
    Thank you
    Matteo

    The question is:
    Is it possible to unlock the call method? Is it possible to unlock the call method whith a time out?

  • Convert a web service which has userid/password hard coded......

    Hi,
    We have created a web service in our ECC 5.0 abap system. In SICF we hardcoded the userid/password, the web service works fine and can be called successfully to read the required data from SAP.
    Now we wish to change the process so that the users calling the web service have to pass their userid/password, now things don't work!!
    How do we change things around to the new format?
    Options we are considering are as follows:
    1) Change the function module so that it has import parameters of userid and password (don't think this will work!)
    2) Somehow update the wsdl file so that it includes userid/password, is this possible?
    3) SICF/wsconfig/wsadmin config, but don't know what to do though!!
    Any ideas anyone?
    Thanks.

    > Now we wish to change the process so that the users calling the web service have to pass their userid/password
    1. Do you want to have authorize access to webservice or,
    2. do you want to user supply user/password as a parameter within service.
    for 1st you don't have to do anything just goto SOAMANAGER transaction and select basic http authentication for service endpoint. Every user who want to access (even url of wsdl) need to supply user/password.
    for 2nd option you can integrate user/password field in FM but you need to include code which check and confirm if they are valid credential.
    Regards,
    gourav

  • Problem execution web service which display a table

    Hi everybody,
    I create a web dynpro appication which calls an Adaptative Web Service.
    The associated RFC ZTEST_ROD takes 2 inputs parameters and delivers a table like this:
         - Field Import: MATNR type MATNR     WERKS type WERKS_D
         - Field Tables: TABLE_DEST like ZSTRUCT_ARTICLE
    When i import the Webservice in WebDynpro, i have the following model binding:
    Context:
      Request_ZTEST_ROD
         Response
              ZTEST_ROD_Response
                   TABLE_DEST
                        Item
                             LABST
                             LGORT
                             MAKTG
         ZTEST_ROD
              MATNR
              WERKS
    For The inputView, i link the context binding:
         ZTEST_ROD->MATNR and WERKS
    For the ResultView, i link the context binding:
         Response->ZTEST_ROD_Response->TABLE_DEST->Item     LABST,LGORT and MAKTG     
    and i create a table associated to Response->ZTEST_ROD_Response->TABLE_DEST->Item
    At last, when i execute the application, i obtain the text:
    "Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST'
    for operation 'ZTEST_ROD' in interface"
    With NO information in the log defaultTrace.trc
    Any suggestions about this problem ?
    rewarded points ...
    Thanks a lot!
    Rodolphe
    Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM
    Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM
    Edited by: Rodolphe LALOUX on Aug 21, 2008 9:34 AM

    Hi Rodolphe,
    I am not an expert in ABAP. Have a basic understanding of it. RFC have in itself, input parameters, output parameters
    and Table parameters. Now whatever is defined as Table parameter can be used both for input and output.So you can pass
    any number of records as input in this parameter and then RFC applies some business logic according to what input
    you have provided in input and table parameter and send back the output in output parameters and as set of records in
    same Table parameter.
    In general it is not necessary that you give any input in Table parameter BUT if RFC is exposed as web service then due to some
    reason it becomes necessary that whatever you have provided as Table parameter you should provide atleast one blank record
    for each of the Table Parameter.
    Hope I have not confused you.
    Regards,
    Gopal

  • Consuming an ASP web service which responds with complex data types...

    Here's my problem - I'm trying to consume a web service from a provider that uses complex data types.
    The starting part of the WSDL looks like this (I've not included the whole thing) - named have been changed to protect the innocent:
    <wsdl:definitions targetNamespace="http://domain_name">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://domain_name">
    <s:element name="Authentication">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1" name="Token"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="AuthenticateResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="AuthOK" type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="Token"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    Since it's a complexType return, with a sequence, I'd expect an array or structure returned, but instead I just get the "AuthOK" value, and no way to get anything else.
    Here are the ways I've tried calling it:
    <cfscript>
        WS = createObject("webservice", "https://WSDL_URL");
        WS_ret = WS.Authentication(Username = "username", Password = "password", Token = "");
    </cfscript>
    <cfdump var="#WS_ret#" />
    <cfinvoke webservice="WSDL_URL" method="Authentication" returnVariable="WS_ret">
        <cfinvokeargument name="userID" value="7253320" />
        <cfinvokeargument name="password" value="ctpjxs3" />
        <cfinvokeargument name="SecurityToken" value="" />
    </cfinvoke>
    <cfdump var="#WS_ret#" />
    Any ideas how I can get the other variables in the sequence? I have other calls after this that have a much larger amount of variables, and as such I can't use it without being about to get more of the

    Thanks for the reply.
    If I CFDUMP the variable it returns just "1", no XML tags, nothing at all around the data - according to the web service providers they say that they are supplying the Token part as long as the first variable is "1" (a logical true if the authentication passed). If it is "0" then no Token is returned, that is why it's optional.
    As for the CFdocs issue, look here:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=webservices_25.html
    The paragraph before it (about 2/3 down the page) states:
    In this example, the operation updateEmployeeInfo takes a complex type as input and returns a complex type as output. To handle the input parameter, you create a structure. To handle the returned value, you write it to a ColdFusion variable, as the following example shows:
    It even states that you call "updateEmployeeInfo", and nowhere mentions "echoStruct" as a method - it's seemingly been put in as a random method name, or a function call for something else. The WSDL above the example only mentions "updateEmployeeInfo" and "updateEmployeeInfoSoapOut", again not mentioning "echoStruct".
    I see this as an error in the docs as it's calling a non-existant entity in the WSDL, which should cause a run-time error.

  • Integrating Oracle EBS with web services which use SAML authentication

    Hi,
    I have a requirement to invoke web service using PL/SQL from a Custom Form of EBS.
    The web Service is configured to use SAML as authentication mechanism.
    Coming to question!
    1) How do I make my EBS integrate with a SAML provider preferably (Oracle Identity Federation) ?
    2) How do i get the SAML token in my PL/SQL and pass it on to the web service?
    Regards
    Dharmvir

    user1983888 wrote:
    Hi ,
    We have Oracle EBS R12 (12.1.2) with Oracle Database 11gR2 (11.2.0.2) Database on Linux env.
    We want to implement Oracle Database Vault 11gR2. We are referring to Note: Integrating Oracle E-Business Suite Release 12 with Oracle Database Vault 11gR2 [ID 1091083.1].
    Do we need to install Oracle Database 11gR2 (s/w only) again on the Oracle Database Server or can we use the existing Oracle EBS Database 11gR2 Home which is already on 11.2?
    Regards,
    ThiruAs mentioned in the doc "If your E-Business Suite R12 is already integrated with 11gR2 database, you just need to enable Database Vault 11gR2 & register it with the database as per Task 3", so no installation of ORACLE_HOME is required and you just need to "Register Oracle Database Vault".
    Thanks,
    Hussein

Maybe you are looking for

  • How do I set up my Mail account on my network?

    This problem has been driving me nuts for weeks now! Let me fill you in on what is going on. I had set up the free 60 day Mac Mail account with the following address: This account expired and I did nothing for several months because I had a hotmail a

  • Rp_provide_from_last dynamic table

    Hi, I have a report which uses logical database PNPCE to fetch employee data and macros like rp_provide_from_last to read infotypes. INFOTYPES: 0001 name gtab1, 002 name gtab2. rp_provide_from_last gtab1 space pn-begda pn-endda rp_provide_from_last g

  • What is the normal temperature for a MacBook Pro?

    I have a mid 2010 2.4 ghz core i5 Macbook Pro. And i fell that the temperatures get really hot, i installed a application to check and the temperature of my machine is around 90 degrees Celsius after just using it for 15 mins and thats in higher RPM

  • XI messages status "Message scheduled on outbound side" with Green flag

    Dear,           On My XI system , i have too old messages and i want to clear those.           In moni messages status is "Message scheduled on outbound side" with Green flag .          When i am trying to cancel these messages i am getting a popup s

  • Select Statment

    Dear All I want to use select statement like follows In the Select statement I want to find field values like not Begin with  'A' i can use Where <field name> Like 'A%' in this case all Begin with 'A'  values came but i want not begin with 'A' please