Creating WebService using Jdeveloper 9i

Is there a article on creating PLSQL Webservice using Jdeveloper 9i(9.0.3.5) and then porting it on the Application server? We have Oracle Application 11.5.10 using 10g database.
Thanks
PHK

Follow the links at the end of the demo pages of JDeveloper to get to older stuff for example this:
http://www.oracle.com/technology/products/jdev/viewlets/903_ws_plsql/903_WS_PLSQL_viewlet.html

Similar Messages

  • Unable to create WebService using Wizard

    XML experts,
    I am following the 'How to...Send XML Data to BW' guide.  In Step 26, for BW 3.5, I start to create WebService using SE37 and use the Wizard.  I go thru all the steps as follows:
    Virtual Inteface:  Myservice
    Short Description:  Myservice
    Endpoint Type:  Function Module
    Check  Name Mapping box
    Function Module:  /BI0/QI6ASENDXMLDATATOBW_RFC
    Name:  Myservice
    Short Description:  Myservice
    Profile:  Basic Authorization: SOAP Pro
    If you select Complete, the following objects are created in the Object Navigator:
    The virtual interface Mydemo
    The Web service Mydemo
    The address of the Web service is default_host/sap/bc/srt/rfc/sap/Mydemo
    In addition, the Web service definition is released for the SOAP runtime.
    To find the address of the Web service, use the transaction WSCONFIG, which supports you when you publish a Web service in the UDDI.
    WHEN I PRESS COMPLETE, I get a message 'Object can only be created in SAP Package'.  I SELECT OK and get the CREATE OBJECT DIRECTORY ENTRY popup for entering package info for transport.
    <b>Question:  Is this normal?  I tried local object ($tmp) and ZBIW, but it does not take it.  Says, test object cannot be created in foreign namespaces.  What do I need to do to bypass this?</b>
    Thanks a lot!!

    Hi
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-i 1</a>
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-ii 2</a>
    Regards
    Abhijith Ys

  • Problem creating jar using JDeveloper

    I'm creating jar using JDeveloper..I need to keep two dll files in the jar. But if I create the jar in JDeveloper, it can't include the dll files. If the jar is created from command prompt, it can include the dll files. Can anyone tell me how can I include these dlls in my jar?

    Putting DLLs in your classes directory is dangerous (eg. Run->Clean Project.jpr will remove it). I use a different way to achieve that:
    When you double click on the deployment profile you'll see a dialog window containing a list of items. The one of interest is the one called File Groups. Select this item, click on the New button and add a new file group just for your DLLs.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Creating Asynchronous webservice using Jdeveloper

    Guys,
              I want to expose a java class as a Asynchronous web service. The issue is i cannot make it asynchronous. When i deploy it, there is no callback port.
    Have anybody used Jdeveloper to generate Asynchronous web service from java class?
    Below is my code....
    import javax.jws.WebService;
    import oracle.webservices.annotations.async.AsyncWebService;
    @WebService(serviceName = "MyTestAsyncService")
    @AsyncWebService
    public class MyTestAsyncService
      public  String sayHello()
        return "Hello World";

    Hello,
    I think, it should be work. I just tested using JDeveloper 11.1.2.3.0.
    This is web service:
    package webservice;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService(serviceName = "MyTestAsyncService")
    public class MyTestAsyncService {
        @WebMethod
        public String sayHello() {
            return "Hello World";
    I have generated using New->Web Service Client and Proxy and give WSDL URL.
    It will generate web service client with asynchrone.
    package ws.client;
    // This source file is generated by Oracle tools.
    // Contents may be subject to change.
    // For reporting problems, use the following:
    // Generated by Oracle JDeveloper 11g Release 2 11.1.2.3.0.6276
    public class MyTestAsyncServicePortClient {
        public static void main(String[] args) {
            MyTestAsyncService_Service myTestAsyncService_Service = new MyTestAsyncService_Service();
            MyTestAsyncService myTestAsyncService = myTestAsyncService_Service.getMyTestAsyncServicePort();
            System.out.println(myTestAsyncService.sayHello());
            // Add your code to call the desired methods.
    Also that one is port class, which is generated from wizard.
    package ws.client;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.logging.Logger;
    import javax.xml.namespace.QName;
    import javax.xml.ws.Service;
    import javax.xml.ws.WebEndpoint;
    import javax.xml.ws.WebServiceClient;
    import javax.xml.ws.WebServiceFeature;
    * This class was generated by the JAX-WS RI.
    * Oracle JAX-WS 2.1.5
    * Generated source version: 2.1
    @WebServiceClient(name = "MyTestAsyncService", targetNamespace = "http://webservice/", wsdlLocation = "http://127.0.0.1:7101/WebServiceServer-WebService-context-root/MyTestAsyncServicePort?WSDL#%7Bhttp%3A%2F%2Fwebservice%2F%7DMyTestAsyncService")
    public class MyTestAsyncService_Service
        extends Service
        private final static URL MYTESTASYNCSERVICE_WSDL_LOCATION;
        private final static Logger logger = Logger.getLogger(ws.client.MyTestAsyncService_Service.class.getName());
        static {
            URL url = null;
            try {
                URL baseUrl;
                baseUrl = ws.client.MyTestAsyncService_Service.class.getResource(".");
                url = new URL(baseUrl, "http://127.0.0.1:7101/WebServiceServer-WebService-context-root/MyTestAsyncServicePort?WSDL#%7Bhttp%3A%2F%2Fwebservice%2F%7DMyTestAsyncService");
            } catch (MalformedURLException e) {
                logger.warning("Failed to create URL for the wsdl Location: 'http://127.0.0.1:7101/WebServiceServer-WebService-context-root/MyTestAsyncServicePort?WSDL#%7Bhttp%3A%2F%2Fwebservice%2F%7DMyTestAsyncService', retrying as a local file");
                logger.warning(e.getMessage());
            MYTESTASYNCSERVICE_WSDL_LOCATION = url;
        public MyTestAsyncService_Service(URL wsdlLocation, QName serviceName) {
            super(wsdlLocation, serviceName);
        public MyTestAsyncService_Service() {
            super(MYTESTASYNCSERVICE_WSDL_LOCATION, new QName("http://webservice/", "MyTestAsyncService"));
         * @return
         *     returns MyTestAsyncService
        @WebEndpoint(name = "MyTestAsyncServicePort")
        public MyTestAsyncService getMyTestAsyncServicePort() {
            return super.getPort(new QName("http://webservice/", "MyTestAsyncServicePort"), MyTestAsyncService.class);
         * @param features
         *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
         * @return
         *     returns MyTestAsyncService
        @WebEndpoint(name = "MyTestAsyncServicePort")
        public MyTestAsyncService getMyTestAsyncServicePort(WebServiceFeature... features) {
            return super.getPort(new QName("http://webservice/", "MyTestAsyncServicePort"), MyTestAsyncService.class, features);
    I hope, it will work
    Regards,
    Eba

  • Error in Creating Webservice in JDeveloper 10.1.3 EA

    hi,
    I'm trying to implement a java webservice using JDev 10.1.3 EA. I just create one simple class with one method returning a string. here is the class code:
    public class ServiceTest {
    public ServiceTest() {
    public String getMessage() {
    return "hello wooorld!";
    after that, i do right-click on it and select "Create J2EE Webservice", and I choose J2EE 1.4 (JAX-RPC), and let JDev do its job creating several classes. I'm trying to run its WSDL file and nothing happens except string message "Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview initialized" appears.
    After that, i'm creating web service proxy by right-click on WSDL file and select "Generate Webservice Proxy" and let JDev creates several class. But when I invoke webservice by calling method
    myPort.getMessage();
    in the MyWebService1SoapHttpPortClient.java and run it, the following error occurs:
    java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
         at mypackage.proxy.runtime.MyWebService1SoapHttp_Stub.getMessage(MyWebService1SoapHttp_Stub.java:92)
    Is there any mistake in my code? I've also created Webservice Proxy for GoogleAPI Webservice using JDev 10.1.3 EA and it runs well. thanks a lot for any suggestion.
    regrads,
    fox

    yes, i found an URL and I try to access this via browser, and the following message appears:
    Error instantiating web-application
    Error compiling :C:\My Documents\Java\Webservice\Service3\public_html: Syntax error in source or compilation failed in: E:\master\Oracle JDeveloper 10.1.3 Early Access\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\current-workspace-app\Webservice-Service3-webapp\galih\service\runtime\MyWebService1SoapHttp_Tie.java E:\master\Oracle JDeveloper 10.1.3 Early Access\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\current-workspace-app\Webservice-Service3-webapp\galih\service\runtime\GalihServiceService_SerializerRegistry.java:36: error #300: MyWebService1_getMessage_ResponseStruct__LiteralSerializer not found in class galih.service.runtime.GalihServiceService_SerializerRegistry
    CombinedSerializer serializer = new galih.service.runtime.MyWebService1_getMessage_ResponseStruct__LiteralSerializer(type, DONT_ENCODE_TYPE);
    ^
    1 error

  • 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

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • Create webservice using different Business Objects

    Hi Experts
    Is it possible to create a webservice using different business Objects i.e "BOL Intergration for cases" and "Business Partner"?
    This is a scenario:
    I created webservice and on Business Object field I chose "BOL Intergration for cases" reason being that I want to see all attributes related to  root object  "case" and at the same time I also want to view attributes related to business object Busines Partner  root  object "Account" Is it possible to do that?
    Thanks for your help
    Regards
    Maria

    Hi,
    >>>I created webservice and on Business Object field I chose "BOL Intergration for cases" reason being that I want to see all attributes related to root object "case" and at the same time I also want to view attributes related to business object Busines Partner root object "Account" Is it possible to do that?
    sure it is - you can even create two WS for each of those and the third on that will be using both previous
    Regards,
    Michal Krawczyk

  • Exposing plsql Packages as webservices using JDeveloper

    Hi folks,
    I'm using Jdeveloper to publish database package/ procedures as webservices.These procedures use objects types as parameters (Varchar2's). I can generate the webservices (by the JDeveloper wizard), the WSDL file is generated;
    Question is about the required and optional fields. In my procedure declaration I defined the input as Varchar2 and also defined a default
    Procedure p ( p_var IN VARCHAR2 Default NULL) AS
    BEGIN
    NULL;
    END; 
    But when I deploy this package as webservice (via jdeveloper) to our weblogic server, and run a test, I get errors related to required fields if I don't pass in any value.
    Invalid input arguments for the following fields: p_var value required
    How would I change this behavior ? I made the procedures to accept default parameters ( even when no value is passed I would want my code to run)
    Thanks in advance,
    Prashanth

    Thanks Timo !
    Found out to be an issue with Oracle Fusion Middleware control (http://<hostname>:<port>/em ) validating for required Inputs, but when tested with SOAP UI or Web logic Test Client (http://<hostname>:<port>/wls_utc) it works as expected. Reported the issue to Oracle Support and the problem has been reproduced there.
    Regards,
    Prashanth

  • How to create Webservice using java

    Hi Experts,
          I am very new to Visual composer, can any one of you suggest how to create a webservice using java so that i can use that webservice in Visual Composer application.If it is possible please give me detailed description about it.
    Regards,
    Prasanna.

    Hi Prasanna,
    See if my article is of any use to you:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10">How to Create a Web Service using an Enterprise JavaBean</a>
    For creating Web Services, you won't need to do the MS SQL Part explained in my doc. You can just concentrate on the part where i explain how to create a Web Service using an EJB.
    Bye
    Ankur

  • Create Webservices using xsd

    what are the steps to create webservices usind xsd, a working code example will be greatly helpful.

    ejp wrote:
    I have to create a webservice using rad 7. I need to create a xsd file and generate the javabeans and import the xsd into wsdl file.No you don't. You have to create a wsdl file that describes the remote services you're going to offer. The xsd of a wsdl file is already written, you don't have to do anything about that.
    I understood conceptuallyNo you don't.
    You could use the WSDL compiler, google for that.I'm guessing he means he's tasked with producing a schema that'll then be imported into the WSDL. Pretty standard practice to define the stuff you're going to use in your web services outside of the WSDL itself.

  • Publish PLSQL Package as webservice using Jdeveloper

    Hi All,
    I have developed an PLSQL package that select records based on search criteria. I want to publish this as an web service. I have published another PLSQL package that inserts to a table as a web service, which is working fine(Using Jdeveloper and SOA Suite(Application Server)). I am getting error as "cannot create target" when i published as a web service for select.
    Procedure has 4 IN Parameters and 4 OUT Parameters in which one of the OUT Parameter is of table type. When i click invoke button the error details are as follows
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body>
    <env:Fault
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <faultcode>env:Server</faultcode>
    <faultstring>Error creating target: hr.Select_Employee_Records_V1User</faultstring>
    <faultactor/>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Please suggest me how to proceed further
    Thanks and Regards,
    Mahesh
    Edited by: MAH on Nov 2, 2008 10:33 PM

    Have you tried using the DB adapter for stored procedures? Is your "record" type a PL/SQL record type? Or is it a SQL object type? If it's the former then the adapter will automatically generate corresponding object types. A package is also generated that contains a wrapper API for your original procedure. The package also includes conversions to convert between the record and the object types. If it's the latter, then the adapter does nothing special as it can handle object types. Once deployed, your API will be executed with an included instance XML for the inbound parameters. XML will be generated containing values of outbound parameters. In your case, if the data type is a PL/SQL record, the problem may be that record is not a supported data type.

  • How to create reports using jDeveloper

    what procedure to follow in order to creating
    reports drawn from mysql or Oracle 8.5.0 database.

    I have created 'reports' using BC4J and the JSP Web Application wizard (I use the RowsetBrowser bean).
    On the BC4J side, I use read only View Objects based on SQL queries (not based on Entity Objects).
    On the JSP side, I create a HTML form where the user can enter their query criteria, pass that criteria as parameters to the ViewObject query, then use a RowSetBrowser bean to display the results.
    You can also write your own custom beans to format the output of the report as you like.

  • Can't create table - using JDeveloper 11g (11.1.1.3.0)

    I am running a DDL to create a table:
    CREATE TABLE HORSE
    HORSE_NAME VARCHAR2(30) NOT NULL
    , PLACE VARCHAR2(20)
    , RACE_NAME VARCHAR2(30)
    , RACE_DATE DATE
    , CONSTRAINT HORSE_PK PRIMARY KEY
    HORSE_NAME
    ENABLE
    The message I get is:
    Error at Command Line:48 Column:13
    Error report:
    SQL Error: ORA-02264: name already used by an existing constraint
    02264. 00000 - "name already used by an existing constraint"
    *Cause:    The specified constraint name has to be unique.
    *Action:   Specify a unique constraint name for the constraint.
    This suggests to me that I should change the name to something else, like HORSE_ID. Whilst I don't agree that HORSE_NAME is used in another constraint I have changed the name but it doesn't make a scrap of difference.
    There is another parallel table called HORSES (plural) but but other examples ( eg PUNTER/PUNTERS) have been happily created.
    I would be grateful for any suggestions.
    Thanks,
    Jim

    The message is not specifically about the HORSE_NAME - it is more likely about the table name.
    You probably already have another database object called Horse (maybe not a table but it could be a view or a procedure).
    Try a different name for the table.

  • Creating Webservices using SOA Manager

    Hi All,
    I have created a webservcive for a FM using the serivce wizard and configuring the same in SOA manager transaction. This needs to be consumed by a Flex application. But we not able to consume it? Do i need to create consumer proxy for this in SOA Manager? For this once again do i need to create Logical port ?
    I am new to using this? Immediate help reagarding this is highly appreciated as this is an urgent requirement.
    Thanks and regards,
    Uma

    Configuring your WS via SOAMANAGER or WSCONFIG/ WSADMIN is not all. After you do the config, you need to publish it.
    In order to publish:
    Go to Txn SM59 and create two TYPE G destinations for:
    1. UDDI INQUIRY and
    2.UDDI Publish
    Make sure you have OLD_UDDI attached to your user profile.
    Then go to txn: SUDDIREG to register your destinations.
    Open your WS in SE80 and go to variants tab.
    on the UDDI node right click and publish to the UDDI registry you menytioned in SUDDIREG.
    Then open your UDDI Client:
    http://<Host
    Name>:<J2ee Port#>/index.html.
    search your registry .. if found the WS published successfully.,
    Pls reward points if this is helpful.

Maybe you are looking for

  • Facing issues with JCA DB Adapter

    Hi, I have to create a DB Adapter in BPEL on Reporting Database of OSB. I have a requirement to extract DATA_VALUE from WLI_QS_REPORT_DATA Table stored in BLOB datatype by passing parameters in WLI_QS_REPORT_ATTRIBUTE with a join condition of a commo

  • How do I set up microsoft outlook on the iphone?

    How do I set up microsoft outlook on the iphone?

  • Handling a very larger file from Sender system

    Hi Sdn, Can you please tell me, what should be done from an SAP+XI side to handle a very large file coming from the sender system to be posted to the receiver? What should be done in XI end so that there is no problem in handling the larger file. Tha

  • Reading file containing byte data

    I am trying to read a file containing data that is in byte format. I can't look at the file and have no idea what is in there. For my first pass I would just like to see what the format is of the data in characters. Is there an easy way to do this? T

  • Cannot re read messages in inbox

    when I get emails in my inbox i can read the new ones and they display all information relating to who sent them etc plus content of email. However, once I have viewed(read) them although still listed in the inbox when I restart thunderbird and click