ADF Mobile | using secure web services


Hi all

I'm pretty new to ADF Mobile, I use JDev 11.1.2.4.

In my Mobile application I want to use the secure web service.

Here's what I do:

1. creation of a data control based on the WSDL binding.

2. get the web service methods in the data control.

3. during the race, I'm getting that error "oracle.j2ee.ws.client.jaxws.JRFSOAPFaultException: Client from server SOAP fault: Missing < wsse: Security > in the SOAP header.

When trying to run the WSDL binding in SOAP UI, I need set request username and passwordproperties, then only I will be able to invoke this web service.

Here, my question is where can I set these properties for the data control to the web service ?

Please suggest.

Thank you

Vieu

Hi Shay,

Thank you very much for the reply, I'm able to resolve the problem with the approach mentioned user guide.

I forgot to set it up for the first time: ADF Mobile allows you to specify a custom provider class in your DataControls.dcx file. This custom class extends oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider . You can use it to specify an implementation of the SoapHeader[] getAdditionalSoapHeaders() method

Example 9-1 shows how to extend the SOAPProvider and create a custom header has shown in example 9-2

package provider.ebs.soap;

Import oracle.adfinternal.model.adapter.webservice.provider.soap.SOAPProvider;

Import oracle.adfinternal.model.adapter.webservice.provider.soap.SoapHeader;

SerializableAttribute public class EBSSOAPProvider extends SOAPProvider {}

SoapHeader public getAdditionalSoapHeaders() {}]

SoapHeader header [] = SoapHeader News [2];

SoapHeader token = null;

SoapHeader user = null;

SoapHeader pass = null;

header [0] = new SoapHeader ("http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/",

"SOAHeader");

header [0] .addChild (new SoapHeader)

"http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

"Responsibility."

'SYSTEM_ADMINISTRATOR'));

header [0] .addChild (new SoapHeader)

"http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

"RespApplication,"

'SYSADMIN'));

header [0] .addChild (new SoapHeader)

"http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

"SecurityGroup."

'STANDARD'));

header [0] .addChild (new SoapHeader)

"http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

"NLSLanguage,"

'AMERICAN'));

header [0] .addChild (new SoapHeader)

"http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_user_pkg/,"

"Org_Id."

"0"));

header [1] = (new) SoapHeader

"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

'Security');

Token = new (SoapHeader

"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

"UsernameToken");

User = new (SoapHeader

"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

"Username."

"sysadmin");

pass = new (SoapHeader

"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd,"

"Password."

"sysadmin");

Header [1]. AddChild (Token);

token.addChild (user);

token.addChild (pass);

Returns the header;

}

}

Kind regards

Vieira

Tags: Java

Similar Questions

  • ADF Mobile access protected web service with the user name and password

    With Jdev 11.1.2.4 (with the extension of the ADF Mobile) I am creating a data control that uses a SOAP web service. The web service is not protected by a policy of wss, but its point of endpoint URL is only protected by simple HTTP authentication (internal weblogic server is not accessible public.) We use an Apache server that is configured with a location that is a simple proxypass on url of the web service endpoint weblogic. This apache location apply simple HTTP authorization). I can invoke successfully the methods with parser HTTP by simply adding to the request HTTP header "authorization: xxxxxxxxxxxxxxxxxx base =" (where xxx = user name and encrypted password).

    In the mobile application of ADF, I used the DataControls.dcx-> window to connect to the Web Service change and provided the username and password to the URL of the endpoint. The problem is that after the deployment and execution of this application on the emulator (or the device itself), I get no data by the web service since with the HTTP 401 error http server responses. It seems that that the credentials are not deployed to the device, so while the application is running can not find them.

    I searched a lot and found a similar article (quite old) in the RTO by Frank Nimphius here access_protected_web_services_from_adf.htm

    Is there a way to do this, or if I'm missing the entire image?

    Thank you very much.

    Christos

    Check out blog Shay https://blogs.oracle.com/shay/entry/accessing_secure_web_services_from

    or Andrejus http://andrejusb.blogspot.de/2012/11/adf-mobile-secured-web-service-access.html

    Timo

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

  • Error downloading pdf application ADF using the Web Service &amp; BI Publisher

    Hello

    I work with BI Publisher 11 g and JDeveloper 11.1.1.7. I get the error when clicking on the below download link.

    I tried the link below and to generate the report in my app, but after clicking view pdf button throw error.

    Antonis Antoniou blog: integration of Web Services in your ADF Application Part 2


    Basically, I want to download the PDF using the Web Service & BI Publisher pursuant to the ADF.

    Someone has encountered this problem before? You have all the solutions / suggestion?


    Thank you

    Swathi

    Have you tried to get the catalog via the service?

    As I said before, there you have catalog you to see you making the user you are using to connect has access.

    Have you tried to give the full url for the report? check out the blog I posted before where you see how to specify the full url.

    Timo

  • Integration with the secure web service IS deployed on EBS

    Hello experts,

    I have a REST webservice deployed to an Instance of the EBS. I try to call the web service using a mobile application in the ADF. However, the web service is secure and requires security settings to be sent in the request header.

    Anyone can recall or explain how I can add a custom header to the object of the application for the REST web service? Any help will be appreciated.

    Thank you

    Abhishek

    Hi Abhishek,

    You can do the following:

    String theUsername = "abc";

    String thePassword = "pass";

    String userPassword = theUsername + ': ' + thePassword.

    String encoding = new sun.misc.BASE64Encoder () .encode (userPassword.getBytes ());

    restServiceAdapter.addRequestProperty ("Authorization", "Basic" + coding);

    If you use Webservice DataControl, then automatically the connection information in the login form is injected into the webservice framework.

    Kind regards

    Deepak

  • BPM 11 g: call a secure web service

    Hi all

    I need to invoke a web service secured a BPM process. I do the following

    1. to add a reference, I added the customer strategy security "oracle/wss_username_token_client_policy' using option set up political WS on the reference. I also added oracle/log_policy to see SOAP requests being generated.

    2. I added the below properties in the composite.xml slot of the reference binding.ws

    < name = "oracle.webservices.auth.username property" type = "xs: String" "

    much = 'false' override = "may" > SomeUserName < / property >

    < name = "oracle.webservices.auth.password property" type = "xs: String" "

    Override = 'may' many 'false' = > SomePassword < / property >

    But I get an exception during the invocation

    MustUnderstand headers: [{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd} Security] are not included

    Also the SOAP request sent to the service of reference I think newspapers don't have the password or a usernametoken anywhere. What else must be configured or set to invoke the secure web service.

    Thank you

    Siva Renon

    Hi all

    I got it working to create a new key - basic.credentials - in oracle.wsm.security map the credentials of the domain. You can check this link for the steps.

    Thank you

    Siva Renon

  • Creating form/table layout dynamically using different web services

    Hello

    I have the following requirement:
    We have a web service for each data center device control settings for this device. To update the settings we provide an ADF UI or the form layout table layout by using the web service.
    The number of servers being, it is not possible to create a different page for each web service.
    Thus, the requirement is to create a user interface where the user can give the location of the wsdl file and choose if he wants to see details in a formatting or the table layout and click on the button to view the details,
    Then, we need to read the web service and create control of data bindings, page links (in the binding container) and view the details on the user interface.

    Please let me know if this is possible or not.
    We create data programmatically control? We can add data connections to the container of link programmatically?
    We can make the data on the user interface bindings dynamically? Is there a public API is to create links by programming?

    or if control data and data links option is not available then is there any other alternative approach for it?

    Please help me in this. The pointers in this regard could greatly help me.

    Thank you
    Stephanie

    Hello

    assuming that the information that you provide to the servers are identical, you use a POJO that accesses the WSDL file by using a proxy client. Then, you can expose a common set of attributes on the POJO and list and generate a JavaBEan data control that you can build forms and lists. POJO basically will use you to transform the different web services in a format of individual business service.

    Frank

  • Secure Web Service call

    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - production
    PL/SQL Release 10.2.0.2.0 - Production

    Hello
    Is it possible to contact a secure Web service (ws-security) with pl/sql code?
    I can communicate with a https without problem, but I don't see how I can do for the ws-security header.

    Thanks in advance.

    Unfortunately, WS-Security is not supported with the Oracle DBWS utility legend, right now. However, we have a very high improvement gravity request filed for this internallt - so it's probably in one of the upcoming releases soon.

    In the meantime, you may want to consider going back to using UTL_HTTP for it where you can create your own custom SOAP (WS-Security headers in this case) headers-, but keep in mind that UTL_HTTP can be used with types only very basic of Web Services with simple data types, methods, etc. Another and a better solution would be to have a 'bridge' Web Service (via the SSL protocol, perhaps) who speaks to your main Web Service using WS-Security. This WS bridge can then be invoked by your database using the utility DBWS legend.

    HTH,
    Yogesh

  • How to use a Web Service in an Application.

    Hello

    I need to create a Web service and a single application.
    I already did with the Web service, which is a method that get two studentId strings(name,lastname) and back if exist it, false otherwise. (works perfectly)
    The problem is now being implemented in the application that needs to use the Web Service.
    The application will have to electro-regulateurs.

    Name:
    First name:
    Submit (Button)

    No idea how to begin to do?
    Really, I'd appreciate any help!

    Thank you very much
    Ed

    PS. I use 10.1.3.1.0 JDeveloper and Oracle SOA Suite 10.1.3.1.0.

    Make a right click you Java proxy class and click on 'create an ADF data control' then you can drag and drop the method in the data control palette in your page and gout as ADF setting form - it will snap into place for you.

  • How to use the web service to update the data?

    Hi team,

    Need help in establishing a procedure for updating data using the web service, in the first instance, I think that it's the same reading webservice but I will produce an error:

    29273 00000 - "the HTTP request failed.

    * Cause: The UTL_HTTP package cannot run the HTTP request.

    * Action: Use get_detailed_sqlerrm to check the detailed error message.

    Correct the error and restart the HTTP request.

    using this tag soap_request.

    < ns1:Request >

    < ns1:header >

    < ns1:InterfaceName > OSMMVNECreateOrder < / ns1:InterfaceName >

    < ns1:InterfaceId > OSM - XXX < / ns1:InterfaceId >

    < ns1:CorrelationId > TEST-06262015 < / ns1:CorrelationId >

    < / ns1:header >

    < ns1:Mvno > MTI < / ns1:Mvno >

    < ns1:orderId > < / ns1:orderId >

    < ns1:orderType > CHANGE_STATUS < / ns1:orderType >

    < ns1:orderDetails >

    < ns1:subscriberId > 9469273 < / ns1:subscriberId >

    < ns1:newStatusId > 2 < / ns1:newStatusId >

    < / ns1:orderDetails >

    < / ns1:Request >

    the < ns1:subscriberId > 9469273 < / ns1:subscriberId > the Subscriber must search and

    < ns1:newStatusId > 2 < / ns1:newStatusId > will replace the current state.



    any suggestion on how to do it?



    Best regards

    Nelz Ki

    There is no difference between calling a web service to write data, against the appellant for reading data. SOAP is SOAP. He cares not.

    Example to interact with a web service is in Re: PLSQL webservice call

    Regarding your error - stack display Tower full of error to see what said the trace of the error. The data you've posted unfortunately no sense to isolate the error.

  • Change the password using API web services?

    I can create and update users using Adobe Connect API web services, but how do I change the password of a user?

    I use the API "principal-update" that has a setting of password, but according to the documentation, it is only used for new users... not the users.

    So exactly how to change user password using the web services?

    Hello

    There is an API that can be used to change the password: user-update - pwd

    Format of the API :

     

    http://server_name/API/XML?action=user-update-pwd&user-ID=integer&password-old=string&pass = word string - string verify password = & session = BreezeSeesionCookieValue.


    Hope this helps!

    Thank you

    Nikhil

  • 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

  • Using a web services forms

    Dear all,

    I used the following tutorial to use a web service forms:
    http://www.Oracle.com/technology/OBE/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm
    Unfortunately I JDev 10 and can not recover how to create the jar (the tutorial uses JDev 9).

    Can someone help me?

    Thank you and best regards,
    Sébastien

    I don't think that there is a difference between JDeveloper 9i and 10g to create a JAR file.

    File-> New-> General-> profiles-> JAR file deployment

    François

  • problem in the use of Web service in my App ADF

    Hi, OTN

    I used this tutorial http://www.oracle.com/technetwork/testcontent/wsdc-085537.html to have a webservice in my ADF Application that returns as weather application.i used Jdeveloper 11 g 11.1.1.3.0. by following this tutorial that I could get the weather Info.but the first time I run my page or the first time I press the button getWeatherBy name after writing to the square there is an error message as follows

    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: error occurred when get webservices record---> System.Data.SqlClient.SqlException: procedure or function 'GetLatByPlace' expects the parameter '@ZipcodeName', which was not provided. at System.Data.SqlClient.SqlConnection.OnError (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError (SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning () at System.Data.SqlClient.TdsParser.Run (RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData () at System.Data.SqlClient.SqlDataReader.get_MetaData () at System.Data.SqlClient.SqlCommand.FinishExecuteReader (SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds (CommandBehavior cmdBehavior, Boolean async, runBehavior RunBehavior, Boolean returnStream) to System.Data.SqlClient.SqlCommand.RunExecuteReader (cmdBehavior CommandBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader (RunBehavior runBehavior, CommandBehavior cmdBehavior, Boolean returnStream, method String) at System.Data.SqlClient.SqlCommand.ExecuteReader (CommandBehavior behavior, method String) at System.Data.SqlClient.SqlCommand.ExecuteReader (CommandBehavior behavior) at WeatherService.WeatherForecast.GetLatLonDataByPlaceName (String PlaceName) - end of the stack trace of inner exception - to WeatherService.WeatherForecast.GetLatLonDataByPlaceName (String PlaceName) at WeatherService.WeatherForecast.GetWeatherByPlaceName (String PlaceName) - end of inner exception stack trac

    When I press ok for this error Message.I can write the name of the place and had Info weather, so how can we stop this error messages that appear on each first time user call the weather page?

    Note: in the tutorial, I noticed that he has explained that there is an Error Message will appear (on the error window click OK.)

    Published by: Miar on 13 October 2010 06:03

    The scenario of the tutorial indeed translates this strange behavior.

    Note, however, that if you create a new page where you first drag the GetWeatherByZipCodeResults as a form, then drag the WeatherData in the form of a table and set the condition of all executables refresh to #{bindings. {ZipCode.inputValue not null}-page behaves as expected and only communicates with the Web service that there is a value in place.

  • Find / create / update using the Web service data command.

    Hello

    I'm working on PS2 (JDEV 11.1.1.3). One of the requirements is to build Web services from ADF pages. Initially the user connection is looking for items. The results would then be displayed as a read-only table. The user will select line clicks on the button "edit / update" then I need see the second page with the details of record selected as a form. Then he can add / edit the page. The same page is also used to 'create '. I am facing issue while the user selects the record in the table Details the research and passing the Id on the second page of the update of the. Can someone help / guide me.

    I went through the blog of Shay. http://blogs.Oracle.com/Shay/2010/05/updateinsert_with_adf_web_serv.html
    But it's different compared to my needs.

    Enjoy your entries.

    Thank you
    Mahesh

    I don't see exactly how have more fields influence the approach.
    If you are looking for a shortcut, you can try to drag the operation of fusion, as a form of parameter ADF - this will create all the fields for you. And then you will need to go in and change their value to point to the pageFlowScope object.

Maybe you are looking for

  • How to connect to ac 802.11

    Don't know if this is a stupid question, but how do I connect my 5 k Mac and my 6s to 802.11 AC time capsule? Thanks for any response.

  • Wireless network does not work on Satellite A305-S6898

    Hi all I just wanted to know why my wireless device doesn't work anymore. There for awhile he last internet connection detection.Would it be a malfunction of the pilot or something else? Thanks in advance for any assistance.

  • 2 GB of RAM does not work with my Satellite A100-528

    Hello I bought 2 x 1 GB RAM (667 Mhz). When I insert it inside, my computer does not start. Computer a newer BIOS. With 1 GB (667 MHz) & 256 MB (553 MHz), we do work perfectly.Can you help me? Michal PS Sorry for my bad English.

  • A PC can operate effectively WITHOUT the need for anti-virus software?

    Come to think if the first PC I've had and the worms Blaster threatened everyone... I do not just shoot when to install my anti-virus software, I need to close my Windows Firewall... 2 + 2 = and Yes, when I did I got the virus of shit... If only I ha

  • V/s internal external memory

    As the v/s R42 R40, I saw sometimes camcorders come in a 8 GB and a 32 GB of the same version model and the price difference is a good $100 - $ 150. You could buy a 32 GB SD card for a lot less than that. So is there a disadvantage such as speed or r