Transform call returns the xslt??

I have a strange problem. After executing a transform, my result is the original template and not the transformed output. I tested the xslt using Altova and it worked fine. When I try making the transform in my java code, I get the problem.
My code is fairly simple...
TransformerFactory tf = TransformerFactory.newInstance();
Templates tmps = tf.newTemplates(auditTemplate); //auditTemple is DOMSource containing the xslt
ByteArrayOutputStream baos = new ByteArrayOutputStream();
StreamResult sr = new StreamResult(baos);
DOMSource src = new DOMSource(resultNode); //result node is my XML Document
Transformer trans = tmps.newTransformer();
trans.transform(src, sr);
return baos.toByteArray(); //this returns the original xslt???Has anyone seen a problem like this? It must be something dumb.

I ran into this problem myself and it took me a while to figure it out:
You need to read the xslt xml with a documentBuilderFactory that is namespace aware;
if not, it will still read the xslt file but without namespaces. When using such
an xslt for transformations, it will no longer act as an xsl transformation, but instead result
in an echo of itself (why it does not throw an error instead I don't know).
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
-> documentBuilderFactory.setNamespaceAware(true);
DocumentBuilder parser = documentBuilderFactory.newDocumentBuilder();
Document documentWithNamespaces = parser.parse(uri);
The xml file you want to transform can usually still be read by a non-namespace-aware parser, if
it does not depend on namespaces like xslt does.

Similar Messages

  • Resolving url after document() function has been called by the xslt

    I am having problems resolving a URI when document() function in my xslt is called. The xml document that is being called has a reference to a dtd that is in another location of the webserver. When document() is called it downloads the xml document then tries to download the referenced dtd from the same location. I get an error kinda like this.
    file:///C:/dev.xsl; Line 15; Column 62; Can not load requested doc: File "http://dev.server.com/templatedata/lhj/story/data/dcr4.5.dtd" not found.
    The DTD is in a different location on the server and that is why it can not find it. I have tried resolving the URL but have been unsucessfull. See my java solution that does not work. How can I fix this? Any assistance will be greatly appreciated
    Java solution
    try {
    TransformerFactory tFactory = TransformerFactory.newInstance();
    tFactory.setURIResolver(new XMLURIResolver());
    Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile));
    File f = new File(xmlFile);
    FileReader fr = new FileReader(f);
    InputSource inputSource = new InputSource(fr);
    transformer.transform(new SAXSource(inputSource),
    new StreamResult(new FileOutputStream(outPutPath)));
    Vince.

    here is the resolver. The if in never excuted.
    public class XMLURIResolver implements URIResolver{
    public static final String DTD_HREF = "dcr4.5.dtd";
    public Source resolve(String s, String s1) throws TransformerException{
    System.out.println("s = "+ s);
    System.out.println("s1 = " + s1);
    InputStreamReader isr = null;
    try{
    if (s.indexOf(DTD_HREF) != -1){
    System.out.println("Fetching DTD....");
    URL url = new URL("http://mydomain/xml/validation/dcr4.5.dtd");
    isr= new InputStreamReader(url.openStream());
    return new SAXSource(new InputSource(isr));
    }catch(MalformedURLException mue){
    System.out.println(mue);
    }catch(IOException ioe){
    System.out.println(ioe);
    return null;
    }

  • Problem with x:transform function : translation with XSLT

    I've got a problem with this code :
    This is the XML file :
    <%@taglib prefix="x" uri="http://java.sun.com/jstl/xml"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <c:import var="xslDoc" url="test.xsl"/>
    <x:transform  xslt ="${xslDoc}">
      <students>
      <student id="1">
       <name>
         <first>John</first>
         <last>Smith</last>
         <middle>T</middle>
       </name>
       <grade>
         <points>72</points>
         <letter>C</letter>
       </grade>
      </student>
    </students>
    </x:transform>This is the XSLT :
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="students">
      <html>
      <head>
      <title>XSLT Transform</title>
      </head>
      <body>
       <table border="1">
       <tr><th>First</th><th>Last</th>
    <th>Points</th><th>Letter</th></tr> 
       <xsl:apply-templates/>
       </table>
       </body>
      </html>
    </xsl:template>
    <xsl:template match="student">
      <tr>
       <td><xsl:value-of select="name/first"/></td>
       <td><xsl:value-of select="name/last"/></td>
       <td><xsl:value-of select="grade/points"/></td>
       <td><xsl:value-of select="grade/letter"/></td>
      </tr>
    </xsl:template>
    </xsl:stylesheet>I use NetBeans 3.5.1 for compiling and testing, and on my machine all works fine.
    But when i upload the code on the server i''ve this type of error :
    HTTP Status 500 - Internal Server Error
    exception
    org.apache.jasper.JasperException: access denied (java.util.PropertyPermission org.xml.sax.driver read)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
         at java.lang.Thread.run(Thread.java:536)
    root cause
    java.security.AccessControlException: access denied (java.util.PropertyPermission org.xml.sax.driver read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
         at java.security.AccessController.checkPermission(AccessController.java:401)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
         at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291)
         at java.lang.System.getProperty(System.java:572)
         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:81)
         at org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource(TransformSupport.java:280)
         at org.apache.taglibs.standard.tag.common.xml.TransformSupport.getSource(TransformSupport.java:276)
         at org.apache.taglibs.standard.tag.common.xml.TransformSupport.doStartTag(TransformSupport.java:159)
         at org.apache.taglibs.standard.tag.el.xml.TransformTag.doStartTag(TransformTag.java:104)
         at org.apache.jsp.test_jsp._jspService(test_jsp.java:78)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
         at java.lang.Thread.run(Thread.java:536)
    org.apache.jasper.JasperException: access denied (java.util.PropertyPermission org.xml.sax.driver read)It seems a permission problem, but my experience with JSP is very poor , i've asked to control to my host
    the policy of the folders but they didn't respond me yet.
    Any suggestion ?
    Thx for reading, and sorry for my rusty english :-P

    Thanks.
    I've already tried to insert the whole path. You mean this,right ?
    <c:import var="xslDoc" url="http://www.domain.net/examples/test.xsl"/>I've searched a lot with google but i haven't find anything.
    I've not searched a lot into the jakarta site, I'll do tomorrow, now it's
    a bit late (1:45 AM in Italy :-0 ), so i think that i'll go to sleep.
    Thanks for responding so soon!
    I'll wait for your new infos.
    Thanks again.
    read you tomorrow.

  • Verizon sent out an order I called to cancel, I returned the phones as they told me to, yet after months of calls, I am in the pre-collections stage

    So this journey started back in October. I was with sprint, and wanted out of their service, my contract was up, so I went with Verizon as they are the best in my area for service. My original order was for 2 iPhone 6's and an iPhone 5s. Upon finding out that I would only receive a $200 credit for my old iPhones if I bought only iPhone 6's, I called to cancel that order. Due to the fact the iPhone 6's were backordered they could not cancel my order, but they stated they would make notation on my account so that the order wouldn't ship. So, I then placed a new order for three iPhone 6's to qualify for the promotion. The beginning of November I received three boxes, and too my surprise, it was the first (original) order containing two iPhone 6's and an iPhone 5s. I called Verizon, and they said just send them back, don't open them. I was told there were return labels in the boxes, and there were not. So I then called the local Verizon store to see if I could return them there, they said, no it was an online order, so you have to send them back in. I then went to the website to print return labels, but both links where this was supposedly possible, the links did not work, dead links. At this point I called Verizon back who made a call on my behalf to the Verizon Store to return the phones there. I drove to the store, and when I got there, they suggested I just return the iPhone 5, as they had a 6 in stock, activate these phones, and cancel the second order, so I did. I then called and cancelled the second order, with the same issue, phones were backordered, so notation would be made to the account. Low and behold, 2 weeks later, 3 new iPhone 6's showed up at my door. So I went through the process again, calling customer service, canceling the service and having Verizon send me return labels for the phones. Five days later the return labels showed up, and I immediately returned the phones. I was told as soon as the phones were scanned by Fedex that a $635.97 refund would be issued to my card ( thats right two charges totaling almost $1300). Well that was not the case, It took a few weeks, but the refund was finally issued. Here's were the bigger problems begin, I received my first bill for those lines of service. I called Verizon as I thought this was odd, as the phones had never been out of the box or activated. So, phone call after phone call, Customer Service Rep after Customer Service Rep, I was told that the lines are now cancelled and you will be credited. Well a month goes by, and we are at the end of November, and I get a bill for over $500 dollars. I then call customer service again, tell them my story, stay on the line with patience waiting for the answer, and I am told again things are resolved. November 30th roles around, and I get another bill stating that my lines are disconnected due to non-payment. I call, and spend 52 minutes on the phone with a Customer Service Rep who tells me that everything is all set, he gives me the totals that are to be credited to my account, and I assume everything is well, as I receive no more letters or bills. Well flash forward to January 20, 2015, and I receive a call from an odd number, which turns out is a collection agency for Verizon, as my account is in pre-collections. Can you imagine my frustration, to be honest I am quite upset, so I again call customer service and get pushed to an account specialist. I relay my story, for and I am not joking, the 12th time, at which point I am informed that he cannot help me as the account is closed, and I will have to wait until 7am tomorrow morning to call back and speak with another account specialist. I am so frustrated with this entire situation, keep in mind I still have three active lines with Verizon that have been paid early every month since October. My real question is how many more times am I going to have to call to get this resolved? I have tried more than a dozen times to get this issue fixed, and here I am three months later still fighting this, it is just plain ridiculous and terrible business. How can you charge a customer for phones that he doesn't even have, thats right, I was issued a $635.97 refund on 11/13/2014, so how can I be charged for phones that were returned, and never taken out of the box. Also, how are they magically activated when they are still sealed in their original boxes. Needless to say I will continue to fight this issue, but rest assured, if this issue is not resolved tomorrow morning, I will be seeking legal counsel to fight these charges, as I do not want Verizon's poor customer service to harm my credit score that I have worked so hard to build to what it is now.
    Where is the help Verizon, because as of now, it is non existent.

        Thanks for the additional information AudiophileBen! Time is of the essence when it comes to special promotions. When did you process this purchase? If the promotion was not available when you purchased, then you are not eligible for it. I recommend visiting the store with your receipts showing your $100 discount if you purchased after the promotion started.
    AntonioC_VZW Follow us on Twitter at www.twitter.com/VZWSupport

  • Expression must return the interface type in Transformation Step in BPM

    hi,
    We are getting below while activating the IP,
    Expression must return the interface type SI_Send_AA
    Expression must return the interface type SI_Get_AA
    No semantic errors found
    We have a Transformation Step in BPM,
    In OM, Source is SI_Send_AA and Target is SI_Get_AA
    Also Container variable points to  the same Abstract SI's.
    Few Thread's for Same are error are:
    Error in  BPM
    expression must return the interface type
    Transformation step in ccBPM scenario
    Error while compiling Business Process
    Even after checking these i am getting this Exception.
    Please Help!
    Thanks,
    Mayank

    Also Container variable points to the same Abstract SI's
    Are you sure that you are using Abstract Message Interfaces only and that these are referring to relevant container variables.
    Normally it happens that there is some mis-match between the message types/ interfaces that we use in the mapping and that we use in the BPM.
    If still not solved, then delete the Transformation step --> save --> activate......then again Edit the BPM to include the Transformation Step.
    Regards,
    Abhishek.

  • Return the User to the Calling Page - doesn't work

    Hello All,
    I set up the "Issue tracker" tutorial to get in tuch with the apex (htmldb vers. 2.0)
    All is working well but: Return the User to the Calling Page -> doesn't work. I performed all steps as descriped in the tutorial (iclusive the '.' on the &P7_PREV_PAGE ;-) ).
    I use my own aplication at home and followed all the instruction steps few times but it does not work. Can you help me please?
    Do I have to install something more?
    In the Branch section: * 1: Go To Page &P7_PREV_PAGE. (Unconditional)
    In the Item section: 90: P7_PREV_PAGE Hidden
    In the Button section for cancel Button: &P7_PREV_PAGE.
    Here is the description of the function in the tutorial:
    Because this Create/Edit page will be called from several places, when users finish with the display they should return to the calling page. To accomplish this, you create an item and change the branch on this page. Every time this page is called, the item must be set with the number of the calling page.
    To create a hidden item:
    1. Under Items, click the Create icon.
    2. For Select Item Type, select Hidden and click Next.
    3. For Display Position and Name:
    1. For Item Name, enter:
    P7_PREV_PAGE
    2. For Region, select Issue Identification.
    3. Click Next.
    4.
    Click Create Item.
    Next, edit the Cancel button.
    5. Under Buttons, select Cancel.
    6. Scroll down to Optional URL Redirect.
    7. In Page, enter:
    &P7_PREV_PAGE.
    Note the period at the end.
    8. Click Apply Changes.
    Next, edit the branch.
    9. Under Action, enter the following in Page:
    &P7_PREV_PAGE.
    10. Click Apply Changes.
    All steps are done but I still got the message: Error ERR-1016 Application "106" Page "0" not found (requested language="de")
    OK
    I move the mousepointer over the cancel button: javascript:redirect('f?p=106:0:5265993428922076876::NO:::')
    Thank you for helping me!
    best regards Thorsten

    All,
    I haven't looked at that tutorial for quite a while but just gave it a quick look.
    Further down in the tutorial, it directs you to set the value of P7_PREV_PAGE, under Add Functionality to Support Adding Multiple Issues Sequentially - have you done that? There is also a mention that there is more branching to be done - "The branch you just created is looking for a value in P7_PREV_PAGE. Since the page was not called from another page, the value has not been set. You need to fix that next." It goes on to have you define that value from other places.
    Can you describe what you are doing when you get the error? There could be something missing from the tutorial. A way around it would be to create a default value for P7_PREV_PAGE so that if it is not set, a default page will be used.
    -- Sharon

  • TS2795 When I set CALL FWDING  "ON" and I set the phone number and I back to CALL FWDING, the option returns to "OFF" status, why this is happening ?

    Hello,
    Can someone help me to activate the Call Forwarding option on IPhone 5, OS 6.01 ??
    Currently I am trying:
    * Settings -> Phone -> Call Forwarding -> "ON" -> SET THE PHONE NUMBER ->"Call Forwarding button"
    But when the screen returns to Call forwarding, the option returns to "OFF" mode.
    * I already try to call to *72 to "activate" the call forwarding option, just didn't work.
    I don't know if I need to do an additional configuration, If someone has an idea, please let me know!!
    Regards
    Cami

    Who is your carrier? Not all carriers support enabling and disabling call forwarding using the controls in Settings.

  • SOAP TO JDBC scenario: calling stored procedure which will return the value

    Hi
    I have Soap To Jdbc scenario in which I am going to call the Stored Procedure at target side which will be executed and it is going to return the result set .
    Result contains following values.
    return code as ( 0 Or 1) and also specific exception message if its return code as 1.
    Could you suggest me the way by which I can handled this return code and send it back to the Sap PI system then the same thing is directed the to SMTP server for sending mail to consern person.
    Regards
    Kumar

    The OUT parameters of stored procedure will be returned as response. Where exactly are you facing the proble? Here is a complete walkthourgh
    /people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
    In your case, you don't want response at sender. Instead you want to mail it. For this you may use BPM to design your scenario with following steps
    Receive (to receive data from sender)
    Send Sync (to stored procedure and get response)
    Send Async (to mail receiver)
    Regards,
    Prateek

  • Configuring the XSLT transformation service

    I need to use XSL-T 2.0 in a service. The documentation for XSLT Transformation says that an alternate service provider can be used. It says I need to supply a string value that represents the fully qualified name of the Java class to use for performing the XSLT transformation, such as org.apache.xalan.xslt.XSLTProcessor. The Java class used must extend javax.xml.transform.TransformerFactory and must be available to the class loader of the LiveCycle ES server.
    The Saxon XSL-T engine supports the required interface, but I have not been able to install it successfully. In theory, it is a component that can be installed from the Components panel, but when I try that I receive the message "An error occurred. Please check the Eclipse error log for details". I have not been able to locate the error log.
    Any assistance greatly appreciated.
    --RKW

    Thanks for the assistance. That turns out to be the right advice. If you want to use the Saxon processor, you need to put the following jars in the server\all\lib folder:
    saxon8.jar
    saxon8-dom.jar
    --RKW

  • Is the XSLT format-number function supported by XMLType.transform()

    I am trying to use the XSLT format-number function in a stylesheet via myXMLType.transform(myXSL) without any luck. For example, <xsl:value-of select="format-number($myNum,'#,###.00')/>. This works ok under the java based XSLT engine.
    Is format-number supported by XML DB?
    I am running 9.2.0.5.
    Cheers
    Anthony

    I have upgraded to 10g and found that this now works.
    Cheers
    Anthony

  • Iphone message 'return to call' at the top of the screen won't go away

    I was on the phone when I received a text message and the iphone had the green strip at the top that said 'touch to return to call' so I touched it and it returned to the call but now the green strip with the message won't go away. Any suggestions? Do I have to go on itunes and return the iphone to factory settings? Will I lose all of my data if I do? Any help would be greatly appreciated!

    Basics from the manual are:
    Restart.
    Reset.
    Restore.
    Have you tried these?
    http://support.apple.com/manuals/iphone/

  • Creating class and returning the dataset when the proxy function is called

    Hello all,
    I am able to set the connection and call the function from .net. My requirement is all follow,
    I want to create a class in .net which will call this function and will return a dataset.
    That means when that class is called with the required parameter it should return a dataset.
    Can anyone can give the code or the steps how can i achieve it?

    You can either have an instance variable SoSession, if your seConnect() method is in the same class as the saveInterest() method, or pass in the SoSession object to the saveInterest() method.
    public class Sample{
        private SoSession session;
        public SoSession seConnect()
                SOApplication app = new SOApplication();
                SoSession se = SoSession.Authenticate(app.Database.Username, app.Database.Username);
                return se;
    public void saveInterest2()
                if (se != null) //Here i want to check on the returned se, but this is probably the wrong way ??, because it fails
                    System.out.println("Yeah' im still inn");
                else
                    System.out.println("Doo' im not  inn");
    } this way, the class calling the methods would do this:
    public class Test {
    public static void main(String [] args)
        Sample s = new Sample();
       s.seConnect();
       s.saveInterest();
    }~Tim
    Message was edited by:
    SomeoneElse

  • How to return the XMLDOM Document to the caller of a URL?

    Hi,
    We are using Oracle9.2 and have created applications and reports written in PL/SQL + Oracle Web Toolkit. A PL/SQL Package now generates an XML document using XMLDOM, and is invoked by calling an URL. The customer is looking for ways to create a kind if Web Service out of this Package, without using OC4J / JDeveloper to deploy it - they simply don't want to go there, yet.
    The question then is: How can they simulate a Web Service by returning the content of the XMLDOM document in the URL? Creating an XML file on disk or putting the XMLDOM document into a CLOB works fine. But how can they most easily return the XMLDOM document to the caller simply by using the URL itself?
    Please ask for clarifications if needed. Any good suggestions are highly appreciated. Thanks, Eilev.

    Hi, I can answer my own question as it turns out the answer was just as simple as I was hoping for:
    By printing the content of the XMLDOM document using HTP.PRINT it can easily be picked up and parsed by the caller.
    Have a wonderful day :-)

  • P_session.get_value call does not return the value

    I have a form on a table.
    After the doInsert call in the pl/sql event handler section of the insert button, I have the sql statement
    "insert into temp
    values(56,p_session.get_value_as_varchar2('DEFAULT','A_FIRST_NAME'));"
    However, the value the call p_session.get_value_as_varchar2('DEFAULT','A_FIRST_NAME') returns is always null.
    Any comments?
    Thanks in advance.
    null

    When I user get_value_as_varchar2
    function then i get following error
    Anybody knows about solving a problem
    code works fine for number data.
    if i try to access varchar2 column then i get error.
    An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)
    An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)
    (WWV-00000)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.8723279877 (WWC-51000)
    (WWC-00000)
    anybody knows please give reply its urgent..
    thanks in advance
    Yogesh
    null

  • I NEED HELP!! Been calling since the end of Nov and being charged for a Warranty device. The device was returned the next day!! Been calling twice a week.. NEED RESOLUTION

    I NEED HELP!! Been calling since the end of Nov and being charged for a Warranty device. The device was returned the next day!! Been calling twice a week.. I NEED HELP 6 TCC TICKETS HAVE BEEN OPENED - PROMISED CALLS BACK AND NEVER GET CALLS.
    About to cancel my account and move to AT&T
    TCC TICKETS:  (removed)
    I am trying here for the last resort. After this evening my account along with my business account will be cancelled. Total lines that Verizon will have lost will be 93 lines.
    PLEASE SOMEONE JUST HELP ME!!!!
    I already tweeted and facebook messaged Verizon. Your CS group has gone down hill over the last 3-6 months. I use to enjoy being a customer.
    >> Edited to comply with the Verizon Wireless Terms of Service <<

    not all the lines have ETF's. I have 30 tablets and the rest phones. The phones have ETFs and the tablets are all month to month.
    The total to move my account over is going to come out to about $8500.
    Rep has been trying to get my business for years.  I was always loyal to Verizon until this happened.

Maybe you are looking for

  • How to use one structure in different reports

    Hi All, We have created two reports on the same multi provider. Created one structure with more than 50 key figures and used the option save as, provided technical name for that structure. I want to use the same structure in second report too.But whe

  • Linking/Joining Pages

    How do i link two pages togerther in Java. 've written a GUI page which allows a manager to login to his account, but when i press login, nothing happens. I want it to send the manager to an options GUI. Can anyone help?

  • What does the "other" part in my mac air storage meter mean?

    What does the "other" part in my mac air storage meter mean?

  • Leopard on a DP G5... all is well

    Hello all, I thought I'd post up my positive experience of installing 10.5 on my Mac. I hope it will make a change to some of the bad experiences some folks have had. Okay, my machine: Powermac G5, dual 2.5Ghz, 2Gb Ram, 2 x 150 Gb internal Drives I s

  • What is Volume controller ?

    Can anybody tell me what the new volume controller function is and how I can access/use it? Thanks