Develope complex WebService with JDeveloper and deploy to tomcat

Hello,
I am thinking of developing a complex WebService with JDeveloper and deploy it to tomcat.
The WebService should retrieve a few "normal" datatypes and a pdf and a few images. I try to store the pdf and the image in an Oracle DB as BLOB.
My idea ist to create a Package which selects the values, pdf and the image and retrieve them as the output paramter.
Then I want to create a WebService with the JDeveloper which calls this Package. This WebService should be published on a Tomcat.
My first question is if that is possible?
I think there are few problems.
I searched the forum about deploying a JDeveloper WebService to Tomcat, but I can not find a whole solution which is going to work. I read something about JAX-RPC, but I am new to this topic. So it would be very nice, if anyone could tell me where I can find the solution or post a quick guide to solve that.
Another question is how I have to decode the images and the pdf to provide those files in a WebService?
I would be very glad if anyone can help me or tell me where I can find information about that, becaus I am new to this topic!
Thank you,
Tim

Hi,
does anybody have an idea about that?
Thanks,
Tim

Similar Messages

  • Webservices with Jdeveloper and Omni Porlet

    I am trying to make a portlet that can read xml from a webservice
    I first pull the webservice from the server....
    <env:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <ns0:getPreviousChargesDataStringResponse xmlns:ns0="http://assessment/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    &lt;rowset&gt;&lt;row&gt;&lt;Assessment_Group&gt; etc...
    </return>
    </ns0:getPreviousChargesDataStringResponse>
    </env:Body>
    then I use the xsl to make it in the <rowset><row> form.
    My xsl translation looks like this...
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <xsl:value-of select="." />
    </xsl:template>
    </xsl:stylesheet>
    my problem is my output comes out something like this
    &lt;rowset>
    &lt;row>
    &lt;Assessment_Group>A &lt;/Assessment_Group>
    The omni port wizard doesnt understand what the &lt means.
    How can I fix this?

    I have still not figured this one out. Any help please?
    Regards,
    Nithya

  • Developing Portable WebServices using Jdeveloper

    I am currently using Jdeveloper 10.1.3.2 and I have developed WebServices from my existing WSDL files and deployed the WebServices in OC4J. Everything is working fine now. I noticed that Jdeveloper has created some OC4J specific files like oracle-webservice.xml. Now I want this working WebService Application to be deployed to another Application Server. I am sure it would fail.
    My Question is,
    1) How can I devlop Web Services using Jdeveloper which can be deployed in any App Server?
    2) Will Jdev 11g with JAX-WS will be helpful?
    3) Is there any tutorial for developing portable webservices which can be deployed across any App Server.

    Hi Frank
    Thanks for your response.
    So If I remove my oracle-webservices.xml and deploy my Project, Will it work in any App Server.
    Also where can I put the contents in oracle-webservices.xml file like
    <oracle-webservices xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/oracle-webservices-10_0.xsd">
    <webservice-description name="''''''''">
    <port-component name="''''''''">
    <operations>
    </operations>
    </port-component>
    </port-component>
    </webservice-description>
    </oracle-webservices>
    Thanks

  • Developing Large Projects with JDeveloper

    i have 2 questins :
    1 - i don't know is it possible to develop large project such as a total system
    with about 20 subsystems and 1000 forms and reports with jdeveloper?
    2 - we have planed to build a webapp for each subsystem that it contains MODEL and VIEWCONTROLLER project.with this idea we cann't link from one VIEWCONTROLLER to anather in anather project, for example user can not go to another page from anather project without logon again.
    now my very immportant problem is comunication between pages in different projectsand maintain different objects such as USER object between pages.
    do you think that building such project with only one application with one MODEL and one VIEWCONTROLLER is correct or building it in differt project is better?
    could you please tell me that what is your idea to develop large project with jdeveloper?

    dear jan,
    I want my users to authenticate once, and have access to the subsystems they are authorized for.
    but there is a problem in development and that is with this type of large projects you will have in Model Proj. a lot of AM , EO , VO and in View Proj. a lot of JSPX and XML file. and if i make only one App with one Project for Model and One Project for View, during development for example i want work on one subsystem and others on other susystem. and when i change 1 jspx file i should deploy TOTAL SYSTEM with 20 subsystems completely and i think this is'nt strategy for development.
    i think it's good to develop any subsystem in one app with Model and View and finally deploy any subsystem separately.
    thanks for your reply

  • How to develop java webservice in jDeveloper

    Hi,
    iam new to web services. iwant to develop the webservice in jDeveloper. i am also new to jDeveloper. ?
    can you please give me the steps to develop the webservices?
    and also give me the suggestion which tool i can use?
    if any body having the sample application please forward to [email protected]?
    regards
    ram

    Hi frank,
    thanks for your reply. i got it. but when i am testing this webservice its not calling properly.when i am calling the url,, its displaying as page cant be displayed. i had started the server as well..... what is the problem..
    this is the url what i got from the wsdl file...
    http://10.113.11.156:8888/WebApp-MyPro-context-root/HelloWSSoapHttpPort
    regards
    ram

  • HELP: include another page in with JDeveloper and ADF

    Hi all,
    I am trying to make a layout page with JDeveloper and ADF. But I just can't make things work. I have the pre-coded header and footer html pages and want to include them in a jspx somehow. I tried panelPage too, but the rendering style is away from our pre-coded header and footer.
    1. Use jsp:include.
    header works fine but footer is rendered before the page content, even if the footer is placed after the page content. Is there a way to customize the position?
    <f:facet name="footerFacet">
    <f:subview id="footerView"
    binding="#{backing_welcomePage.footerView}">
    <jsp:include page="/footer.jspf"/>
    </f:subview>
    </f:facet>
    2. Use frameBorderLayout.
    I followed the doc and use the document tag. But the frame page is rendered but none of included pages are rendered. So I got a blank page.
    <!-- frame page -->
    <f:view>
    <afh:html>
    <afh:head title="my frame page">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <afh:frameBorderLayout height="100%" width="100%">
    <f:facet name="center">
    <afh:frame source="topPage.jspx" name="topPage3"/>
    </f:facet>
    <f:facet name="top">
    <afh:frame source="topPage.jspx" height="200" name="topPage2"/>
    </f:facet>
    <f:facet name="bottom">
    <afh:frame source="topPage.jspx" height="200" name="topPage1"/>
    </f:facet>
    </afh:frameBorderLayout>
    </afh:body>
    </afh:html>
    </f:view>
    <!-- top page -->
    <f:view>
    <af:document title="FrameBorderLayout Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <f:facet name="separator">
    <af:objectSeparator />
    </f:facet>
    <af:outputFormatted styleUsage="instruction" value="&lt;b>A frameBorderLayout&lt;/b>"/>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>

    for #1 have you tried throwing a verbatim tag around your includes like:
    <f:verbatim>
    <jsp:directive.include file="/includes/footer.jsp"/>
    </f:verbatim>
    it's how we got around intermixing html and jsf

  • Need complex query  with joins and AGGREGATE  functions.

    Hello Everyone ;
    Good Morning to all ;
    I have 3 tables with 2 lakhs record. I need to check query performance.. How CBO rewrites my query in materialized view ?
    I want to make complex join with AGGREGATE FUNCTION.
    my table details
    SQL> select from tab;*
    TNAME TABTYPE CLUSTERID
    DEPT TABLE
    PAYROLL TABLE
    EMP TABLE
    SQL> desc emp
    Name
    EID
    ENAME
    EDOB
    EGENDER
    EQUAL
    EGRADUATION
    EDESIGNATION
    ELEVEL
    EDOMAIN_ID
    EMOB_NO
    SQL> desc dept
    Name
    EID
    DNAME
    DMANAGER
    DCONTACT_NO
    DPROJ_NAME
    SQL> desc payroll
    Name
    EID
    PF_NO
    SAL_ACC_NO
    SALARY
    BONUS
    I want to make  complex query  with joins and AGGREGATE  functions.
    Dept names are : IT , ITES , Accounts , Mgmt , Hr
    GRADUATIONS are : Engineering , Arts , Accounts , business_applications
    I want to select records who are working in IT and ITES and graduation should be "Engineering"
    salary > 20000 and < = 22800 and bonus > 1000 and <= 1999 with count for males and females Separately ;
    Please help me to make a such complex query with joins ..
    Thanks in advance ..
    Edited by: 969352 on May 25, 2013 11:34 AM

    969352 wrote:
    why do you avoid providing requested & NEEDED details?I do NOT understand what do you expect ?
    My Goal is :
    1. When executing my own query i need to check expalin plan.please proceed to do so
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_9010.htm#SQLRF01601
    2. IF i enable query rewrite option .. i want to check explain plan ( how optimizer rewrites my query ) ? please proceed to do so
    http://docs.oracle.com/cd/E11882_01/server.112/e16638/ex_plan.htm#PFGRF009
    3. My only aim is QUERY PERFORMANCE with QUERY REWRITE clause in materialized view.It is an admirable goal.
    Best Wishes on your quest for performance improvements.

  • Timesten with JDeveloper and ADF

    Hello,
    I'm using Timesten with Jdeveloper and ADF and have noticed some problems which I allready posted in the JDevloper Forum:
    Re: ADF TimesTen
    These problems arise from using Identifiers with reserved words, which is not forbidden with Ora DB.
    The settings in Jdev are to generate SQL92 conform code. This is the only way it works.
    I'm wondering if there is a setting to make TT behave syntactical 1:1 like a Ora DB.
    I even tried to change the Type Mode to Oracle and restarting TT but this doesn't help eighter.
    Maybe someone of the TT pro's has a solution for this? TT is used as a cache in front of an Ora DB so it should understand the Ora Syntax ??
    Thanks
    Ognian

    for #1 have you tried throwing a verbatim tag around your includes like:
    <f:verbatim>
    <jsp:directive.include file="/includes/footer.jsp"/>
    </f:verbatim>
    it's how we got around intermixing html and jsf

  • How to pre-compile jsp and deploy to tomcat

    Hi All,
    I wuld like to know how to pre-compile JSPs and deploy to tomcat. I am using ANT tool to build and deploy the war file.
    Thanks in Advance.
    Regards,
    --Nagesh.                                                                                                                                                                                                                                                                                                                                               

    for Tomcat 5.0 (You'll need to edit to fit your needs)
        <path id="jsp.classpath">       
            <!-- point classpath to directory containing jasper-compiler.jar and
                   jasper-runtime.jar -->
            <fileset dir="C:\tomcat\common\lib">
                <include name="**/*.jar"/>
            </fileset>
            <fileset dir="C:/tomcat/common/endorsed">
                <include name="**/*.jar"/>
            </fileset>       
        </path> 
        <target name="jsp" >
        <!--
             The Ant JSPC task doesn't work with Tomcat 5.0
             so in the meantime we need to define our own task.
          -->
        <taskdef name="jspc50" classname="org.apache.jasper.JspC">
            <classpath>
                    <path refid="jsp.classpath"/>    
            </classpath>
        </taskdef>
        <jspc50 outputDir="${build.classes}"
                package="jsp"
                uriroot="${project.dir}/web/webApp"
                webXmlFragment="c:/web.xml"
                verbose="9"
                validateXml="false">           
        </jspc50>
        <javac srcdir="${build.classes}/jsp"
               destdir="${build.classes}"
               debug="true"
               optimize="false"
               includes="**/*.java"
               source="1.4">
                <classpath>
                    <path refid="classpath"/>
                    <path refid="jsp.classpath"/>
                </classpath>          
        </javac>
    </target>    More information can be found here :
    http://www.onjava.com/pub/a/onjava/excerpt/AntTDG_chap8/index1.html?page=last

  • Deployment of Java WebService with OC4J and JDeveloper

    Hi,
    I have created a sample java webservice following instructions given in one OTN tutorial (Developing, Deploying and Managing Web Services Using JDeveloper and Oracle Application Server ) at http://www.oracle.com/technology/obe/obe1013jdev/ws/wsandascontrol.htm
    We were able to create the webservice as shown in the tutorial but are facing problem while deploying it. The deployment message console in JDeveloper shows one "Deployment failed : ClassCastException".
    Some of the lines from Jdeveloper console are ::
    "Binding WebServices web-module for application JavaWebService-GetDates-WS to site default-web-site under context root JavaWebService-GetDates-context-root failed"
    I have gone through the stack trace in the OC4J console but couldnt figure out much out of it as all the culprit classes are from different jar files...Here is the Stack trace for your ref::
    06/05/05 19:07:12 WARNING: DeployerRunnable.run java.lang.ClassCastExceptionoracle.oc4j.admin.intern
    al.DeployerException: java.lang.ClassCastException
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
    e.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.ClassCastException
    at oracle.j2ee.ws.server.deployment.WebServiceEndpoint.writeRuntimeXml(WebServiceEndpoint.ja
    va:660)
    at com.evermind.server.Application.getHttpApplication(Application.java:512)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFr
    omReference(HttpSite.java:1975)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:18
    94)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    2006-05-05 19:07:12.713 WARNING java.lang.ClassCastException
    I am using J2SE1.4.2_08 version. Earlier when I used java 5 version I got an error something like "Found runtime environment 49.0 expected environment is 48.0"....so I moved over to J2SE1.4.2_08 version but now I am getting above error as shown in the stack trace.
    Looking at the success message shown in the OTN tutorial it seems that only step that failed while this deployment is Initialization of servlet : Oracle.j2ee.ws.server.JAXRPCServlet for webapplication Webservices.

    Hi, thanks for your quick help.
    Shay, I agree with you that the specific tutorial uses JDeveloper 10.1.3 and I need to use JDK 5 to run that version of JDeveloper.
    Earlier when I used JDK 5 with JDeveloper 10.1.3, I got different error saying "Found runtime environment 49.0 expected environment is 48.0".....so I moved over to J2SE1.4.2_08 version but now I am getting an error as shown in the stack trace given in the very first post to this thread.

  • Database call out webservices with JDeveloper - help

    Hi all,
    I am using JDeveloper 10.1.3.0 to generate java proxies for web services and deploy them to my Oracle 10g Enterprise Edition database.
    I am able to create the proxy and test the web service, it works fine. When I create a deployment profile and deploy, everything succeeds, I am able to see the PL/SQL wrapper function in the database. However, when I execute the function, I get an error class name <my java classname> not found. This is a case when I execute a web service that runs on our server and requires authentication. I have provided the authentication in the setUsername and setPassword methods of the java proxy.
    When I try to do the same with a stock quote web service, I do not get an error, but there is no output either. It returns nothing.
    Is this an issue because of the jdk version problem? My database jvm is jdk1.4 compliant and the JDeveloper is 1.5 compliant. But I think there is somehting very basic that I am missing. Can experts please help me with this, I have been struggling for long!
    Thank you very much. Any help is greatly appreciated.
    Regards,
    Nithya

    I have still not figured this one out. Any help please?
    Regards,
    Nithya

  • Developing Enterprise Apps with Weblogic and WebGain-Studio

    Hi everybody,
    Is anybody experienced in developing with Weblogic Server and WebGain-Studio
    What could be a good environment for working with these components ?
    Thanx,
    Markus.

    Thanks for your prompt reply. I have another question. I am very new to Java development.
    In our environment, WebLogic 10.3.6 and JDK1.7 are both 64-bit. However, developers' machine are 32-bit windows. They will have Weblogic server installed locally in their machines for development. Later, the codes will be deployed and run in the 64-bit environment.
    Thus, we are developing java program with 32-bit java and compile/run it with 64-bit java. Is it the right way to do it or do our developers need to use 64-bit windows?
    Edited by: nww on Sep 14, 2012 2:51 PM

  • WebDev Install with JDeveloper and WLS

    I'm familiar with the installation of a JDE WebDev Client and now I've been tasked with a JDeveloper 11.1.1.2 and WLS install. Is there any good guides on how to set this up?
    EnterpriseOne 811
    Tools 8.98.3.1
    Any help would be greatly appreciated.
    Thank you,
    Al

    Hi Al,
    Try this:
    https://support.us.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1302209.1
    This doc explains what components you need to have on a E1 Client that will be used to build and deploy BSSV Packages to a Bus Services Server. The Combination of JDeveloper and WLS probably indicates that you are intending to setup a Bus Services Server. However, this is only supported as of 811SP1.
    If you are running 811SP1, the process of setting up a Bus Services Server involves:
    - defining a BSSV instance via Server Manager
    - setting up a E1 Client with JDeveloper that will be used to build and deploy a Business Services Package
    The following doc has useful links to the MTRs for Bus Services Server as well as other useful resources on BSSV.
    https://support.us.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=967281.1
    Edited by: user621397 on 15/04/2012 22:03
    Edited by: user621397 on 15/04/2012 22:04

  • Problem with packageing and deploying a sample application

    HI,
    I have tried to download and install the server in my system. I am able to deploy a sample application using autodeploy utility.
    But when i tried to package a new sample application and deploy i am getting 404 error. For application server i have used 7070 port and not the default 8080 port will this a problem to package & deploy sample application provided with this software.
    The error is as below:
    HTTP Status 404 - /hello1
    type Status report
    message /hello1
    description The requested resource (/hello1) is not available.
    Sun-Java-System/Application-Server

    Btw, verify that the url you are trying to access is correct. For instance, assuming you deploy app. without --contextroot option. By default,  the url is http://<host>:<port>/<web module name>/<value of url-pattern in web.xml> if your app contains servlet. If your app has jsp then it's http://<host>:<port>/<web module name>/<value of url-pattern in web.xml>/<name of jsp>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to develop a webservice with SAML on Weblogic 8.1

    I will develop some webservices on Weblogic 8.1. On the security part, we will
    use SAML. Is there somebody who can tell me how to do it? Do I need third party
    product? And where I can find samples?
    Thanks.
    Jian

    I will develop some webservices on Weblogic 8.1. On the security part,
    we will use SAML. Is there somebody who can tell me how to do it? Do I
    need third party product? And where I can find samples?Currently, we don't offer any support for SAML in WLS -- so you would
    have to use a third party product. Depending on how you want to use it,
    you may be able to use a third party product to create a handler for your
    service or client.
    However, if you want to use the handler in the server to set the subject
    for the invoke, the handler architecture will prevent you from doing
    this -- the API you use to set the user
    (weblogic.security.service.SecurityManager.runAs() -- see
    http://edocs.bea.com/wls/docs81/javadocs/weblogic/security/service/SecurityManager.html)
    cannot be successfully used in handler methods. If you wish to do this,
    I'm afraid the only way we have to support this is to use a servlet filter.
    -Pete

Maybe you are looking for

  • STOP continuous play of songs in itunes Iphone4

    Talk about irritating! ha! I DO NOT want continuous play of songs in Itunes ON MY IPHONE 4.  How can I stop this? I tried unchecking ALL of my songs (entire library) in Itunes on my PC.....and that works for NOT having continuous play on the PC......

  • How do I link to a PDF from a web app?

    Hello, can anybody help me with this please. I have a web app that is listing current vacancies (see it here http://pattonnz.businesscatalyst.com/about-situationsvacant ) As you can see the link to the PDF job description file is not right. What is t

  • Collaborative Java editing

    Hey all, I'm an undergraduate of Software Engineering in the UK. I'm in my final year and as my final major project I am using Java and Jini to produce an application that supports collaborative code editing. My research for this project generated an

  • Trial error when starting apps

    I'm getting a countdown screen telling me to "Check your Billing Information" - it's currently at 18 days. My account is paid up-to-date so what could the issue be?

  • Question About a

    Here's a "manually-created" linkedlist from the book JavaMethods AB integrated with some of my own code. package listnode; public class ListNode {     private Object value;     private ListNode next;     public ListNode(Object initValue, ListNode ini