How to pass paramter to webservice header in mobile application
I've adf mobile application that is built with jdeveloper 11.1.2.4 with the latest ADF mobile extension
I've consumed a webservice that takes Object credential , String employeeId and return salary
the credentials Object consist of (String username , String password) in the soap header
i want to know how to consume this webservice and pass user name , password to the soap header as i'v used this method
List paramNames = new ArrayList();
paramNames.add("user_number");
List paramsValues = new ArrayList();
paramsValues.add("45454");
List paramTypes = new ArrayList();
paramTypes.add(String.class);
try {
result =
(String)AdfmfJavaUtilities.invokeDataControlMethod("MYDC", null, "userInfo", paramNames,paramsValues, null);
} catch (AdfException ae) {
ae.printStackTrace();
throw new AdfException("Please check your network connection", AdfException.ERROR);
} catch (AdfInvocationException aie) {
aie.printStackTrace();
throw new AdfException("Please check your network connection", AdfException.ERROR);
This is the error message appears to me
Header Authentication Failed. Invalid Credentials.
i want to call add to array list a parameter of type object that consist of tow string Paramters username and password and i don't know how to achieve this
Similar Messages
-
How to install mdk in nwds for creating mobile applications
Hi experts,
how to install mdk in nwds for creating mobile applications?
reward points for appropriate answer.
Thank you,
G.V.K.PrasdHI,
MDK is already integrated in NWDS. Separate MDK download is only necessary in case you want to use Eclipse as single DEV environmant without the full blown NWDS orwant to develop for earlier versions like MI7.0.
So very important: separate MDK does only support MI7.0 and earlier versions. If this is your intention, simply download MDK plugin, extract the folder, have a look into the download subfolder and you see the ECLIPSEPLUGIN.ZIP file in there. Unzip this as well and then put the related stuff into the FEATURES and the PLUGINS folder of Eclipse. After restarting Eclipse open the settings and add the buttons to the view and configure the correct settings for your system. This is the normal stuff like for every Eclipse plugin. Not 100% sure if this is not included in NWDS as well already.
If you are not sure about PLUGINS and FEATURES stuff and the configuration - the MDK itself has a great documentation that shows the steps you need to follow.
Regards,
Oliver -
How to pass values to dashboard prompts from external applications
Any idea is well appreciated.
How can I pass values of dashboard prompts from external applications to the dashboard prompts so that the dashboard is prefiltered based on values sent by external applications.
Thanks in Advance!
KrisKris,
i am able to change the session variable and able to call the dashboard from external app, but i identified prompt value not changing. but Finally i am able to found a workaround for you.
Use the following URL and it explained here
http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
PortalPath is your dashboard location. /shared/abcd is folder where i saved dashboards. dash1 is my dashboard name.
internally this dashboard includes many reports that uses the session variable. after doing above this i am able to update the session variable to the value i have given in URL, DSN=value.
You may observer here that calls the dashboard and passes the value but its not updating the prompt value. so workaround for this is edit your prompt,
change the Default to - SQL Results and place the sql
SELECT CASE WHEN 1=0 THEN Markets.Region ELSE VALUEOF(NQ_SESSION.DSN) END saw_0 FROM Paint
again here Market.Region is column from presentation layer and Paint is subject area. After doing this step, your prompt always shows value in the session varible as default.
Now include reports and dashboard prompt in the dashboard and run this url from external applicaitons.
http://localhost:9704/analytics/saw.dll?Dashboard&nquser=Administrator&nqpassword=Administrator&PortalPath=/shared/abcd/_portal/dash1&Options=rmf&DSN=madan
it worked for me and blog this soon. if it works for you mark the question as answered and mark my replies as correct.
thanks
- Madan -
How to implememnt sync capabulity in Oracle ADF mobile Application?
Hi All,
I am trying to implement once ADF mobile application which will capable of bout offline and online synchronization.
right now I am crated direct online accessible application and offline accessible application.
my use-case is something like:when I login into application I need to full data from webservices and inserted into local DB. so that if network is not available I can work on local DB.
later point once I have network I need to capable of update(Sync) to actual DB.
I have tried one sample download from net and trying to execute but its not able to full data.
can you please guide me any other configurations need to do for achieve this use-case. or end to end sample for the same.
Regards
ShankarRead Steven Davelaar's article http://www.ateam-oracle.com/going-mobile-with-adf-implementing-data-caching-and-syncing-for-working-offline/
Timo -
How to pass paramter JHeadstart jsp using setCurrentRowWithKeyValue
How i can use setCurrentRowWithKeyValue or other ADF function to pass one value to JSP / JHS page and Jheadstart give me rows matching this parameter value passed to this page
JHS use setCurrentRowWithKey but now i need to pass a value not a rowkey
for example an deptno to emp.jsp page
<a href="Emp.do?event=setCurrentRowWithKeyValue&deptno=10/>FetchValues</a>
this is possible ? there is an easy way to do this ?
tnxHi sandra tnx for response my question is how to be in capacity of access any JSP page on my JHS Proyect directly using programmatic links depending of some situations.
There are some master pages that have details pages for example on simple oe schema
Customer -> Orders Page -> Order Items
How from Customer Page i can directly call and Order Items Page and pass parameters?
if i use native JHS navigation functionality when i click details on Customer page JHS pass parameter and save some info on session depending of row key selected and show Orders Page
There is a way Having a link on Customer page call a programmatic event onSaveSomeParam save param of Order Number and then call Orders Items page ?
I also try using native search functionality of JHS
a href="orditem.do?queryOperatorNonString=is&queryOperatorString=startsWith&event=quickSearch&eventValue=true&searchAttribute=Id&searchText=<c:out value="${orditems.Id}"/>">Order Items
off course it send me an missing IN OUT parameter because JHS is waiting for
Orders Page param to be set
If u have some sample code i really appreciate
tnx....
Mensaje editado por:
mr2k -
How to pass paramter to batch program (.bat) in java
Hi,
I am not able to pass the parameter to .bat file in java. Can anyone pls help me with it.
I need to pass 2409842 in Watermark.bat
import java.io.*;
import java.io.File.*;
public class TryTry
public static void main(String[] args)
Process proc=null;
try
String[] commands = {"C:
PDFToolsTemp
Watermark.bat 2409842"};
proc = Runtime.getRuntime().exec(commands);
catch(Exception e)
System.out.println("Error is..." + e.getLocalizedMessage());
Edited by: Shiv Khullar on Sep 16, 2010 10:56 PMHi
You can create a method in the Business Object and use it in the Workflow through Task. By ABAP Coding you can achieve your requirement. Write your code in the Method of Business Object you are using in Wflow Template. You need to do the binding from Wflow Container to Task and then to method and viceversa in order to get the value in structure format. This will surely help you.
<b>Please reward points if useful</b> -
How to pass base64Binary to Webservice?
Hi,
I Would like to pass base64 converted or NSData to Web Service.
NSString *soapMsg = [NSString stringWithFormat:@"<?xml version=\"1.0\" encoding=\"utf-8\"?>\
<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">\
<soap12:Body>\
<InsertAttachmentint xmlns=\"http://tempuri.org/\">\
<Filename>string</Filename>\
<FileType>string</FileType>\
<FileContentint>base64Binary</FileContentint>\
</InsertAttachmentint>\
</soap12:Body>\
</soap12:Envelope>"];
In the above soap We use "%@" in the Place of String, What about base64Binary?You need to post your question in the Developer forums. This is a forum for iPhone Users, not developers specifically.
-
How to pass the values from the Wb Dynpro Application to the SAP Backend ?
Hi All,
Good morning..,
I have scenario like:
I want to pass the values from the web dynpro appication to the SAP Back end R/3 Table. IN backend the RFC is writtn to accept the structure input from the Webdynpro.
Upto know I imported the corresponding RFC and maaped to the View.
How to proceed with the coding to save the data...
PLease suggest...
Regards and Thanks in Advance,
CSPHi Pradeep
Steps:
1. First create an instance for bapi and bind the instance to the bapi node.
Z<bapi name> zb=new Z<bapi name>();
wdContext.nodeZ<bapi name>. bind(zb);
2. Then if u have the import parameter u have to set them by using
The instance of the above bapi.
Zb.set<import parameters>;
3. If the bapi has a table parameters then the structure for the table parameters will also be imported
In the model class.
4. Set the table parameters by creating the instance for that structure and using this instance set it.
Z<Struct>itm tab=new Z<Struct>();
Tab.set<table parameters>
5. Then add the structure instance to the bapi instance.
Zb.add(Tab);
6. Then Execute the bapi after setting the import parameters.
7. If there is any export parameters, then get the values after execution.
Look at this thread for codes
Re: RFC call on click of button
Regards,
Arun -
How to pass Objects from Java App to JavaFX Application
Hello,
New to the JavaFX. I have a Java Swing Application. I am trying to use the TreeViewer in JavaFX since it seems to be a bit better to use and less confusing.
Any help is appreciated.
Thanks
I have my Java app calling my treeviewer JavaFX as
-- Java Application --
public class EPMFrame extends JFrame {
Customer _custObj
private void categoryAction(ActionEvent e) // method called by Toolbar
ocsCategoryViewer ocsFX; //javaFX treeviewer
ocsFX = new ocsCategoryViewer(); // need to pass in the Customer Object to this Not seeing how to do it.
// tried ocsFX = new ocsCategoryViewer(_custObj) ; nothing happened even when set this as a string with a value
public class ocsCategoryViewer extends Application {
String _customer;
@Override
public void start(Stage primaryStage) {
TreeView <String> ocsTree;
TreeItem <String> root , subcat;
TreeItem <String> root = new TreeItem <String> ("/");
root.setExpanded(true);
ocsTree = new TreeView <String> (root);
buildTree(); // this uses the Customer Object.
StackPane stkp_root = new StackPane();
stkp_root.getChildren().add(btn);
stkp_root.getChildren().add(ocsTree);
Scene scene = new Scene(stkp_root, 300, 250);
primaryStage.setTitle("Tree Category Viewer");
primaryStage.setScene(scene);
primaryStage.show();
public static void main(String[] args) {
_customer = args[0]; // temporarily trying to pass in string.
launch(args);JavaFX and Swing integration is documented by Oracle - make sure you understand that before doing further development.
What are you really trying to do? The answer to your question depends on the approach you are taking (which I can't really work out from your question). You will be doing one of:
1. Run your Swing application and your JavaFX application as different processes and communicate between them.
This is the case if you have both a Swing application with a main which you launch (e.g. java MySwingApp) and JavaFX application which extends application which you launch independently (e.g. java MyJavaFXApp).
You will need to do something like open a client/server network socket between the applications and send the data between them.
2. Run a Swing application with embedded JavaFX components.
So you just run java MySwingApp.
You use a JFXPanel, which is "a component to embed JavaFX content into Swing applications."
3. Run a Java application with embedded Swing components.
So you just run java MyJavaFXApp.
You use a SwingNode, which is "used to embed a Swing content into a JavaFX application".
My recommendation is:
a. Don't use approach number one and have separate apps written in Swing and Java - that would be pretty complicated and unwarranted for almost all applications.
b. Don't mix the two toolkits unless you really need to. An example of a real need is that you have a huge swing app based upon the NetBeans platform and you want to embed a couple of JavaFX graphs in there. But if your application is only pretty small (e.g., it took less than a month to write), just choose one toolkit or the other and implement your application entirely in that toolkit. If your entire application is in Swing and you are just using JavaFX because you think its TreeView is easier to program, don't do that; either learn how to use Swing's tree control and use that or rewrite your entire application in JavaFX. Reasons for my suggestion are listed here: JavaFX Tip 9: Do Not Mix Swing / JavaFX
c. If you do need to mix the two toolkits, the answer of which approach to use will be obvious. If you have a huge Swing app and want to embed one or two JavaFX components in it, then use JFXPanel. If you have a huge JavaFX app and want to embed one or two Swing components in it, use a SwingNode. Once you do start mixing the two toolkits be very careful about thread processing, which you are almost certain screw up at least during development, no matter how an experienced a developer you are. Also sharing the data between the Swing and JavaFX components will be trivial as you are now running everything in the same application within the virtual machine and it is all just Java so you can just pass data around as parameters to constructors and method calls, the same way you usually do in a Java program, you can even use static classes and data references to share data but usually a dependency injection framework is better if you are going to do that - personally I'd just stick to simply passing data through method calls. -
How to invoke a webservice from ADF Mobile application.
Hi,
I have developed a webservice from a PL/SQL Package in jdeveloper 11.1.1.5.0 by following below link
http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm#p.
it went on smooth till i reach " Deploying and Testing the Web Service " section. i could not find the Resources folder in which i have webservices.deploy file in my Project folder as shown in the example
please let me know how to get this and i want that webservice to be deployed on to weblogic server other than OC4J.
Kindly someone help me in this regards.
Thanks in advance.Hi,
Iam not that much familliar with using webmethods Integration server. But generally wen you are using a tool to Create webservices it will generate WSDL(Webservice Description file) and Client access classes. The Client access class contains the code for accessing the webservice. You can develop Clients by importing this class. The other way is you can use the WSDL to connect to the Webservice. WSDL file includes the End point URL (the location where to connect to access the webservice). By connecting to this URL you can access the webservice.
Few sites which help you in getting more info on Webservices are:
http://www.w3.org/2002/ws/
http://www-106.ibm.com/developerworks/webservices/
http://java.sun.com/webservices/
You can mail me at [email protected]
Regards
Mahen -
How to get back a discarded changelist in mobile application studio
Hi!
Like i've written in the subject ... Is it possible (how?) to get back a discarded changelist?
Or... If not... to get back the content of the changelist?
I'm using sap crm 4.0 (mobile sales).
Thanks for any hint or help!
Cheers,
IngoHi,
the table changelist doesn't contain the changes directly but they are included in several tables which have a reference to the CL table. So it would be very tricky to get all these objects.
As I already mentioned directly the best way would be to restore a backup of the ARS_DB (if existing...) additionally to the current one, create another ODBC source and open MAS with this DB. Then check all the included objects, copy the changed code to notepad, reopen with the current ARS_DB and redo the changes in a new CL.
Regards,
Wolfhard -
How to create a exit buttom in my mobile application in html5
Please i want to create a exit button for my android aplication on dreamweaver my app is in html5 i need the code for create this
Hi pofpofines45,
Can you check out this discussion in the time that the other experts get back to you?
http://stackoverflow.com/questions/5023954/javascript-ok-exit-button
Thanks,
Preran -
How to agree the term and condition for mobile application
i would like to click agree with iphone new term and condition for mobile application, but couldn fint the button to click agree....
Hi
You need it because it's possible to have a complex pricing procedure, and you can't do it with a simple select on a table. Think that you can have pricing requirements, formulas (ie: VOFM) and so on in your pricing procedure (tcode V/08).
I hope this helps you
Regards
Eduardo -
Hello friends,
I am displaying values ie, amounts in the screen using write statements here i have to display the
sign left side , i am using Function module 'CLOI_PUT_SIGN_IN_FRONT'
Does anybody help me - How to pass paramter into this Function module.
Regards,
PhaneendraIf you look to the code of the function module, you can see it is condensing the value.
I would make a copy of this function, and remove the condense lines to give the result you want.
data: text1(1) type c.
search value for '-'.
if sy-subrc = 0 and sy-fdpos <> 0.
split value at '-' into value text1.
condense value.
concatenate '-' value into value.
else.
condense value.
endif. -
Passing Parameter through SOAP Header in ODIInvokeWebService
How to pass parameters in SOAP Header in ODIInvokeWebService and not just in SOAP Body?
Background:
One of our web service provider expects certain parameters set in SOAP Header. Currently, ODIInvokeWebService allows to set parameters through SOAP (Request) Body and not through SOAP Header.
How can we set and send parameters in SOAP Header when using ODIInvokeWebService. Can we set this in a request file. Any workaround?
BTW is this a limitation in the tool. If yes, I am looking for a work around. I can setup a proxy service/servlet and re-route the request to the provider but I would like to know if there is a work that can be done easily through ODIInvokeWebService before I look for other options.
Appreciate your help.
Thank you.
-MuthuHi Muthu ,
This is not supported by the ODIInvokeWS Tool.
There are some ER logged against this and may be it will get implemented in ODI 11g
Sutirtha
Maybe you are looking for
-
My ringer is no longer working for text and email notifications. Only working for phone calls. I have gone through all the settings to see where something is off. Not finding anything. I have tried changing the tone and it just vibrates on everything
-
Hi all, I'm new to CRM and have been working in ABAP but have only basic knowledge of JAVA. Right now, I have to convert pricing routine in R3 to java in CRM VMC AP 7.0. I have read OSS note about this ( the one with attached PDF on how to implement)
-
When I try to save my home pages / tabs, I can't, because this option is greyed out. I even uninstalled FF with Revo Uninstaller completely, reinstalled with no new plugins or extensions, and it remains greyed out. The only thing that I can do, is pi
-
Code Inspector with 'SELECT * FROM'
Hello all, I want to tell my code inspector, that it shall find Select * from. I put it in the ABAP STATEMENT PATTERNS but now the code inspector finds all selects for it interpretates * as wildcard. What can I do ? Please help Simone
-
SELECT ROWNUM and ORDEY BY DATE
I want to select the most recent row from a table where one column is null and have the following query. 'select * from table_name where rownum < 2 and column1 is null order by date_stamp desc' Date_stamp column holds the system date when each row wa