How to pass Aunthentication details to make a Webservice authorised?
HI,
I am passing authentication details in a webservice through SOAP UI by giving the username and password in the given place.The webservice is giving me response.
But when i am passing the USERname and password through a my proxy service using a Replace activity,the webservice is not gettimg accessed giving me unauthorised error.
What to do in this case?
Yor Suggestion is awaited.
If I understand your situation correctly: calling the external webservice with SOAPui works, calling it through the OSB fails.
Are you referring to Username tokens? Which are be located in your WS-Security header (which you can access through $header).
Or are you sending a HTTP username / password ? In that case you should use a service account.
Similar Messages
-
How to pass serialized session/usertoken to BO webservice from xcelsius?
I wonder how to pass serialized session/usertoken to BO webservice from xcelsius. Could anyone help me how to pass the serialized session/user token to BO web service from Xcelsius?
Xcelsius is working fine when i use the username/password. But i would like to pass serialized session/usertoken from jsp file to Xcelsius as flash variable , then i will use this variable to get the data from webservice.
Is that possible to send serialized session/usertoken using soap header?
Thanks in advance...Hi Micheal
Thank you for the reply. I have already created the CELogonToken Flash Variable and i am able get the logon token and map to the flash variable.
Now i would like to pass the same to biws as parameter. But the service has only 2 parameters as username and password.
Is there a way that i can create my custom parameters(CELogonToken/CESerializedSession) in BIWS service? -
How to pass a String and make it as Color Object
I need to set a background color dynamically...but the value that i pass is in string format. How can i convert the string into Color format so that i can use the method setBackground(Color.blue) method. How to pass the string into the 'Color.blue' ?
Let param="red"
Class cls = Class.forName("java.awt.Color");
java.lang.reflect.Field fld = cls.getDeclaredField(param);
Color clr = (Color)fld.get(null);
You can use this 'clr' variable as you wish.
null -
How to pass GET parameters from BPEL to webservice?
Hi,
How can I pass GET parameters to webservice from BPEL. For example if a webservice expects to get 2 parameters as GET parameters like the following URL:
http://xxx.xxx.xxx.xxx/some-web-service?parama=abc¶mb=123
How can I pass parama and paramb to the webservice call?
Thanks,
RonenHello Ronen,
Im assuming that you're using SOA Suite 11g. The developer guide describes the following: http://docs.oracle.com/cd/E29505_01/dev.1111/e10224/sca_bindingcomps.htm#CHDEEGDC
And the following blogpost explains in detail how to implement https://blogs.oracle.com/reynolds/entry/oracle_http_adapter
Good luck!
Melvin -
How to Pass printer details dynamically for bursting query in BI Publisher
Hi All,
We are splitting our invoice details by bursting option but we want to print the invoices based on printer selection of the user.
can any one explain me how can we pass the printer details dynamically for bursting query in BI publisher.
Thanks & Regards,
Manohar ReddyHi Saurabh,
we can do it, ultimately u will end of changing the product code, which wont be supported :) -
How to pass complex data type structure to WebService under mx:request?
From my Flex client, I need to pass data to a web service whose operation expects a complex data type with multiple layers of nesting structure. How can I populate the <mx:request> for the <mx:WebServices>? Any examples?
A couple of approaches come to my mind:
(1) construct ActionScript object to mimic the datatype expected by web service, and pass an instance of the AS object to mx:request; or
(2) construct an entire SOAP request body in XML and pass it into mx:request.
Does any of these (or both) work? If both work, which is the better way?
Thanks in advance for your input!
-WilliamThanks a lot for the rapid response, Marcel.
For further details on the maping between WS complexType structure and AS object, is there any specific requirement? such as naming, binding, structure of nesting, etc.
William -
Master-Detail Form (How to pass an item value in Master to Detail field
I have a Master-Detail form. When adding a new record in the Detail section, I expect the primary key in the master record will copy down to the detail record. But, it is not doing that. Does anyone know how to pass the master primary key down to the detail record field.
By the way, query works fine. It knows the master-detail relationship. It is just when creating a new detail record, the key not pass down from the master record.
thanks - Pattyhi,you can do it by:in detail form's foreign key field,set it's default value as master primary key ,example master page p1,primary key as p1_master,detail form p2,foreign key p2_foreign, set p2_foreign key 's default value &p1_master.
Message was edited by:
lixinzhu -
ADF : How to pass a variable from one frame to another frame ?
Hi,
I have an html page divided into 3 frames, all inside a frameset. Each frame are linked to a specific .jsf page (src attribute). When I list a list thanks to a ADF datatable in ONE frame, each row has a "show more" button. When I click this button I succeeded to print row detail inside the same frame thanks to the processScope ADF's native variable. The problem is that I want to display the row detail in another frame, clicking from this current frame. So for this I need to reload the other frame which display the content of the processScope variable.
For this I use the javascript code :
=> parent.frames['bottomRight'].location.reload()
Just before refreshing, I put the variable in the processScope of course like it appears in the backing bean :
FacesContext context = FacesContext.getCurrentInstance();
CLPRMBuilding building = (CLPRMBuilding)
context.getApplication().getVariableResolver().resolveVariable(context, "building");
if (building == null)
return "error";
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.getProcessScope().put("buildingDetail", building);
Next, when the user click on the button "show more" a binding CoreCommandButton component is done. And the accessor's code is executed :
public void setShowMoreCommandButton(CoreCommandButton showMoreCommandButton) {
this.showMoreCommandButton = showMoreCommandButton;
showMoreCommandButton.setOnclick("parent.frames['bottomRight'].location.reload()");
And so the other frame is reloaded ! But the "buildingDetail" variable seems not to be present in the processScope because in the jsf page displayed by the other frame no content is printed, like if the variable were not initialized. How to do then ? How to pass the buildingDetail variable to the other frame which I need to reload to refresh it's content ?elaine_g wrote:
I am wondering why does (r.a) give an error outside the method? What's the reason it only works when used inside the (b/r.a) maths function? This is illegal syntax:
class B {
int b;
A r = new A();
r.a; //syntax error
}Why? Class definition restricts what you can define within a class to a few things:
class X {
Y y = new Y(); //defining a field -- okay
public X() { //defining a constructor -- okay
void f() { //defining a method -- okay
}... and a few other things, but you can't just write "r.a" there. It also makes no sense -- that expression by itself just accesses a field and does nothing with it -- why bother?
This is also illegal syntax:
int doB() {
A r = new A();
r.a; // error: not a statement
}Again, all "r.a" does on its own is access a field and do nothing with it -- a "noop". Since it has no effect, writing this indicates confusion on the part of the coder, so it classified as a syntax error. There is no reason to write that. -
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. -
How to pass a value to a bind variable in a query report in oracle apex
Hi Guys,
I have requirement to send weekly reports via email to some users. The users should receive their own records in the report. The user details is stored in a table. What I am planning to do is to create a report query in oracle apex to generate the report and then run a function/procedure via a scheduler to email the report to respective users. Now my query is ............. is it possible to pass a value (user name) to the report query to pull records of only that user? I know we can have bind variables in the report query but I have no idea how to pass a value for bind variables from a function/procedure.
Can anyone help me on this issue or suggest a better approach?
Thanks,
SanYou need to use dynamic sql
But please keep in mind that since you're using Oracle you may be better off posting this in some Oracle forums
This forum is specifically for SQL Server
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to call a detail report from a master report in 11g?
How to call a detail report from a amster report in 11g?
We have a requirement to call a detail report based on the invoice id that will parsed from the master report in OBIEE 11g. Any ideas sugegstions will be greatly appreciated.
Thanks,
Edited by: user8957415 on Jul 31, 2012 9:04 AMCheck these links
http://gerardnico.com/wiki/dat/obiee/master_detail
http://prasadmadhasi.com/2011/11/13/master-detail-event-in-obiee-11g-and-pass-multiple-events-to-one-detail-report/
Hope these helps -
How to pass varchar2 in as parameter in SP
I have a sp which takes dname as parameter (see below code), I
tried 'ACCOUNTING', ''ACCOUNTING'' (2 single 's)
and "ACCOUNTING" none of them worked. Could you tell me how to
pass this in ( from pl/SQL and Java)?
This is my code:
CREATE OR REPLACE PACKAGE BODY testpkg1 AS
procedure test(
sum_cv IN OUT NOCOPY sumCur,
name IN VARCHAR2 ) AS
sql_statement VARCHAR2(100);
where_statement VARCHAR2(100);
BEGIN
if name = ' ' then
where_statement := ' ';
else
where_statement := ' AND d.dname = name ';
end if;
sql_statement :='SELECT e.* from emp e, dept d where d.deptno =
e.deptno ' ||where_statement ;
OPEN sum_cv FOR sql_statement ;
END test;
END;
and this is how I execute:
VARIABLE CV REFCURSOR
EXECUTE testpkg1.test(:cv, 'ACCOUNTING' )
ThanksThe problem is in your where_statement; You left out the quotes
on either side of name. If you want your code to get executed
like:
OPEN sum_cv
FOR
SELECT e.*
FROM emp e, dept d
WHERE d.deptno = e.deptno
AND d.dname = 'ACCOUNTING';
then, in order to preserve the quotes around ACCOUNTING, your
sql_statement must look something like:
'SELECT e.*
FROM emp e, dept d
WHERE d.deptno = e.deptno '
|| ' AND d.dname = ''' || name || ''''
So, in order for the sql_statement to end up as above, the
where_statement must look something like:
' AND d.dname = ''' || name || ''''
It is a good practice to use DBMS_OUTPUT.PUT_LINE to display the
sql_statement that you are trying to execute; It can make
debugging a lot easier. Please see suggested code below:
SQL> EDIT testpkg1
CREATE OR REPLACE PACKAGE testpkg1
AS
TYPE sumcur IS REF CURSOR;
PROCEDURE test
(sum_cv IN OUT NOCOPY sumcur,
name IN VARCHAR2 DEFAULT NULL);
END testpkg1;
CREATE OR REPLACE PACKAGE BODY testpkg1
AS
PROCEDURE test
(sum_cv IN OUT NOCOPY sumcur,
name IN VARCHAR2 DEFAULT NULL)
AS
sql_statement VARCHAR2(100);
where_statement VARCHAR2(100);
BEGIN
IF name IS NULL
THEN
where_statement := NULL;
ELSE
--NOTE THE ADDED SETS OF SINGLE QUOTES IN THE LINE BELOW:
where_statement := ' AND d.dname = ''' || name || '''';
END IF;
sql_statement := 'SELECT e.* FROM emp e, dept d WHERE
d.deptno = e.deptno '
|| where_statement;
DBMS_OUTPUT.PUT_LINE (sql_statement);
OPEN sum_cv FOR sql_statement;
END test;
END testpkg1;
SQL> START testpkg1
Package created.
Package body created.
To execute it from SQL*Plus, you would do just what you have
been doing:
SQL> VARIABLE cv REFCURSOR
SQL> SET SERVEROUTPUT ON
SQL> EXECUTE testpkg1.test (:cv, 'ACCOUNTING')
SQL> PRINT cv
SELECT e.* FROM emp e, dept d WHERE d.deptno = e.deptno AND
d.dname =
'ACCOUNTING'
PL/SQL procedure successfully completed.
EMPNO ENAME JOB MGR HIREDATE
SAL COMM
DEPTNO STARS
7782 CLARK MANAGER 7839 09-JUN-81 2450
10
7839 KING PRESIDENT 17-NOV-81 5000
10
7934 MILLER CLERK 7782 23-JAN-82 1300
10 ************* -
How to pass a default value in selection screen of logical database pnpce
Dear All,
Can any one tell me how to pass a default value in selection screen of logical database pnpce .
Regards
Rakesh SinghHi Rakesh,
Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
Regards,
Rahul -
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
HI,
HOW TO PASS THE DATA FROM SELECTION SCREEN TO STANDARD TRANSACTION?
thanks,
samba.By selection screen, what do you mean? There is no selection screen in WDA as there was in classic dynpro. Do you mean you are using the Select-Options reusable component? Are you wanting to call a standard transaction via ITS - SAPGUI for HTML? Please provide more details to your question.
-
How to Pass parameter to Custom Scheduler dynamically
hi ,
I am new to OIM.
Need your help in passing parameters dynamically to Custom Scheduler.
I have created Custom Scheduler by extending Task Support.
I have registered the plugin through API , using PlatformService.registerPlugin() method.
As I need to send the parameter(s) to this CustomScheduler, I have defined them in Metadata (CustomScheduleTask.xml) file as below and got it imported into DB
through weblogicImportMetadata.sh script by providing the path of the file.
<scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
<task>
<name>CustomScheduleTask</name>
<class>org.schedule.custom.task.CustomScheduleTask</class>
<description>Fetch details of the given user_id</description>
<retry>5</retry>
<parameters>
<string-param required="true" helpText="Login Name">Login Name</string-param>
</parameters>
</task>
</scheduledTasks>
Iam able to import this plugin as well as register the plugin successfully. Now I have defined a job to which this Custom SchedulerTask is mapped.
Now in order to run this job(schedule task) I need to provide Login name( or id) which needs to be send as a parameter for the scheduler to get executed.
But while defining the job with this Schedule Task on OIM console, I was not able to define or pass parameter to this job. hence parameter is null in
CustomSchedule 's execute method .
Kindly help me how to pass parameter dynamically while running the scheduler from OIM console so that the execute method would be able to receive it.
Thank you in Advance.
Regards,
KumarHi,
When you have created the schedule job for your custom schedule task, you should see your Login Name textfield in the schedule task. If not, then there verify your schedule task xml.
In your schedule class code, add:
public void execute(HashMap arg0) {
final String METHOD_NAME = "execute :: ";
logger.debug(CLASS_NAME + METHOD_NAME + "Entering Method - execute");
try {
String LoginName = arg0.get("Login Name");
Regards,
Sunny
Maybe you are looking for
-
InDesign CS6 to Interactive PDF
I want to design an Newsletter in CS6 and export it as a interactive PDF. The end goal is to be able to email the Newsletter out, but allow the end user to be able to modify the text in each section so they can personalize it as necessary. Additional
-
Importing media to use in Actionscript 3
Hello Everybody, i try to figure out how to access the symbols in the library directly with as3 without having them put on the canvas first. And i want to know how i access external sources graphics, videos without putting them in the library at all.
-
Itunes store connectivity error (0x800b0101)
Itunes store connectivity problem, error code: we could not complete your itunes request. An unknown error occurred (0x800b0101) Please help i want to activate my iphone 4 through itunes 6
-
COPA how to analyse sales by actual cost (MTS) ?
Hi All, We use Make-To-Stock production type. I want to make a drilldown report for sales analysis use actual cost (COGS + production variance), how to link production variance to sales data. Any suggestion will be appreciated. Thanks & Regards Sam
-
What is rollover and its concept in sql server ? And what is the concept of IAO?
would someone please tell me what is rollover and what is its concept? another question is what is IAO in sql server? Thanks in advance sqlfan