Simple WebService Creation using JDeveloper 11.1 Technology Preview 2

Hi,
I like the way JDeveloper simplifies the web service creation using the wizards and allows to test the web services from the IDE itself.
I have the following issues when I tried the step-by-step tutorial (http://www.oracle.com/technology/obe/obe11jdev/11/ws/ws.html) to build a web service. I greatly appreciate if some one can help me with these issues. This tutorial basically provides how to create a simple hello world kind of web service using JDev. Some of the steps are failing in my case.
Failure 1) Unable to find the WSDL document
When I invoke the "Test Web Service" menu item HTTP Analyzer is unable to locate the dynamically generated WSDL. I did try with and with-out proxy settings both the cases it failed. However I can see the WSDL if I go to the given WSDL URL in my web browser. I suspect I am missing some thing in Jdeveloper configuration. So I had to manually save the WSDL from the browser to go to further steps.
Failure 2) Failure in the Response message
When I invoke the request message I am getting the following error in the response:
"The selected message is not a SOAP message". However, if I use the browser to test the web service, it is working fine.
I greatly appreciate if you can provide me some insight into why JDeveloper is failing in these cases.
Thanks
Sunil

It started working after I restarted the JDeveloper with no proxy settings. Seems to be after changing proxy settings JDev need to be restarted to take the preference changes to be effective in this case.
Another interesting aspect that I noticed was, when HTTP analyzer is running it dynamically sets the proxy in the preferences settings as localhost with the HTTP analyzer port.
But anyway now I am able to run and test this webservice within the JDev itself.
Regards
Sunil

Similar Messages

  • Issue with Webservice Creation using Session Beans.

    Hi All,
    I want to expose my Session beans as webservice.
    I'm using Weblogic Application Server.
    When I do the modeling using JDeveloper, I'm unable to convert the Session bean to webservice.
    Any information on this is highly appreciable.
    Thanks & Regards,
    Kumar Madhavan.

    I can't give you much of a walk through, as I have just started it myself, but I'm using a universal unique identifier to represent each client. Whenever a client posts data from a jsp or applet the uuid is also sent. I use POST to pass all my parameters. If the server hasen't received data in say 5 minutes from the client then it is assumed the client went offline. Its working for me so far.
    COn

  • Publish a plsql code as webservice without using JDEVELOPER or APEX

    Hi All,
    I am looking into how can we publish a PLSQL code as web-service without using JDEV OR APEX.
    When I google for this one I can see only by using JDEV or APEX we can publish Code as a web-service.
    Is there any way in oracle, just by using simple PLSQL packages we can publish code as a webservice.
    Appreciate your response.
    Thanks,
    MK.

    Apex does not publish PL/SQL code as web services. It is a web run-time and development framework. Something totally different.
    To turn a PL/SQL function into a web service is simple. You use the orawsv servlet in XDB - without making a single code change to the function. It will not even know it is called as a web service.
    To use orawsv, two basic steps. Configure and enable the servlet (raw HTTP/HTTPS connections will be handled by the Listener). This also entails enabling shared server in the database, if not already enabled. The 2nd step is to allow the function to be executed (via a HTTP call) as a web service, via granting specific roles.
    orawsv handles the HTTP call. It provides the WSDL. It parses SOAP envelopes as input. It makes the call (as a standard PL/SQL call), to the function being used as a web service. It returns the results of the PL/SQL function call, as a SOAP envelope output.
    See Support Notes:
    How to Setup Native Oracle XML DB Web Services [Article ID 444191.1]
    Sample Framework for testing Native Oracle XML DB Web Services [Article ID 803794.1]
    How to Browse Native Oracle XML DB Web Services Example [Article ID 1324235.1]

  • Webservice Creation Using CRM tool

    Hello everyome,
    I am getting following error (Image attached), whenever I try to activate my WebService. I have got all the attributes I required for my webservice using
    Component :-ISUMD
    Root Object:- ISUContract
    QueryObject : IsuMDAccountQuery
    Can you suggest, what could be the reason for this error?
    Thanks & Regards
    Ashish

    Hello Ashish,
    this error message is raised because no result object has been defined for the query "IsuMdAccountQuery". The reason therefore is that the result object "BuilHeader" is not defined in the component ISUMD.
    Nevertheless I do not clearly understand what is the purpose of this web service. In case you only want to display the business partner details, why do you choose the component ISUMD and why do you choose the root object "IsuContract". I'd suggest to use the component BP and the query "BuilHeaderSearchNew" instead.
    Best regards,
    MIchael.

  • Where can find a simple BPEL example using Jdeveloper

    Hi, I'm a beginner of BPEL. I searched about BPEL developing documents on OTN, but I cannot find an example for Jdeveloper. Who can tell me how Jdeveloper create a BPEL project, then call the BPEL in JSP/JSF.
    Thanks.
    Stone

    Hi,
    take a look at this document:
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28983/toc.htm
    or more detailed at
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/toc.htm

  • Approval process creation steps using JDeveloper in OIM 11g R2

    Hi,
    Please help me to create approval process creation using JDeveloper and how to use the approval process in OIM provision in OIM 11g R2.
    Thanks in Advace,
    srini

    refer developer's guide to get the detailed steps. http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/request.htm#BABFFJDH
    Also refer OBE tutorial http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Custom_Approval_Process_for_Resource_Request/custom_approval_process_for_resource_provision.htm#t3
    There will be slight changes in the steps as this OBE is for 11gR1.
    High level steps:
    Create a new application using the following command
    ant -f <OIM_HOME>/server/workflows/new-workflow/new_project.xml.
    It will be created in OIM_HOME/workflows/new-workflow/process-template/ directory
    Openthe .jws file in jdeveloper and edit the default human task and add whatever logic is needed.
    Then deploy the composite after which you need to create an approval policy and link the SOA composite created
    Edited by: Durgaprasad on Apr 24, 2013 1:55 AM

  • Problem removing files with CVS (JDeveloper 10.1.3 Preview)

    Hello,
    I've got a problem removing files from CVS :
    - I right-click on the file I want to remove -> Versioning -> Remove
    - The file is removed from local directory, and it appears in "Pending changes" view, on "Outgoing" tab. Its status is "scheduled for removal".
    - When I commit the file in the "Pending Changes" view, and click OK, then nothing happens. The file stay with "scheduled for removal" status, and it is not deleted on CVS server.
    I tried to commit the package or the project, but it's the same thing.
    Files additions and modifications work correctly.
    I'm using JDeveloper 10.1.3 Preview version.
    Is this a bug ? Or do I do something wrong ? Is there an other way to solve my problem ?
    Thanks.

    Here is the message displayed in the log window when I remove file (in Versioning menu) :
    C:\J2EE\Projets\budgetapptest\src\test\swm>
    $ <internal cvs client> remove -l Test_suppr_1.java
    cvs remove: scheduling `Test_suppr_1.java' for removal
    cvs remove: use 'cvs commit' to remove this file permanently
    Here is the message displayed in the log window when I COMMIT the "scheduled for removal" file :
    C:\J2EE\Projets\budgetapptest\src\test\swm>
    $ <internal cvs client> commit -F C:\DOCUME~1\19363~1.WIN\LOCALS~1\Temp\.jdevcvs_cmt22356.tmp Test_suppr_1.java
    cvs commit: Examining .
    Thanks.
    Message was edited by:
    user444728

  • 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

  • JDeveloper Webservice Creation Question

    While Creating webservices through JDev 11g from WSDL, we are presented with two option :-
    1) Java EE 1.5, with support for JAX-WS annotations
    2) Java EE 1.5, with support for JAX-WS RI
    Could you please let me know which one is the most efficient option.
    I see that in the second option the webservices are configured thru another file(sun-jaxws.xml) and all the requests are directed or handled by a common servlet whereas in the first option we usually configure the endpoint implementation directly in web.xml.
    Another question that i have related to webservices creation - Does webservices wizard internally call wsimport to generate classes from WSDL. When i use wsimport to generate classes using WSDL and specify a jaxb global binding file to convert datatypes, this works correctly but using JDeveloper doesn't creates the Adapter classes to convert the datatypes.
    Answers to the above would be helpful in reaching a decision on which approach to follow. Thanks.

    Hi,
    yes. Please see the how-to document we provide on otn.oracle.com/products/jdev
    Frank

  • HT201210 nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and somet

    nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and sometime just hear from other user that it 's difficult to use then force they change phone that use to handle to another.

    It is a feature to discourage the theft of iPhones by making them useless if resold. It's not going anywhere. It's simple: just don't buy a phone until you make sure that the activation lock has been disabled.

  • 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

  • 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

  • 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

  • Imlementing Simple Webservice using AXIS

    Hi,
    I am trying to implement simple webservice using APACHE AXIS.
    I have imported all the required jar files.
    Even my client code compiles without any error.
    But when I am trying to execute the code, it gives NULL POINTER EXCEPTION. The exception is caused by statement
    Service service=new Service();
    where Service is a class imported from org.apache.axis.client.Service
    Please guide me how to avoid this exception and make my program run properly.
    Thanks
    Ashutosh.

    hi ashutosh,
    according to me null pointer exception is displayed because the service you are trying to call is not identified by your client.
    this happens if your endpoint is not properly mentioned.
    try to save the service as .jws and keep it in axis directory.after that ,use your client to call the service.
    mention endpoint, service method name. use invoke method to call the service.
    //use the following import statements:
    <%@ page import="org.apache.axis.client.Call" %>
    <%@ page import="org.apache.axis.client.Service" %>
    <%@ page import="javax.xml.namespace.QName" %>
    <%@ page import="java.net.*" %>
    //set target
    String endpoint = "http://localhost:9000/axis/test.jws
    call.setTargetEndpointAddress(new URL(endpoint));
    //set operation name
    QName qname;
    qname = new QName("getString");
    call.setOperationName(qname);
    //invoke the service
    out.println(call.invoke(new Object[]{}))
    if you have to pass parameters then mention them as
    out.println(call.invoke(new Object[]{String s1,....}))
    among the jar files you should have:
    activation.jar,axis.jar,jaxrpc.jar,saaj.jar,servlet.jar,wsdl4j-1.5.1.jar,xercesImpl.jar,xmlParserApis.jar and the all the tomcat lib jar files in tomcat/common/lib directory
    call your service from browser using your client as:
    http://localhost:9000/ServiceClient.jsp
    IF YOU WANT TO SEE THE WSDL OF THE SERVICE:
    http://localhost:9000/axis/EchoHeaders.jws?method=xyz

  • 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.

Maybe you are looking for