Soap messages from Oracle 9.2

I want to send soap messages from Oracle 9.2 Database. Our requirement would involve sending multiple rows of data. Is this feasible?

Dont know much about "soap messages" but if it is a part of your database and you want to send them to some other database then you can use oracle streams for that. Streams will give you best control to transfer "multiple rows" from one server to another.
Daljit Singh

Similar Messages

  • Error when parsing SOAP message from JSP

    i write a class to call SOAP message from a servlet on jdev 1013
    when i run the class alone it works fine
    soapMessage = this.buildSOAPMessagee();
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    soapMessage.writeTo(output);
    SOAPConnectionFactory connf = SOAPConnectionFactory.newInstance();
    SOAPConnection conn = connf.createConnection();
    SOAPMessage smsg= conn.callsoapMessage, "http://190.0.0.16:8988/mmsc/httpReceiver");
    smsg.writeTo(out);
    but when running same class same method from jsp page...i have Exception
    javax.xml.soap.SOAPException: Unable to get header stream in saveChanges     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:576)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:622)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:686)     at oracle.j2ee.ws.saaj.soap.MessageImpl.writeTo(MessageImpl.java:702)     at test.test2.ret(test2.java:341)     at untitled1.jspService(_untitled1.java:45)     [untitled1.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: java.io.IOException: SOAP exception while trying to externalize: Error parsing envelope: (1, 1) Start of root element expected.     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:220)     at oracle.j2ee.ws.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:522)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:574)     ... 23 moreCaused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.     at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:215)     ... 25 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.     at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)     at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)     ... 27 more
    dose anybody can help why that happend when running the code from JSP

    i write a class to call SOAP message from a servlet on jdev 1013
    when i run the class alone it works fine
    soapMessage = this.buildSOAPMessagee();
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    soapMessage.writeTo(output);
    SOAPConnectionFactory connf = SOAPConnectionFactory.newInstance();
    SOAPConnection conn = connf.createConnection();
    SOAPMessage smsg= conn.callsoapMessage, "http://190.0.0.16:8988/mmsc/httpReceiver");
    smsg.writeTo(out);
    but when running same class same method from jsp page...i have Exception
    javax.xml.soap.SOAPException: Unable to get header stream in saveChanges     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:576)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:622)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:686)     at oracle.j2ee.ws.saaj.soap.MessageImpl.writeTo(MessageImpl.java:702)     at test.test2.ret(test2.java:341)     at untitled1.jspService(_untitled1.java:45)     [untitled1.jsp]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: java.io.IOException: SOAP exception while trying to externalize: Error parsing envelope: (1, 1) Start of root element expected.     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:220)     at oracle.j2ee.ws.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:522)     at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:574)     ... 23 moreCaused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.     at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)     at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:215)     ... 25 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.     at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)     at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)     ... 27 more
    dose anybody can help why that happend when running the code from JSP

  • How to send JMS message from oracle to weblogic

    Hello,
    I am facing with a problem of sending jms message from oracle to weblogic. I am using oracle 10g and weblogic server 9.1. Here is the problem. I would like to create a trigger to send JMS message to weblogic server whenever there is an update in oracle database. So I created a java class that will send a jms message to weblogic server. But in that class I use the jndi from weblogic: weblogic.jndi.WLInitialContextFactory
    when I use the loadjava utility to load that class into oracle, the status of that class is invalid though this class is working fine in eclipse with the weblogic.jar included. I was thinking because the jndi from weblogic needs the weblogic.jar in order to work, then I loaded that jar file into oracle (it took about 20 minute to load everything) and everything loaded into oracle from that jar file is invalid and missing some reference.
    So my question is: how do I send a jms message from oracle to weblogic using a java class with the right jndi?
    Any help will be appreciated.
    Thanks
    TL

    It should be quite straightforward to do this. As stated you need weblogic.jar in your classpath, then use 100% standard JMS calls to publish.
    Ensure that you set the following properties before getting your initial context:
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://node:7001 (or whatever)
    this will ensure that the correct JMS implementation classes are invoked.
    You can't easily (without some mucking around) build a test implementation in an AQ environment and then deploy to WebLogic because in AQ you don't tend to use JNDI lookups (unless you've implemented oracle JNDI etc) but rather use non standard factory class to create connections etc.

  • Help sending out long email message from ORACLE PL/SQL

    Hello,
    I need help sending out long email message from ORACLE PL/SQL.
    My message(email body) contains about 4000 characters and comes out truncated somewhere on the middle.
    My business requirements do not allow me to send it as attachment.
    I am using oracle utl_smtp package and on oracle 10gR2.
    Is it possible to send out long text message from Oracle?
    Thanks!
    Ia

    Thank you very much for your responses.
    Even if I use email procedure below my message is getting truncated.
    Here is how I am trying to execute the procedure from sql plus:
    DECLARE
    P_SENDER VARCHAR2(32767);
    P_RECIPIENT VARCHAR2(32767);
    P_SUBJECT VARCHAR2(32767);
    P_BODY VARCHAR2(32767);
    BEGIN
    P_SENDER := 'xxxx@yyy';
    P_RECIPIENT := 'xxxx@yyy';
    P_SUBJECT := 'long text message';
    P_BODY :=
    '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    9 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    10 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    11 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    12 34567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
    21 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789';
    EMAIL ( P_SENDER, P_RECIPIENT, P_SUBJECT, P_BODY );
    COMMIT;
    END;
    SQL> @long_sp;
    PL/SQL procedure successfully completed.
    The email message is:
    long text message
    xxx@yyyy
    Sent:     Tuesday, May 25, 2010 6:52 AM
    To:     
    xxx@yyyy
    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 7 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 8 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 9 12345678901234567890123456789012345678901234567890123456789012345678901234
    Message is getting truncated around 1000 characters.
    What am I doing wrong?
    Please help!
    Thanks!!

  • Automated Message from Oracle Files

    Good Morning:
    When I set a new user account in Collaboration Suite, Oracle files generated a email notification like:
    "(Automated message from Oracle Files)
    An account has been created for you on Oracle Files
    (http://middleserver:7779/files/app) with the following
    User ID: user01
    In order to enable Protocol Access in Oracle Files you must go to
    http://middleserver:7779/files/app/ProtocolAccess and
    enter your Single Sign-On Password.
    Thank you for using Oracle Files. "
    But I need to change this message because the port setted is 7778 instead of 7779.
    Where I can change this default port for generate the correct notification?
    Thanks a lot for your help.

    Hello,
    I was wondering if we had the ability to handle this via the adapter?
    Possible, but you need to develop adapter module for this.
    It looks like a prologxmlepilog, but in your case, they are the ones sending. Where is the XML payload in the structure that you provided?
    You can re-escape the characters using java mapping. For example, find %3C and replace with < . Here is the complete list of URL escape characters http://www.december.com/html/spec/esccodes.html
    Hope this helps,
    Mark

  • Sending message from oracle to middleware through oracle messaging gateway

    Hi,
    I am very new to oracle AQ and oracle messaging gateway. I am actually trying to propagate a message from oracle to middleware through oracle messaging gateway.
    I have created the link between oracle messaging gateway and middleware(IBM Websphere).
    1.*Created an object type with a single attribute of type sys.xmltype*.
    create or replace type xpctas_type as object(payload sys.xmltype);
    2.*Created a qtable with payload type as xpctas_type, a queue and started the queue.*begin
    dbms_aqadm.create_queue_table(
    queue_table => 'xpctas_qtab',
    queue_payload_type => 'xpctas_type',
    multiple_consumers => TRUE
    dbms_aqadm.create_queue(queue_name =>'xpctas_q',
    queue_table => 'xpctas_qtab',
    max_retries => 16);
    dbms_aqadm.start_queue('xpctas_q');
    end;
    3.*Created a transformation that converts user defined type xpctas_type to messaging gateway canonical type sys.MGW_BASIC_MSG_T.*
    For this I created a function that converts xpctas_type to messaging gateway canonical type sys.MGW_BASIC_MSG_T.
    CREATE OR REPLACE FUNCTION APPS.order_2_basic(my_order in xpctas_type)
    RETURN sys.mgw_basic_msg_t
    IS
    v_xml XMLTYPE;
    v_text varchar2(4000);
    v_clob CLOB;
    v_basic sys.mgw_basic_msg_t;
    text_body sys.mgw_text_value_t;
    header     sys.mgw_name_value_array_t;
    BEGIN
    v_xml := XMLTYPE.createXML(my_order,NULL,NULL);
    v_basic := sys.mgw_basic_msg_t.construct;
    header := sys.mgw_name_value_array_t(sys.mgw_name_value_t.construct_integer('MGW_MQ_characterSet','1208'),
    sys.mgw_name_value_t.construct_integer('MGW_MQ_priority', '7'));
    IF(LENGTH(v_xml.getstringval())>0 AND LENGTH(v_xml.getstringval())<=4000) THEN
    v_text := v_xml.getStringVal();
    text_body := sys.mgw_text_value_t(v_text,NULL);
    ELSE
    dbms_lob.createtemporary(v_clob,TRUE,dbms_lob.session);
    v_clob:=v_xml.getClobVal();
    text_body := sys.mgw_text_value_t(NULL,v_clob);
    dbms_lob.freetemporary(v_clob);
    END IF;
    v_basic:=sys.mgw_basic_msg_t(header,text_body,NULL);
    RETURN v_basic;
    END order_2_basic;
    begin
    dbms_transform.create_transformation(
    schema => 'apps',
    name => 'order_to_basic',
    from_schema => 'apps',
    from_type => 'xpctas_type',
    to_schema => 'sys',
    to_type => 'mgw_basic_msg_t',
    transformation => 'Apps.order_2_basic(source.user_data)');
    end;
    4.     Registered a foreign queue.
    declare
    v_options sys.mgw_properties;
    gv_mq_queue_name VARCHAR2(32);
    begin
    gv_mq_queue_name := 'MB.O2C.SOFTWARESOLUTION';
    v_options := sys.mgw_properties(
    sys.mgw_property('MQ_openOptions', '2066') );
    dbms_mgwadm.register_foreign_queue(
    name => 'destq', -- MGW foreign queue name
    linkname => 'mqlink', -- name of link to use
    provider_queue => RTRIM(gv_mq_queue_name), -- name of MQSeries queue
    domain => dbms_mgwadm.DOMAIN_QUEUE, -- single consumer queue
    options => v_options );
    end;
    5.     Added a subscriber with transformation.
    begin
    dbms_mgwadm.add_subscriber(
    subscriber_id => 'sub_aq2mq', -- MGW subscriber name
    propagation_type => dbms_mgwadm.outbound_propagation,
    queue_name => 'apps.xpctas_q',
    destination => 'destq@mqlink',
    transformation => 'apps.order_to_basic');
    end;
    6.     Added a scheduler
    begin
    dbms_mgwadm.schedule_propagation(
    -- schedule name
    schedule_id => 'sch_aq2mq',
    -- outbound propagation
    propagation_type => dbms_mgwadm.outbound_propagation,
    -- AQ queue name
    source =>'apps.xpctas_q',
    -- MGW foreign queue with link
    destination =>'destq@mqlink');
    -- The remaining fields currently not used by MGW
    end;
    7.     Enqueued a user defined data type into the qtable.
    declare
    l_xmlstring varchar2(2000);
    l_payload sys.xmltype;
    my_order xpctas_type;
    enqueue_options DBMS_AQ.enqueue_options_t;
    message_properties DBMS_AQ.message_properties_t;
    msgid RAW( 16 );
    v_num Number;
    begin
    SELECT '<?xml version="1.0" encoding="UTF-8" ?>
    <Q1:XXRFG_PRCS_CNCT_TO_ASSETS_STG xmlns:Q1="http://www.ibm.com/websphere/crossworlds/2002/BOSchema/XXRFG_PRCS_CNCT_TO_ASSETS_STG" version="3.0.0" verb="Create" locale="en_US.UTF-8" delta="false">
    <Q1:STAGING_ID>221</Q1:STAGING_ID>
    <Q1:SW_INSTANCE_ID>18595755</Q1:SW_INSTANCE_ID>
    <Q1:MC_INSTANCE_ID>194734</Q1:MC_INSTANCE_ID>
    <Q1:OPCO>NUK</Q1:OPCO>
    <Q1:RELATIONSHIP_FLAG>N</Q1:RELATIONSHIP_FLAG>
    <Q1:RELATIONSHIP_TYPE>Connected To</Q1:RELATIONSHIP_TYPE>
    <Q1:ObjectEventId />
    </Q1:XXRFG_PRCS_CNCT_TO_ASSETS_STG>'
    INTO l_xmlstring
    FROM dual;
    SELECT XMLTYPE(l_xmlstring)
    INTO l_payload
    FROM dual;
    my_order:=xpctas_type(l_payload);
    dbms_output.put_line(my_order.payload.getstringval());
    DBMS_AQ.enqueue( queue_name => 'APPS.xpctas_q',
    enqueue_options => enqueue_options,
    message_properties => message_properties,
    payload => my_order,
    msgid => msgid
    COMMIT;
    END;
    As soon as I enqueued the message the subscriber picked the message and sent it to middleware. I found the below message in the middleware
    MD            ÿÿÿÿ      ¸  MQSTR         AMQ HBU473QC61  PTÀ+H^                                                                            HBU473QC61                                      mqm                                                                                                        2012112109335869                                       ÿÿÿÿ
    *<XPCTAS_TYPE><PAYLOAD><Q1:XXRFG_PRCS_CNCT_TO_ASSETS_STG xmlns:Q1="http://www.ibm.com/websphere/crossworlds/2002/BOSchema/XXRFG_PRCS_CNCT_TO_ASSETS_STG" version="3.0.0" verb="Create" locale="en_US.UTF-8" delta="false">*
    *<Q1:STAGING_ID>221</Q1:STAGING_ID>*
    *<Q1:SW_INSTANCE_ID>18595755</Q1:SW_INSTANCE_ID>*
    *<Q1:MC_INSTANCE_ID>194734</Q1:MC_INSTANCE_ID>*
    *<Q1:OPCO>NUK</Q1:OPCO>*
    *<Q1:RELATIONSHIP_FLAG>N</Q1:RELATIONSHIP_FLAG>*
    *<Q1:RELATIONSHIP_TYPE>Connected To</Q1:RELATIONSHIP_TYPE>*
    *<Q1:ObjectEventId/>*
    *</Q1:XXRFG_PRCS_CNCT_TO_ASSETS_STG>*
    *</PAYLOAD></XPCTAS_TYPE>*
    It has some junk data in the begining. How can I remove this junk data?? Any help provided on this would be of great help.
    Experts on oracle mesaging gateway and AQ, Please help.
    Thanks & Regards,
    Sachin

    Hello,
    your setup of the message gateway seems to be ok.
    Did you check the corresponding versions of the client libraries (*.jar) ? These are the libraries on
    db server side (e.g. aqapi.jar, based on your CLASSPATH entries in file "mgw.ora") and for the IBM MQ jars.
    Kind regards,
    WoG

  • How to send SOAP Message with Oracle B2B

    Hi everyone,
    I need your help to send out from Oracle B2B a SOAP message with attachment of any type of file (image, pdf, etc.). Possibly using a SOA composite application or another way, it doesn't matter. I already create an ebMS partnership with a custom document protocol and I already create a working SOA composite application to send only text message to my trading partner. I have tried this solution: http://anuj-dwivedi.blogspot.it/2011/04/ebms-attachment-handling-in-oracle-b2b.html but it doesn't work for my case... It is to be noticed that I don't give any schema to my component in the SOA application explained firstly, and I select opaque as schema.
    Thanks to all, regards
    Nello

    Hi Anuj and thanks for your help,
    I need to send an ebXML message, with SOAP, and I try to send it with a .war application written in jsp connecting to http://10.85.28.24:8001/b2b/transportServlet to send the SOAP message. The errors reported is:
    javax.xml.soap.SOAPException: Unable to receive message. Received a response from url: http://10.85.28.24:8001/b2b/transportServlet with HTTP status 200 and SOAP content-type: null.
    the code I write is the following (to evaluate the two "null" in the super constructor)
    <%!
    public class EBMSSender extends SOAPRunner
    private String cpaId;
    private String service;
    private String action;
    private String mess;
    private ArrayList<String> allegati=null;
    public EBMSSender(String cpaId, String service, String action, String mess, ArrayList<String> file)
    super("http://10.85.28.24:8001/b2b/transportServlet","null", "null");
    this.cpaId = cpaId;
    this.service = service;
    this.action = action;
    this.mess=mess;
    this.allegati=file;
    @Override
    protected void prepareRequest(SOAPMessage soapMessage, SOAPBody soapBody) throws SOAPException
    soapBody.addChildElement(SOAPUtility.createElement("CPAId", getNsPrefix(), getNsURI(),"agr3"));
    soapBody.addChildElement(SOAPUtility.createElement("service", getNsPrefix(), getNsURI(),"OracleService"));
    soapBody.addChildElement(SOAPUtility.createElement("action", getNsPrefix(), getNsURI(),"Oracletohermesb"));
    soapBody.addChildElement(SOAPUtility.createElement("serviceType", getNsPrefix(), getNsURI(),"OracleServiceType"));
    soapBody.addChildElement(SOAPUtility.createElement("convId", getNsPrefix(), getNsURI(), "convId"));
    soapBody.addChildElement(SOAPUtility.createElement("fromPartyId", getNsPrefix(), getNsURI(), "Oracle"));
    soapBody.addChildElement(SOAPUtility.createElement("fromPartyType", getNsPrefix(), getNsURI(), "Name"));
    soapBody.addChildElement(SOAPUtility.createElement("toPartyId", getNsPrefix(), getNsURI(), "Hermes-b"));
    soapBody.addChildElement(SOAPUtility.createElement("toPartyType", getNsPrefix(), getNsURI(), "Name"));
    attach(soapMessage);
    protected void attach(SOAPMessage soapMessage)
    String h=mess;
    DataHandler dh;
    AttachmentPart ap = soapMessage.createAttachmentPart(h,"text/plain");
    soapMessage.addAttachmentPart(ap);
    if(allegati!=null)
    for(int i=0; i<allegati.size();i++)
    dh=new DataHandler(new FileDataSource(new File(allegati.get(i))));
    ap=soapMessage.createAttachmentPart(dh);
    ap.setContentType(new MimetypesFileTypeMap().getContentType(allegati.get(i)));
    ap.setContentLocation(allegati.get(i));
    soapMessage.addAttachmentPart(ap);
    @Override
    protected void processFault(SOAPFault soapFault) throws SOAPException{}
    @Override
    protected Object processResponse(SOAPMessage responseMessage,SOAPBody responseBody) throws SOAPException
    SOAPElement messageId = SOAPUtility.getChild(responseBody, "message_id", getNsURI());
    return null;
    %>
    The code works fine on the other trading partner side to send ebXML message to Oracle B2B. Apart from this solution (however,it would be my favorite), I find your blog and I try to implement your solution. It works: it sends files with only text payload to the other trading partner without any problem, but if I try to send for example an image in byte array written in a file .txt, the ebxml file received has the byte array with wrong characters. it may be that I have not provided the xsd schema? in case if I wanted to send an ebXML message with text and attachments, what xsd schema do I need to provide?
    or is there another way to implement a SOA composite application to send SOAP messages with attachments?
    Thank for your help!, regards
    Nello

  • Would like to know how to read SOAP Messages from SOAP Client

    Hello,
    I am new to Webservices. Here is what I want to do.
    I need to develop a Web Service provider application.
    Here are the tools I am using to develop this application.
    a) WSAD 5.1.2
    b) Axis 1.0 built within WebSphere.
    I do have a WSDL file and I generated the code by using WSAD ==>WebService ==> Generate Java bean skeleton option. I want to know, how I can read the SOAP request message from the generated code and to add new SOAP header element.
    Any help you can provide would be greatly appreciated.

    Depending on the version of WebSphere you are using, there should be a menu option to create a dynamic web project. This will set up the basic structure of the application for you. Also, right-click on the newly created web application and there should be a context menu something like Web Services -> Deploy Web Service. This will do some more under-the-covers work for you.
    The webservices.xml deployment descriptor is only created when you generate your Java interfaces and helper classes. For example, if you are starting with a WSDL, you would right-click on the document, select Web Services -> Generate Java Bean Skeleton, and then follow the couple of dialog boxes afterwards. The webservices.xml document will then be created under the WEB-INF directory.
    I�d be wary of introducing any external web service software into a WebSphere environment. On my last project we ran into a few tricky SOAP API conflicts so we decided to stick with pure IBM implementations wherever possible. That said, this is some sample code that I've recycled from the Monson-Haefel book I've mentioned before:
    package sandbox;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.MessageContext;
    import javax.xml.rpc.handler.soap.SOAPMessageContext;
    import javax.xml.soap.*;
    public class MessageHandlerID extends javax.xml.rpc.handler.GenericHandler{
      QName [] headerNames = null;
      public QName [] getHeaders(){
        if(headerNames == null){
          QName myHeader = new QName("http://speck.net.au/message-id", "message-id");
          headerNames = new QName[] { myHeader };
        return headerNames;
      public boolean handleRequest(MessageContext context){
        String messageID = new java.rmi.dgc.VMID().toString();
        try{
          SOAPMessageContext soapCntxt = (SOAPMessageContext)context;
          SOAPMessage message = soapCntxt.getMessage();
          SOAPHeader header = message.getSOAPPart().getEnvelope().getHeader();
          Name blockName = SOAPFactory.newInstance().createName("message-id","mi","http://speck.net.au/message-id");
          SOAPHeaderElement headerBlock = header.addHeaderElement(blockName);
          headerBlock.setActor("http://speck.net.au/message-id/logger");
          headerBlock.addTextNode( messageID );
          return true;
        } catch(javax.xml.soap.SOAPException se){
              throw new javax.xml.rpc.JAXRPCException(se);
    }It doesn't do much but might give you some ideas.
    You may have already come across this, but I found the following RedBook invaluable:
    Wahli, U., Garcia, G. O., Cocasse, S. and Muetschard, M. (2004). WebSphere Version 5.1 Application Developer 5.1.1 Web Services Handbook. IBM.

  • Send JMS message from Oracle to Weblogic topic.. How?

    Hi,
    I need to send messages from within Oracle Database to a topic in Weblogic. I understand that I can create a trigger that executes
    a Java Stored Procedure. This trigger can be invoked upon row
    addition/update or delete .
    The java stored procedure itself can be be a client program that does a jndi lookup, has code to communicate with the topic on a remote Weblogic server. I can write and test this program independently using Oracle supplied jar files (jndi.jar, jar files that have jms api's etc.) then load it into the database and it should work.
    Am I missing something. Is there any complication with jndi lookup, initial context, etc. The Oracle 9i and Weblogic reside on different servers.
    Has anyone done this? Is there a better way of sending messages?
    Should I bother with messaging gateways?
    Thank You for your reply.
    Samir Sahu

    It should be quite straightforward to do this. As stated you need weblogic.jar in your classpath, then use 100% standard JMS calls to publish.
    Ensure that you set the following properties before getting your initial context:
    java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
    java.naming.provider.url=t3://node:7001 (or whatever)
    this will ensure that the correct JMS implementation classes are invoked.
    You can't easily (without some mucking around) build a test implementation in an AQ environment and then deploy to WebLogic because in AQ you don't tend to use JNDI lookups (unless you've implemented oracle JNDI etc) but rather use non standard factory class to create connections etc.

  • Generating soap message from given WSDL dynamically.

    Hi,
    I want to write code which can generate SOAP request message from given WSDL.
    Any Libraries which is already doing this work so that i can extend them and implement my work on top of it.
    I saw one similar thing called SOAPUI. But it is a desktop application. I want the similar thing as a library so that i can extend it
    Thanks
    mchepuri

    I think that you can use the soapui libraries (a .jar file) and you can generate a soap message for a given wsdl....
    but you cannot know the types of the "parameters" ... the library puts "?" where you have to put a value to send....

  • SOAP messenging from oracle

    hi
    does anyone know whether the XDK for oracle will provide me with all functionality (for xml etc) which is available in 9i?
    the reason I ask is that I need to send/recieve SOAP messages with 8.1.7, and the only documentation / examples I can find only refer to 9i.
    if anyone has achieved this or knows it's possible then I'd appreciate a reply.
    thanks in advance,
    Franz.

    No, as far as i know there is no built in SOAP Support coming with the xdk. And there is no SOAP Support in the core Database 9 i R2. You have to buy the OAS to
    have any soap support.

  • ADDING xml to the SOAP Message from client

    Hi, does anyone know how to add an xml file to the SOAP message passed by the client to the server?
    I need to send an xml file, I have already tried attachments but they dont meet the purpose. I need to send the xml as part of the soap message in AXIS 1_4.
    I read this somewhere about
    SOAPEnvelope env = message.getSOAPEnvelope;
    env.addBodyElement( new RPCElement("SOAPaccess","webservicename", new
              Object[] { }) );
    FileInputStream file = new FileInputStream( "c:\\abcd.xml");
    SOAPBodyElement aBody = new SOAPBodyElement( file );
    file.close();
    env.addBodyElement( aBody );
              However I am not certain how to go about doing this in axis.
    I have been trying to find something related to this, but havent been able to.
    Please let me know if you know how to add xml file to the body of a SOAP message.

    If anyone is interested...I got this working,
    //b is the byte form of the xml document.
    InputStream is = new ByteArrayInputStream(b);
              Document doc =XMLUtils.newDocument(is);
              SOAPElement me = new MessageElement(doc.getDocumentElement());
              SOAPElement a=message.getSOAPBody().addChildElement(me);
              MessageContext mc=_call.getMessageContext();
              mc.setMessage(message);
              mc.getMessage().getSOAPBody().detachNode();
              SOAPBody sb = (SOAPBody)mc.getMessage().getSOAPPart().getEnvelope().addBody();
              sb.addChild(new MessageElement(doc.getDocumentElement()));
              mc.getMessage().saveChanges();
              System.out.println(mc.getMessage().getSOAPPart().getEnvelope());
              SOAPEnvelope env=(SOAPEnvelope)mc.getMessage().getSOAPPart().getEnvelope();

  • Send Synchronous message from Oracle to BPM to CRM in RWB

    Hi All,
    I have a scenario like this Oracle Sender (synchronous interface)-> calling ccBPM -> CRM which is a synchronous process.
    Oracle sends an external message to CRM and get the response back. This is achieved using ccBPM due to some internal calls from ccBPM to MDM also sycnhronously.
    So there are three receive determination created
    Oracle to ccBPM
    ccBPM to MDM
    ccBPM to CRM
    Now, the question is I have some message to be send from RWB for testing whether this process works properly or not in staging system. How do I send the message in RWB for this kind of process. This is a syynchronous process
    And sender should be oracle system, receiver shuld be what? ccBPM or CRM from RWB perspective.
    Hope you all got the question.
    Thanks
    Mike

    Hi,
    How do I send the message in RWB for this kind of process. This is a syynchronous process
    And sender should be oracle system, receiver shuld be what? ccBPM or CRM from RWB perspective.
    You need to mentioned Oracle as sender & receiver would be BPM.
    BTW, why do you put a receiver name, you should only supply Sender parameters (Sender Name, Interface & Namespace), Let PI , determine the receiver which is true testing.
    Regards
    Sushil

  • Capturing error messages from Oracle EBS APIs when using Oracle Apps Adapter

    We are using Oracle applications adapter to call Oracle EBS (both R11.5 and R12) APIs. I want to understand the best practice around error handling when using Oracle Apps Adapter to call Oracle EBS.
    Here are some observations:
    1. Most of the APIs return X_RETURN_STATUS and X_MSG_DATA containing the status and messages if any.
    2. If the MSG COUNT is 1 then X_MSG_DATA contains the message, if MSG COUNT is > 1. X_MSG_DATA is empty.
    We know that when calling the API directly from PL/SQL, we need to loop through FND_MSG_PUB to fetch all messages when there are more than 1. How do we achieve the same using Apps Adapter as Apps Adapter generates the PL/SQL block to call the API dynamically at runtime.
    In some APIs, which have table/rec types as input or output parameters, Apps Adapter generates a wrapper package to do conversion from SQL--> PL/SQL and viceversa. In this case the adapter calls the custom package generated which internally calls the API. For these APIs we were able to put the logic to loop through FND_MSG_PUB and return a concatenated string as value of X_MSG_DATA.
    But what should we do for the APIs which do NOT have a rec/table type as input or output, in which case the Apps Adapter directly calls the API and there is no intermediate custom package?
    How are others handling this?

    Please see the section "Handling Functional Errors" in the below link
    Oracle Fusion Middleware Adapter for Oracle Applications User's Guide

  • Mapping error when trying to test SOAP message from RWB

    Hi all,
    I am very new to XI and I will like to get some advise for testing an asynchronous interface:
    SOAP -> XI -> File
    To test the interface:
    I logged into RWB - Component Monitoring - Adapter Engine - Test Message:
    URL: http://ootspdbs02:50100/XISOAPAdapter/MessageServlet?channel=:BS_RON_TEST:SOAP_Sender_Test
    Service: BS_RON_TEST
    Interface: MI_TestWebServiceServer_UpdatePatAdmissInfo
    Interface Namespace: urn:test:ron:fapl:TestWebServiceServer
    QOS: EO
    Payload (I generated this from XMLSpy with the WSDL generated in Integration Directory):
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns0="urn:OOTSUpdatePatientAdmissionInfoWsd">
         <SOAP-ENV:Body>
              <m:MI_TestWebServiceServer_UpdatePatAdmissInfo xmlns:m="urn:test:ron:fapl:TestWebServiceServer">
              <ns0:Header>
                   <ns0:encoding>String</ns0:encoding>
                   <ns0:sendingApp>String</ns0:sendingApp>
                   <ns0:sendingFac>String</ns0:sendingFac>
                   <ns0:receivingApp>String</ns0:receivingApp>
                   <ns0:receivingFac>String</ns0:receivingFac>
                        <ns0:timeStamp>2001-12-17T09:30:47.0Z</ns0:timeStamp>
                   <ns0:messageType>String</ns0:messageType>
                   <ns0:messageId>String</ns0:messageId>                    <ns0:messageDesc>String</ns0:messageDesc>
                   </ns0:Header>
                   <ns0:patientID>String</ns0:patientID>
                   <ns0:institutionID>String</ns0:institutionID>
                   <ns0:caseNumber>String</ns0:caseNumber>
                   <ns0:admissionDateTime>2001-12-17T09:30:47.0Z</ns0:admissionDateTime>
                   <ns0:ward>String</ns0:ward>
                   <ns0:bed>String</ns0:bed>
                   <ns0:room>String</ns0:room>
              <ns0:movementCategory>String</ns0:movementCategory>
              <ns0:movementType>String</ns0:movementType>
              </m:MI_TestWebServiceServer_UpdatePatAdmissInfo>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The error I got in SXMB_MONI is:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_TestWebServerService_UpdatePatA~</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack><b>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_TestWebServerService_UpdatePatA: RuntimeException in Message-Mapping transformatio</b></SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    <Trace level="1" type="T"><b>com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_TestMsg/CaseNumber. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:303) at .....</b>
    The message mapping consists of direct maps from each field in the source to the target (MT_TestMsg).
    CaseNumber is the first field to be mapped.
    In IR, I tested the interface and it works fine - no error in mapping.
    I assume I cannot use the message generated in IR, because the SOAP envelope is required. (I tried anyway, and encountered the same error.)
    Please advise how I can resolve this error.
    Many thanks in advance.
    Ron

    Hi all,
    I notice the tag and namespaces are changed when I generate the XML from the WSDL.
    I am expecting something this format in IR:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:updatePatientAdmissionInfo xmlns:ns0="urn:OOTSUpdatePatientAdmissionInfoWsd">
       <ns0:Header>
          <ns0:encoding/>
          <ns0:sendingApp/>
          <ns0:sendingFac/>
          <ns0:receivingApp/>
          <ns0:receivingFac/>
          <ns0:timeStamp/>
          <ns0:messageType/>
          <ns0:messageId/>
          <ns0:messageDesc/>
       </ns0:Header>
       <ns0:patientID/>
       <ns0:institutionID/>
       <ns0:caseNumber/>
       <ns0:admissionDateTime/>
       <ns0:ward/>
       <ns0:bed/>
       <ns0:room/>
       <ns0:movementCategory/>
       <ns0:movementType/>
    </ns0:updatePatientAdmissionInfo>
    However, the message generated is :
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" <b>xmlns:ns0="urn:OOTSUpdatePatientAdmissionInfoWsd"></b>
    <SOAP-ENV:Body>
    <b><m:MI_TestWebServiceServer_UpdatePatAdmissInfo  xmlns:m="urn:test:ron:fapl:TestWebServiceServer" ></b>
    <ns0:Header>
    <ns0:encoding>String</ns0:encoding>
    <ns0:sendingApp>String</ns0:sendingApp>
    <ns0:sendingFac>String</ns0:sendingFac>
    <ns0:receivingApp>String</ns0:receivingApp>
    <ns0:receivingFac>String</ns0:receivingFac>
    <ns0:timeStamp>2001-12-17T09:30:47.0Z</ns0:timeStamp>
    <ns0:messageType>String</ns0:messageType>
    <ns0:messageId>String</ns0:messageId> <ns0:messageDesc>String</ns0:messageDesc>
    </ns0:Header>
    <ns0:patientID>String</ns0:patientID>
    <ns0:institutionID>String</ns0:institutionID>
    <ns0:caseNumber>String</ns0:caseNumber>
    <ns0:admissionDateTime>2001-12-17T09:30:47.0Z</ns0:admissionDateTime>
    <ns0:ward>String</ns0:ward>
    <ns0:bed>String</ns0:bed>
    <ns0:room>String</ns0:room>
    <ns0:movementCategory>String</ns0:movementCategory>
    <ns0:movementType>String</ns0:movementType>
    <b></m:MI_TestWebServiceServer_UpdatePatAdmissInfo></b>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The namespace and the root tag is changed!
    I think this might be causing the problem.
    But how do I resolve it?

Maybe you are looking for

  • Unable to delete Transport Request which contain locked objects

    Hi all, I need to delete  some unusable transport requests but as they contain locked objects, it's not possible to delete them. Release operation is just allowed. After releasing these transport requests, I can not find them any more in queue. Pleas

  • ITunes not playing songs from iCloud in Match

    I keep 50% of my music library on an external HD. I subscribed to iTunes Match to be able to access my entire library when my HD isn't available (traveling, HD in sleep mode, etc.). But iTunes won't play any songs that are stored on my external HD wh

  • Java.lang.StackOverflowError while accessing home page

    Why do I get java.lang.StackOverflowError while I try to call the /application url (Home page) after login. Note that before login this url was not giving any problem. Please help me out immediately, as this become crucial for our project. The part o

  • Random Record Selection

    I have a page that I have a recordset on just calling the RecordID in the database. How would I have the page or recordset select a random record and put that recordID in say a session variable? Thanks

  • Windows Operating System

    Hi I have a G4 Powerbook Titanium 15inch screen with MAC OS 10.3.9 operating system. Is it possible to run a Windows Operating System on it, and if so what do I need to purchase? Thanks in advance Julie