Handling SOAP Message in JSP page

Hi ALL,
im using SOAP message to build MM7 message,
i have a soap connection that create a connection to a servlet tp process request,
the response is a soap message with attachment.....
the SOAP is 1.1.
SOAPConnectionFactory connf = SOAPConnectionFactory.newInstance();
SOAPConnection conn = connf.createConnection();
SOAPMessage sMessage= conn.call (soapMessage, "http://190.0.0.16:8988/mmsc/httpReceiver");
sMessage.writeTo(output);
when running the request for a java class it works fine, but when running same class from JSP page, i have error in SOAP response.....
im using jdev1013, the application is working fine with another IDE but with Jdev 1013 i have exception
--------------------Exception---------------------------
06/10/29 12:33:24 javax.xml.soap.SOAPException: Unable to get header stream in saveChanges
06/10/29 12:33:24 at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:576)
06/10/29 12:33:24 at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:622)
06/10/29 12:33:24 at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:686)
06/10/29 12:33:24 at oracle.j2ee.ws.saaj.soap.MessageImpl.writeTo(MessageImpl.java:702)
06/10/29 12:33:24 at com.eska.emmc.relay.vas.MM7Message.sendMessage(MM7Message.java:966)
06/10/29 12:33:24 at com.eska.emmc.util.VASWrapper.retrieveNotifications(VASWrapper.java:383)
06/10/29 12:33:24 at com.eska.emmc.subscriber.tags.ManageMessagesTag.doStartTag(ManageMessagesTag.java:67)
06/10/29 12:33:24 at sub.mmessages._myMessages._jspService(_myMessages.java:70)
06/10/29 12:33:24 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
06/10/29 12:33:24 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)
06/10/29 12:33:24 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
06/10/29 12:33:24 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
06/10/29 12:33:24 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
06/10/29 12:33:24 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
06/10/29 12:33:24 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
06/10/29 12:33:24 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
06/10/29 12:33:24 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
06/10/29 12:33:24 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
06/10/29 12:33:24 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
06/10/29 12:33:24 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
06/10/29 12:33:24 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
06/10/29 12:33:24 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
06/10/29 12:33:24 at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
06/10/29 12:33:24 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
06/10/29 12:33:24 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
06/10/29 12:33:24 at java.lang.Thread.run(Thread.java:595)
Message was edited by:
samer khawaja

Hello,
The easiest way to call a Web Service is to use a Client Library instead of calling the SOAP call yourself.
Can you for your project use a Web Service client stack (JAX-RPC, Axis, XFire, ...) this will create from the WSDL file a set of class and give you a very simple caller class that you can then integrate to your JSP.
I am pointing you to the OracleAS Web Service Documentation section about Web Service proxy.
And some simple how-tos that have specific tasks to create client:
- Web Servics How Tos
So you can see this specific ant target to create a WS proxy:
<oracle:genProxy wsdl="[your URL to a WSDL]"
output="${src.cli.dir}"
packageName="bottomup.client.proxy"
>
<classpath>
<pathelement path="${bld.cli.dir}"/>
<pathelement location="${ORACLE_HOME}/webservices/lib/wsa.jar"/>
</classpath>
</oracle:genProxy>
Regards
Tugdual Grall

Similar Messages

  • Send message from JSP page to Java message driven bean

    Hi all
    I'm using Jdev903.
    I need to send a message from JSP page (Web Application) to Java Message Driven Bean.
    * I created Message Driven Bean that named: MyMessageDrivenEJBBean
    * I have configed jms.xml:
    <topic-connection-factory name="ChatTopicConnectionFactory" location="jms/theTopicConnectionFactory"/>
    <topic name="ChatTopic" location="jms/theTopic"/>
    * In JSP page, my code is:
    final Context ctx = new InitialContext();
    // 1: Lookup ConnectionFactory via JNDI
    TopicConnectionFactory factory =(TopicConnectionFactory)ctx.lookup("jms/theTopicConnectionFactory");
    But trouble occurs is:
    javax.naming.NameNotFoundException: jms/theTopicConnectionFactory not found
    please help me!
    thank a lot.

    Welcome to the Sun forums.
    1. Please post your code using code tags, this formats it so that it is easier for people to read and understand it. Click on 'CODE' above the text area when posting.
    2. As far as possible, please post an SSCCE
    What have learnt about JSPs and servlets till now? Because reading the values submitted in a form is pretty much the base of all operations. I suggest you Google for [servlet tutorials|http://www.google.com/search?q=servlet+tutorial] and [JSP tutorials|http://www.google.com/search?q=jsp+tutorial] and go through them thoroughly. After you understand what is to be done and what options are available to you, if you still face problems, please feel free to post your queries here. But this isn't exactly a site for tutorials, especially since there are so many good ones already out there, that explain all this stuff in detail. There's no point in re-inventing the wheel.
    Hints: [ServletRequest#getParameter()|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)] and [RequestDispatcher#forward|http://java.sun.com/javaee/5/docs/api/javax/servlet/RequestDispatcher.html]

  • 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

  • Warning message on JSP page

    Hi all,
    I have 2 JSP Pages, page 1 contains attachment button for (attachment to be uploaded ) and Done button for navigating to second JSP page. Currently Done button is not wait for the attachment to be uploaded .When user clicks on Done Button if attachment is in processing I need to display warning message like "attachment have not been attached. if you continue, attachment will be lost".with OK Cancel buttons.
    Can anyone please suggest
    Thanks in advance.
    Bhavana

    Please post JSP related queries here...
    JavaServer Pages (JSP) and JSTL
    Thanks
    --Anil
    http://oracleanil.blogspot.com

  • Interrmittant dispaly of error message on JSP Page

    Hi ,
    I am developing an application using JSP and servlets. I ma having a peculiar issue with it.
    I have few links on a JSP page. When a user clicks on the link, its credentials are verified from database and if he is authorised, he will be taken to corresponding link page. Otherwise an error message is dispalyed on the same JSP page.
    When user is not authorised, an exception is thrown from backend to UI passing an error code. This error code is extracted in UI and error description for this error code is read from a properties file.
    From the servlet I use send.redirect() calls to redirect to the url with error code concatenated at the end of the url.
    It is something like this
    try {
    if(validUser)
    //do stuff
    response.sendRedirect("abc/xyzServlet");
    } catch(Exception ex) {
    errid=ex.getErrid();
    response.sendRedirect("abc/MainPageServlet?errid=" + errid);
    }In the MainPageServlet, i read error properties file and display error desc for that error id.
    The problem I am facing is that when an unauthorised user clicks on link repeatedly, he sees the error message intermittently.
    But the error id could be seen on the page url appended.
    Sometimes I also see IllegalStateException in the logs.
    I am using WebSphere server to deploy the application.
    Please help me on this, I have spent much time on this and haven't got a clue. Any pointers will be useful.
    Thank You,
    Priyanshu.
    Edited by: galapagos on Feb 28, 2008 10:43 PM
    Edited by: galapagos on Feb 28, 2008 10:44 PM

    I've tried this and the message still comes up all the time. Have also tried resetting and this doesn't work either. The message appears whether or not it is connected to an accessory (eg speakers). Any further ideas?

  • How customize  messages in jsp pages in jhs 10.1.2.0

    Hi,
    How I can customize the messages in jhs application (10.1.2.0)
    - error message
    - successful transaction message 'JHS-00100: Transaction completed successfully! '
    By example I call stored procedures from my jsp pages , but I dont display can messages...Transaction completed successfully! messages
    note: in error messages how I can customize ORA-20001 messages?
    Thanks,
    Rigoberto

    Rigoberto,
    If you want to globally change the text for the JHS-00100 message, you can include the message key "JHS-00100" in your own resource bundle.
    If you want to hide this message in one particular screen, or replace it with a different message in that screen, you should subclass JhsDataAction and override message storeTransactionCompletedMessage.
    Steven Davelaar,
    JHeadstart Team.

  • Problem catching handle ejb session in jsp pages

    Hello,
    i'm trying to develop an ejb application.
    I have created an ejb session stateful in a second ejb stateless :
    InitialContext ic = new InitialContext();
    UserSessionHome home = (UserSessionHome)ic.lookup("UserSessionHome");
    UserSession conn = home.create(login,mdp);
    Then I have to retrieve this ejb session stateful in a jsp page in order to remove it or to call some others functions developped in the bean interface.
    I think that the solution for this problem are the ejb handles.
    But i don't know how and where I can store them.
    Can you help me?
    Thanx
    Sophie

    You put them in the HttpSession. For "how," read the API docs.

  • How to print our custom message in jsp page

    i have used the below line, but its not displaying in jsp
    addFormException(new DropletException("Out Of Stock"));
    regards
    shya

    1. Make sure that your form handler extends GenericFormHandler (This FH defines formError and formExceptions Vector).
    2. When you add form exceptinos in your FH, set the formError flag as true.
    3. In the jsp, check for the form error flag, if it is set, iterate through the formExceptions vector and display the error message.
    Below is the sample code:
    <dsp:droplet name="/atg/dynamo/droplet/Switch">
         <dsp:param bean="MyFormHandler.formError" name="value"/>
         <dsp:oparam name="true">
         <dsp:droplet name="/atg/dynamo/droplet/ErrorMessageForEach">
         <dsp:param bean="MyFormHandler.formExceptions" name="exceptions"/>
         <dsp:oparam name="output">
         <dsp:valueof param="message" />
    </dsp:oparam>
    </dsp:droplet>
    </dsp:oparam
    </dsp:droplet>
    If it is not working even after the above steps, request you to provide some more details including your display logic in jsp.
    Edited by: Gopinath Ramasamy on Sep 12, 2012 5:06 PM

  • How to handle more records in jsp page

    i have some 1000 records in an collection( arraylist or iterator or any collection object) , for examples query returns records to me with resultset.
    i want to display 50 records each time per page
    how to display them and how to control the flow.
    plz give me any codes if possible...
    thanks all
    Message was edited by:
    BURAK
    Message was edited by:
    BURAK

    sorry I can't understand you, can you please explain it or post here any codes about it?

  • (newbie) How to return error messages to JSP page.

    Hello,
    I'm using a very simple Model 1 architecture (no framework such as Struts used.) The webapp just consists of a login.jsp which collects database connection parameters and then activates a servlet to return a PDF report to the browser.
    I have a very common need: I would like the errors entered by the user on the login.jsp to be displayed at the top of a new return of the login.jsp (with the bottom of the JSP still providing the edit fields for reentry), errors such as:
    1.) User did not enter the username, password, and database name
    2.) Having a wrong username/password for the given database.
    (2) is more complex than (1), because it would involve feedback from the servlet (which makes the DB connection).
    I'm not sure how to code this, however, with just JSP, JSTL and JavaBeans. Does anyone know of an example with source code on the web where something similar to this is done?
    Thanks,
    Glen

    No problem on posting here. Seeing as JSP forum is not accessible, this is the next best choice.
    What sort of complexity are you after here?
    You can go with the very simple:
    Print out the error messages as you discover them.
    if (request.getParameter("username") == null){
      // print out the message
      out.println("Please enter your username");
      // or alternatively
      List errors = new ArrayList();
      errors.add("Please enter your username");
    }The best way to get feedback is to write your login method to return whether login succeeded or not. That can be a boolean true/false value, or you could return a User object to indicate success, and null to indicate failure.
    How much of the code is in servlet, how much in JSP?

  • XMLSignature.validate - can it handle SOAP Message

    hi,
    can we verify a xml file where the xml signature has a certificate with the public key for verification
    import weblogic.webservice.core.soap.XMLSignature;
    FileInputStream fis = new FileInputStream("c:\\my.xml");
    res = XMLSignature.validate(fis);
    ======== this is xml ==========
    <Infringements><Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
    <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMethod>
    <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></SignatureMethod>
    <Reference URI="">
    <Transforms>
    <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></Transform>
    </Transforms>
    <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
    <DigestValue>Ibk/s94reaUTFYU6mwV0isxj6es=</DigestValue>
    </Reference>
    </SignedInfo>
    <SignatureValue>
    GRPQiCi+OSEx/ARw14uK+2GeIQQVDaXsUQWTxqMNp+qt3nGE7G7gkOxAU6k85rMplQ0KCliAJSO+
    U5UJgTHE7ltqe2B+N0d16xNJAQYJqtilpGTmHFT63SvRqJIXJ8nqNxxRLcMOFSDSJ9uQ4svXZm1d
    0LUT39+4x1KD2eL0c6c=
    </SignatureValue>
    <KeyInfo>
    <X509Data>
    <X509Certificate>
    MIIC3zCCApWgAwIBAgIERCsMuTAJBgcqhkjOPQQBMB4xCzAJBgNVBAoTAkNBMQ8wDQYDVQQLEwZy
    b290Y2EwHhcNMDYwNzI1MjMwNDAwWhcNMDkwNzI1MjMzNDAwWjBDMQ8wDQYDVQQKEwZDT1VSVFMx
    EDAOBgNVBAsTB0NFTlRSQUwxDTALBgNVBAsTBFdHVE4xDzANBgNVBAMTBlJFTkRFRTCBoDANBgkq
    hkiG9w0BAQEFAAOBjgAwgYoCgYEAtobxvMc6NXHiyAEGc9F2vybRXG7+W2yEgW3jrPyGX/iY0Q+l
    NZSdUtzwGHMMmOMZQeydQGaGrcv6aWaj/Ropnh93IwurJfyQ8KKnTHV3Psc/2ka1lgJie+Vz53iY
    kRSnYTtWd/Q0p7kp8qu4FW7FBJ/ko8d3I6DvebwpJ9hi6TUCBACUm82jggFTMIIBTzALBgNVHQ8E
    BAMCB4AwKwYDVR0QBCQwIoAPMjAwNjA3MjUyMzA0MDBagQ8yMDA4MDgzMTAzMzQwMFowIgYDVR0R
    BBswGYEXRGVlLlJlbkBqdXN0aWNlLmdvdnQubnowgYgGA1UdHwSBgDB+MDWgM6AxpC8wLTELMAkG
    A1UEChMCQ0ExDzANBgNVBAsTBnJvb3RjYTENMAsGA1UEAxMEQ1JMMTBFoEOgQYY/bGRhcDovLzEw
    LjE3Ni4xLjEvb3U9cm9vdGNhLG89Q0E/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdD9iYXNlMB8G
    A1UdIwQYMBaAFAYzTcM4Vtn7ikDcuLwITTKFYDJJMB0GA1UdDgQWBBR67rXz6zLs4M6HgC/TUr+S
    uFlkxDAJBgNVHRMEAjAAMBkGCSqGSIb2fQdBAAQMMAobBFY3LjEDAgSwMAkGByqGSM49BAEDOQAw
    NgIZAL/CPVyvKJ3XoueG2TzEQj4mDPPOqt25AQIZAL+wwlrjsngEQO2BW4pusMexLkT1E1WQmw==
    </X509Certificate>
    </X509Data>
    <KeyValue>
    <RSAKeyValue>
    <Modulus>
    tobxvMc6NXHiyAEGc9F2vybRXG7+W2yEgW3jrPyGX/iY0Q+lNZSdUtzwGHMMmOMZQeydQGaGrcv6
    aWaj/Ropnh93IwurJfyQ8KKnTHV3Psc/2ka1lgJie+Vz53iYkRSnYTtWd/Q0p7kp8qu4FW7FBJ/k
    o8d3I6DvebwpJ9hi6TU=
    </Modulus>
    <Exponent>lJvN</Exponent>
    </RSAKeyValue>
    </KeyValue>
    </KeyInfo>
    </Signature></Infringements>
    Any help will be appreiciated.
    I tried and it fails with weblogic.webservice.core.soap.XMLSignatureInvalidException: Signature invalid: 0 length SecurityAssersion

    http://blogs.oracle.com/reynolds/2007/05/17
    soap 1.2 uses different headers..so guess thats where the esb gets stuck

  • Trying to parse a Soap Message

    I'm working on creating webservices that will be consumed by
    Director and working with the client programmer, we've come to
    recognize the problem, but we don't know how to resolve it.
    Problem: the XMLParser doesn't follow href parameters in tags
    that refer to subobjects, which result in a #getProp Ref error.
    I have a web service method that will return a list of names
    and it returns the following XML response:
    &lt;?xml version=&quot;1.0&quot;
    encoding=&quot;UTF-8&quot; ?&gt;
    &lt;soapenv:Envelope xmlns:soapenv=&quot;
    http://schemas.xmlsoap.org/soap/envelope/&quot;
    xmlns:xsd=&quot;
    http://www.w3.org/2001/XMLSchema&quot;
    xmlns:xsi=&quot;
    http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    &lt;soapenv:Body&gt;
    &lt;getStudentsResponse soapenv:encodingStyle=&quot;
    http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
    &lt;getStudentsReturn href=&quot;#id0&quot;
    /&gt;
    &lt;/getStudentsResponse&gt;
    &lt;multiRef id=&quot;id0&quot;
    soapenc:root=&quot;0&quot; soapenv:encodingStyle=&quot;
    http://schemas.xmlsoap.org/soap/encoding/&quot;
    soapenc:arrayType=&quot;xsd:anyType[6]&quot;
    xsi:type=&quot;soapenc:Array&quot; xmlns:soapenc=&quot;
    http://schemas.xmlsoap.org/soap/encoding/&quot;&gt;
    &lt;multiRef
    xsi:type=&quot;soapenc:string&quot;&gt;Bob B
    Bobbly&lt;/multiRef&gt;
    &lt;multiRef
    xsi:type=&quot;soapenc:string&quot;&gt;Andy A
    Anderson&lt;/multiRef&gt;
    &lt;multiRef
    xsi:type=&quot;soapenc:string&quot;&gt;Carl C
    Carlson&lt;/multiRef&gt;
    &lt;/multiRef&gt;
    &lt;/soapenv:Body&gt;
    &lt;/soapenv:Envelope&gt;
    When it hits the getStudentsReturn element and tries to refer
    to a child node, and obviously fails.
    The server is Tomcat 5.5, using Axis 1.4 for web services. I
    can post a wsdl if desired.
    The web service is configured for rpc/encoded style.
    What is the way to get out of this particular jam? Neither me
    nor the client programmer have extensive knowledge of how Director
    (or the relevant Xtra) handles SOAP messages or parse them. I've
    stepped through the code and seen the XML parser object render the
    response into an object tree, but it doesn't respect the href's.
    I can provide follow up to any questions or comments about
    this problem.
    Regards,
    Jeff Vandenberg

    Hi Jeff,
    While I don't have much experience with web services, I'm
    about to
    embark on something that involves extensive use of them, so
    your post
    caught my eye.
    If I understand correctly, the href attribute associated with
    the
    getStudentsReturn node is supposed to "automatically" link to
    the
    following multiRef array. Is that correct?
    Assuming it *did* link correctly, how would this manifest
    itself? Is it
    not a matter of you the parser watching for href tags and
    resolving them
    yourself? Why would you not simply provide the multiRef nodes
    as
    children of the getStudentsReturn node? Is there
    documentation somewhere
    for the href attribute and this form of linking?
    Have you tried using the Flash Asset xtra for parsing, and
    does it
    behave "correctly"?

  • Receiving and parsing a SOAP Message

    Hi All.
    I have just installed the JAXM package, cause I want to programm a network message broker using SOAP. The server code is written in C# and I tested it. All messages are send and processed via SOAP and it all works.
    So I now want to try to receive these messages with a JAVA program. But when I looked up the API I didnt find any class or method for only receiving SOAP messages. I guess that I have overlooked the part where this is explained, or I got something wrong. But I would be grateful, if anyonle could tell me if and how this will work.
    Thanx in advance,
    Christian

    Hi
    To get a service to only receive messages you must use a class that implements Onewaylistener, and this class must be supported in a container environment e.g. servlet or J2EE container. It defines one method, public SOAPMessage onMessage(SOAPMessage) which is called by the container when it receives a message. For example say I want to create a servlet that receives SOAP messages for a purchasing application
    public class PurchasingServlet extends JAXMServlet implements
              OnewayListener{
         public SOAPMessage onMessage(SOAPMessage message){}
    The JAXMServlet is a helper servlet to handle SOAP messages but it is not necessary to implement.
    Hope this helps.

  • Accepting a SOAP message that contains fault elements

    Hi,
    I am trying to create a webservice that will accept a valid soap messages that
    contains faults. Actual functionality required is to accept a valid soap message
    with or without faults. For this, I created separate methods in my java class
    (one for normal flow and one that will handle fault elements) that implements
    my web service. I need to manipulate the soap message for both cases. Hence, I
    created separate handlers to do this task. I created two handler chains in my
    web-services.xml one for handling soap messages that contains faults and one for
    handling soap messages that doesn't contain faults. The web services was successfully
    deployed and works fine for soap messages that doesn't contain fault. But, if
    I send a soap message with faults the client (that calls my webservice) is not
    even hitting my web service. It gets a HTTP
    500. Can anybody help me on this ?
    Thanks,
    Ganesh Balachandran

    Hi Ganesh,
    Which version of weblogic server you are using? Can you turn on verbose in
    client side? You can give a "-Dweblogic.webservice.verbose=true" to client
    side JVM. We need to see what your soap message with fault looks like.
    Thanks,
    -Neal
    "Ganesh" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I am trying to create a webservice that will accept a valid soap messagesthat
    contains faults. Actual functionality required is to accept a valid soapmessage
    with or without faults. For this, I created separate methods in my javaclass
    (one for normal flow and one that will handle fault elements) thatimplements
    my web service. I need to manipulate the soap message for both cases.Hence, I
    created separate handlers to do this task. I created two handler chains inmy
    web-services.xml one for handling soap messages that contains faults andone for
    handling soap messages that doesn't contain faults. The web services wassuccessfully
    deployed and works fine for soap messages that doesn't contain fault. But,if
    I send a soap message with faults the client (that calls my webservice) isnot
    even hitting my web service. It gets a HTTP
    500. Can anybody help me on this ?
    Thanks,
    Ganesh Balachandran

  • Outputting SOAP Message to Browser In JSP

    I am using SAAJ to create a soap message and sending it to a web service. It will then receive a response int eh form of a SOAP message (XML). I would like to be able to output this message to the browser window. I am able to output to the System.out using the SAAJ writeTo() method, but cannot seemt o find a way to output this to the window from a JSP page. Any suggestions?
    Thanks!

    Why not justwriteTo(response)?

Maybe you are looking for