TopDown approach and bottom-up Web services

Hello

It's a simple question, I am new to bpel...
What are the merits and demerits Web services top-down and bottom-up approach.
everything can give correct url.



Thank you
Prasad

Bottom-up: firstly to create the java interface and POJO, then generate the WSDL tools.

Top to bottom: Handcraft the WSDL, then generate java and POJO interfaces using tools.

The two approaches has its own merits / demerits. You must choose what your business needs. Google for more information.

Tags: Fusion Middleware

Similar Questions

  • My native BB app, how to connect to the remote URL and call a Web service method to retrieve the XML base result using Eclipse Version 3.7.2

    Hello

    I am new to the development of native applications from BB using JDE. I'm testing Simulator. From my native BB app, I connect a remote URL and call a Web service method to extract some basic result XML.

    I need to write a login code remote URL to achieve? If so, how?

    So, how can I use this connection object to call the Web service from this URL remotely.

    Please help me out of it...

    Many thanks in advance...

    What i am doing is, On clicking the "Login" button i want to call the webservice method like below mentioned code...
    Here WaveServices is a class and getAllCinemas() is a static method inside which a webservice method call is made..
    
    loginButtonField.setChangeListener(new FieldChangeListener() {
                public void fieldChanged(Field paramField, int paramInt) {
                    WaveServices.getAllCinemas();
                }
            });
    

    Indeed, the question was raised and answered here:

    http://supportforums.BlackBerry.com/T5/Java-development/from-my-native-BB-application-how-to-connect...

  • How to check the total of the data sent and received via Web Service

    Hi guys

    I develop an application that receives data on about from server using the Web Service. Any fast way I can find total data sent to the server and the total of the data received from the server by my application?

    Any help would be much appreciated.

    Pinsard

    Check this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/calculate-data-usage-for-particular-applicat...

    It could be that useful...

  • Specification of inputs and manipulate outputs Web Service calls

    Hello

    I have created a process in the workbench that will lead a logged in user id, call a web service to obtain the account information and then pre-filling and make a form based on the resulting data. The webservice is an external SOAP webservice, and I'm not sure how to specify a variable as an entry in the SOAP request in process design or how to map data returned in the message in an XML document to use soap for filers of form.

    I saw this link, but am always looking to learn more: http://kb2.adobe.com/cps/499/cpsid_49980.html

    Matthew

    Matthew,

    I created an example that calls a public Web Service, maps the SOAP response to a variable of type 'xml' data and makes a PDF file by using xml.

    I found public Web Services to http://wiki.cdyne.com/wiki/index.php?title=CDYNE_Weather , which exposes the WSDL to the http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl and choose the GetCityWeatherByZIP operation. The operation takes an input string of POSTAL code and produced the SOAP response, below.

    container http://www.w3.org/2003/05/soap-envelope"="http://www.w3.org/2001/XMLSchema"" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" > ""

    http://ws.cdyne.com/WeatherWS/">

    true

    City found

    CA

    Sacramento

    Roseville

    15

    N/A

    91

    10

    MISG

    N/A

    The XML document that I'm after is the encapsulated in the GetCityWeatherByZIPResult child so I built a schema to express the document.

    http://www.w3.org/2001/XMLSchema">

    Then, I built a PDF file, added a data connection to the GetCityWeatherByZIP.xsd schema and added a number of areas related to the scheme. Finally, I got with an ES2 process to call the Web Service, the GetCityWeatherByZIPResult retrieves the SOAP response and make a PDF using the extracted XML construction.

    Web Service settings are described below.

    I created a variable of type entry process 'chain', called zip and added the reference in the Web Service by using XPath query.

    SetValue service retrieves a process variable from type 'xml' called cityWeatherByZIP which I loaded with the GetCityWeatherByZIP.xsd schema. The renderPDFForm FormService then uses the XML cityWeatherByZip to link to the form. I just called the Workbench process which creates a variable of type 'document' output process, described below.

    The Archives of LiveCycle ES2 are attached.

    Steve

  • CF content and header of Web Service

    Hi all, here is a code that I use successfully consume a web service:

    Quote:
    "" < cfinvoke webservice = " http://mydomain/myservice.asmx?wsdl"
    method = 'MyMethod '.
    returnvariable = "wstoken" >
    < cfinvokeargument name = value "userName" = "xxxxxx" / >
    < cfinvokeargument name = "password" value = "xxxxxx" / >
    < / cfinvoke >
    < cfdump var = "" #wstoken # "label ="MyMethod"/ > < br / >"
  • Using https with proxy in WebLogic 10.3 and Jax - WS (Web services).

    Hello world! Hello!
    I'm trying to configure a proxy in a Https Jax Ws connection. I get problems to set up the Proxy authentication.

    This is the situation, I deploy a web project, which I have in the file. WAR in WebLogic. In this project, I have configured a class called utils. Authenticator. The code is the following:

    */**
    * To change this template, choose Tools | Models *.
    * and open the template in the editor.*
    **/*
    package-utils;

    Import weblogic.common.ProxyAuthenticator;

    */***
    ***
    * @author X31296CA *.
    **/*
    * Authenticator/public class implements ProxyAuthenticator {*}

    public void init (String proxyHost,
    proxyPort int,
    String AuthType,
    * String loginPrompt) {*}

    *}*

    * public String [] getLoginAndPassword() {*}
    Connection string [] = new String [2];
    Login [0] = "user";
    Login [1] = 'password ';
    Returns the user name;

    *}*

    Also, when I run the Jax - WS, prior to that, I try to configure the proxy with the following lines:
    Properties p = System.getProperties ();
    p.put (ProxyAuthenticator.AUTHENTICATOR_PROPERTY, "utils. Authenticator");
    p.put ("weblogic.net.proxyAuthenticatorClassName", "utils. Authenticator");
    System.setProperties (p);

    The exception I get is:


    weblogic.net.http.HttpUnauthorizedException: Proxy authenticator utils. Authenticator failed: java.lang.ClassNotFoundException: utils. Authenticator
    * to weblogic.net.http.HttpURLConnection.getAuthInfo(HttpURLConnection.java:346) *.
    * to weblogic.net.http.HttpsClient.makeConnectionUsingProxy(HttpsClient.java:439) *.
    * to weblogic.net.http.HttpsClient.openServer(HttpsClient.java:350) *.
    * to weblogic.net.http.HttpsClient.New(HttpsClient.java:518) *.
    * to weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:239) *.
    * Truncated. check the log file full stacktrace *.
    *}*

    Please, any ideas?

    Thanks in advance,

    Jaime,

    Hello

    Try this option in your startup script, and try again.

    -DUseSunHttpHandler = true

    Kind regards
    Kal

  • How can I disable and enable eprint on 3050 has to request web services code

    my printer is active eprint how to turn off so that I can move it back and get a claim code?

    Hi norseman,.

    Thank you for being a member of the HP support forums.  I understand you want to learn how to disable then reactivated web services.

    I've included the document Getting Started with ePrint . In the FAQ section there is a section entitled "what happens if I lose my code printer before enrolling?  In this subsection, it will guide you through the deactivation and reactivation then web services.

  • Basic authentication with the RESTful WEb service and a Web Service reference

    Hi all

    We have made significant progress on getting an application to work with RESTful web services, but are now trying to understand how to lock a RESTful Web service while making it available for a particular application.

    We use one of the 'emp' table sample web services come with Apex 4.2 and are trying to apply the Basic Auth to the WEb Service using Weblogic filter defined in the web.xml file. Which works very well. I now get challenged when I try to go to:

    https://wlogic.edu/Apex/BNR/ACE/HR/empinfo/

    And when I authenticate this challenge, I am able to get the data. (we are usiing the Weblogic-level LDAP authentication)

    However, I'm not sure how to get even basic authentication to work with Web Service reference in my application. I see the error message in the application when I try to call this Web Service:

    401 Unauthorized <

    And I see:
    "The request requires user authentication. It MUST contain a header field WWW-Authenticate (section 14.46) containing a fault that is applicable to the requested resource. The client MAY repeat the request with a suitable authorization (section 14.8) header field. If the request already includes identification of the authorization information»

    How can I provide the credentials in the Web reference or provide credentials in the Application?
    Web service works fine if I remove the auth basic RESTful web service in the Web.xml file.

    We should NOT use basic auth and auth Weblogic web service definition basic RESTful Workspace use instead. If so, how would we implement THIS basic authentication in the definition of Web Service and the Web SErvice reference on the application?

    Thank you
    Pat

    Hello Scott,

    Thank you. There is a function for rest in the package:

    function make_rest_request(
    --
    -- This function invokes a RESTful Web service with the supplied name value pairs, body clob, or body blob
    -- the response as an clob.
    --
    -- Arguments:
    --   p_url                  The url endpoint of the Web service
    --   p_http_method          The HTTP Method to use, PUT, POST, GET, HEAD or DELETE
    --   p_username             The username if basic authentication is required for this service
    --   p_password             The password if basic authentication is required for this service
    --   p_proxy_override       The proxy to use for the request
    --   p_body                 The HTTP payload to be sent as clob
    --   p_body_blob            The HTTP payload to be sent as binary blob (ex., posting a file)
    --   p_parm_name            The name of the parameters to be used in name/value pairs
    --   p_parm_value           The value of the paramters to be used in name/value pairs
    --   p_wallet_path          The filesystem path to a wallet if request is https
    --                          ex., file:/usr/home/oracle/WALLETS
    --   p_wallet_pwd           The password to access the wallet
    --
        p_url               in varchar2,
        p_http_method       in varchar2,
        p_username          in varchar2 default null,
        p_password          in varchar2 default null,
        p_proxy_override    in varchar2 default null,
        p_transfer_timeout  in number default 180,
        p_body              in clob default empty_clob(),
        p_body_blob         in blob default empty_blob(),
        p_parm_name         in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_parm_value        in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_wallet_path       in varchar2 default null,
        p_wallet_pwd        in varchar2 default null ) return clob;
    

    My point was that using the API makes things easier if you have to look for a solution.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • JDeveloper 12.2.1.0.0 do not add the header of web service security

    Hello

    I write simple WebService Java Client to a simple wsdl.

    If I click with the right button on the WSDL file and say 'Test Web Service', a request was made for me by Jdeveloper, all I have to do is click the box include the username and password for SOAP Header-> Header WS:Security and under the "security-> UserNameToken" and my request now has a security header

    " < = xmlns:env env:Envelope ' http://www.w3.org/2003/05/soap-envelope "xmlns:ns1 =" " http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd "xmlns:ns2 =" " http://Oracle.apps.CTB.cdapersistence.types ">

    < env:Header >

    < ns1:Security >

    < ns1:UsernameToken >

    WebLogic < ns1:Username > < / ns1:Username >

    password < ns1:Password > < / ns1:Password >

    < / ns1:UsernameToken >

    < / ns1:Security >

    < / env:Header >

    < env:Body >

    < ns2:PersistCDADocumentRequest >

    < ns2:Document / >

    < / ns2:PersistCDADocumentRequest >

    < / env:Body >

    < / env:Envelope >

    I tried 3 separate ways to do it in my Java Web Service Proxy and all 3 have failed, the demand created by my java code does not include the security header and don't include that the < env:Header / > why are my bottom 3 attempts of creation of the grave security header down when they are means documented to supply security headers? Help, please

    Method 1:

    Map < String, Object > requestContext = (cDAPersistenceServicePortType) .getRequestContext ((BindingProvider));

    requestContext.put (BindingProvider.USERNAME_PROPERTY, "weblogic");

    requestContext.put (BindingProvider.PASSWORD_PROPERTY, "password");

    Methos 2:

    Map < String, Object > requestContext = (cDAPersistenceServicePortType) .getRequestContext ((BindingProvider));

    Map < String, List < String > > headers = new HashMap < String, List < String > > ();

    headers.put ("Username", Collections.singletonList ("weblogic"));

    headers.put ("Password", Collections.singletonList ("password"));

    requestContext.put (MessageContext.HTTP_REQUEST_HEADERS, headers);

    Methos 3:

    @Generated ("oracle JDeveloper")

    public static void setPortCredentialProviderList (map < String, Object > requestContext) bird Exception {}

    TODO - provides the required identification information values

    String username = "weblogic";

    String password = "password";

    credList.add (getUNTCredentialProvider (username, password));


    requestContext.put (WSSecurityContext.TRUST_MANAGER, new TrustManager() {}

    {public boolean certificateCallback (X509Certificate [] string, int validateErr)

    Boolean result =

    (string! = null & & chain.length > 0) & & (chain [0] (serverCert) .equals | chain [0] .equals (clientCert));

    return the result;

    Returns true;

    }

    });

    credList.add (getSAMLTrustCredentialProvider ());

    requestContext.put (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credList);

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getUNTCredentialProvider (String username, String password) {}

    new return ClientUNTCredentialProvider (username.getBytes (), password.getBytes ());

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getSAMLTrustCredentialProvider() {}

    return new SAMLTrustCredentialProvider();

    }

    found an answer here - http://stackoverflow.com/questions/5976940/how-to-add-soap-header-in-java

  • Access a secure web service of ADF Mobile Application

    Hello

    We try to create an ADF Mobile application that uses a secure web service located in Oracle EBS (with SOA Suite).

    We use JDeveloper 11 g 11.1.2.4.0

    Initially, create usd a Control(SOAP/REST) Gallery Web Service data and provided the WSDL document. We tried to run on a simulator, but not did not do anything. We have also found a way to provide the user name and password. So we left it there.

    Then we tried to create a Java desktop app to check if it was a problem with our server. In the desktop application, we created a "Web Service Client and Proxy" new gallery followed the steps and used oracle/wss_username_token_client_policy, added the code below to put the username and password and was able to call the service and retrieve data.

    (reqContext.put (BindingProvider.USERNAME_PROPERTY, "DBAKER");

    reqContext.put (BindingProvider.PASSWORD_PROPERTY, "xxxxx");

    So we thought to return to the application the ADF Mobile and creating a "Web Service Client and Proxy" it, but when we built this project, we had the ' annotations are not supported in - source 1.4 "&" generics are not supported in - source 1.4 "errors and found that ADF Mobile does not support beyond Java 1.4" "» (Is that right?)

    We then found the video "to access the secure Services of ADF Mobile Web" by Shay (https://www.youtube.com/watch?v=rk5om3o3Pas) and saw that he was using a login server.

    We wanted to confirm if you use a login server is the right path to access a secure web service of an Oracle ADF Mobile application?

    Are there other ways to do it?

    If we need to create a login server, can provide you links that will put us on the right track in establishing a connection server that can connect to the EBS?

    Thank you.

    The URL must point to a protected page that prompts the user for basic authentication.

    See an example here:

    https://blogs.Oracle.com/Shay/entry/accessing_secure_web_services_from

    As well as the blogs linked at the bottom of this entry.

  • Native web services in Oracle 11 g

    Y at - there no official explanation on how to configure and create native web services to Oracle 11 g and how to properly secure these services? Since Oracle APEX now supports web services use SOAP and REST, it makes sense to have more explanation on creating and securing web services. As know many PL/SQL programmers, it isn't always an easy task to develop web services in jDeveloper to work with databases - with all of these technologies to Add on as jPublisher/Toplink to get the job of things. It is not easy to get the 'How to' guide on creating and securing of the native web services in Oracle 11 g.

    Thank you.

    Andy

    Hello.

    If you are still looking for this answer, you can try this.

    http://www.Oracle-base.com/articles/11g/native-Oracle-XML-DB-Web-services-11gr1.php

    The article has links to documentation and other resources at the bottom.

    See you soon

    Tim...

  • ODSI web service calls

    Hello

    I want to route the ODSI web service calls to different hosts in different environments. In other words, in my development environment, I don't want to call a quick service to "myosb - dev.mycompany.com:7001", but in production, I don't want to call the same service to the "myosb - prod.mycompany.com:8021".

    I see that I can configure a different port for the Physics Department in the ODSI administration console. However, it is not very practical, since the original WSDL must contain information port for all environments from the get-go. If the service is reinstalled in the production, I need to update the wsdl file and redeploy my data space for moving. This can be a problem due to the cycle of deployment of my app be out of sync with the service that I give the floor.

    My question is: is it possible to configure the addresses to host more dynamically? Is it possible to use a variable to control this information a set of services that are located on the same server?

    Thank you!

    The f

    Go to the Console ODSI. Click your data space. Click the physical Source (at the bottom of the left panel).
    Click on "Web Services" and select the Web service you want to change.

    You will see a place where you can specify a 'new value' for the wsdl file. So if you make a copy of your wsdl and the change of the

    to the other server, you could specify that wsdl.

    It seems you could also copy the "service" element (or just the "port" element) in the original wsdl, and substitute in the ODSI console for the appropriate service or port. I've never tried that. I'm not sure if you also need to copy any elements that refer to the service or port.

    Here's the doc http://download.oracle.com/docs/cd/E13162_01/odsi/docs10gr3/admin/server.html#wp1049919

    Here's a thread about doing this via WLST Dataspace imports with WLST : Full Deployment option?


              
                   
              

         


              
                   
              

         

  • Authentication customized using the Web Service construction

    Our requirement is that we want to create an application that uses the web service for authentication. How is it possible. A how to do this will help.
    We create a Web Service with an applicationLogin method that takes the user name and password input and returns true or false. I want to use this web service to authenticate the application connection.

    Hello

    Ok.
    Can you check Home > Application Builder > application 100 > shared components > authentication schemes > change the authentication scheme
    in the select field Invalid Page Session list
    what page 2.
    Check this page 101 a: APP_USER filled when you browse it.

    It seems that you have created a reference to Web Service manually by copy - paste SOAP envelope?
    And region of SOAP response with field response Collection store
    When you create a Web service reference with the location of the WSDL document, you are not asked for the name of the collection.
    Only when you create processes on submit type Web service on page 101, there is an option to use the collection or the item.

    And if you manually create the Web service, it seems that you cannot choose between the collection and the element, you should use the collection that you specified during the creation of reference.

    Anyway, you can use the collection to this approach to page dummy connection since: APP_USER is populated by anyone on page 101.

    I updated most of the page and creates a Web service reference manually the SOAP envelope (from the same Web service)
    and put the second region with the result. Collection is specified in a Web service reference.

    I hope that will solve your problem.

    Kind regards
    Oleg

  • What that means, "Web service is disabled. An administrator can activate using the application server? »

    I am trying to connect to a Web site that I am using for 5 years and more. Now Firefox reports that the certificate is incorrect, and the message "Web service is disabled. An administrator can activate with the server application. ", is given.

    I don't know what to do with this information. Service Web is on other Web sites. What is the "server application? How to take control and connect? I am the administrator.

    Are you able to reproduce this problem with another browser?

  • LabVIEW 2011 Web services

    Hello

    I developed a main application, which is streaming the output array via the shared network for small application variable that streaming even table in XML format as a web service.

    It was running fine when an installer in LabVIEW 2010.

    But now I'm doing an installer in LabVIEW 2011, application running on the remote computer and can see web service deployed in / National Instruments/aws/folder.

    I don't see any any given, & distributed manager says good quality of variable deployment shared.

    Is there any specfic in LabVIEW 2011 changes to an installation program.

    Thank you

    Puneet

    Yes, my request has deployed all the variable and have seen all healthy in Distributed System Manager.

Maybe you are looking for