Call Proxy Java from Stores Procedures
Hi.
I'm starting with XI and I need know how call a Proxy Java (EJB) from store procedure (oracle).
Thank's
Hi,
Following weblogs will explain how to configure and call java proxy.
/people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy - Java Server Proxy
/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy - Inbound Java Proxy
Java Proxy-
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
Rich set of Demos for proxy-
https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#xi [original link is broken]
Thanks,
Prateek
Similar Messages
-
Calling WebAS Java from Excel Macro
Hi,
somebody told me there were a way to call WebAS Java from an Excel Macro and make a login into SAP using a real existing user (not a technical user). Does anybody know where to find documentation about this or how to get this accomplished?
Thanks, Oliver PlohmannHi,
Have a look at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office09062001.asp
Eddy -
Hi,
I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
*Cause: A Java exception or error was signaled and could not be
resolved by the Java code.
*Action: Modify Java code, if this behavior is not intended.
But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?Stiphane,
You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
Hope this helps,
-Dan
http://www.compuware.com/products/devpartner/db/oracle_debug.htm
Debug PL/SQL and Java in the Oracle Database -
Calling shell script from sql procedure
Hi gurus
Is it possible
1)to call a shell script from sql procedure
2)that shell script has to return one value
3)and again sql procedure(calling shell script) has to capture the return value.
please help me to write this scriptYou may NOT have EXECUTE privilege/ permissions on the DBMS_PIPE package. Check with your DBA.
Using DBMS_PIPE may not be that simple to implement. Just making a call to DBMS_PIPE procedure will not do anything. It will NOT trigger anything on the UNIX side.
. You will also need to :
1. Write a job (ie CRON) at UNIX side which will keep read the incoming pipe for new messages, Unpack the message and get the command to be executed at the UNIX side -- There will be a lot of work involved here + DBA presence/activity is also required.
As Justin has pointed out, try and use HOST command which is very simple or try and use Java.
Shailender Mehta -
Execute Unix Mail Command from Store Procedure
Hi Colleagues!
I designed a store procedure that Monitoring some Critical tables in my Oracle 8.0.6.1.0 Database But I need to send some Emails from the Store Procedures to Information System Staff when the amount of rows increase too much. I read about UTL_SMTP but my database version is too old to run this package. Also I have the option of Maildemo8i that execute MS Oulook from a Client System But I looking to Send it from my Database(OS HPUX). So please take a look of this issue and I will appreciate any help.
Your Friend.
Emmanuel Carrillo Trejos.
LNB, Republic of Panama(Central America).
P.D. You can email to: [email protected]Do you mean that you want to execute mail or mailx unix commands to send mails.If i am right then probably you are looking for a way to execute operating system commands from your procedure.
You can refer this link if you want to do that. You need java support in your Oracle database and i believe that Oracle 8 does have jvm running in the instance.
http://asktom.oracle.com/pls/ask/f?p=4950:8:5079825575573830264::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:952229840241
Thank you! -
Error Calling a java file through procedure
Create or replace procedure Javacallprocedure(asOfDate DATE)
as language java
name 'oracle.xx.yy.server.Creator.run(java.sql.Date)';
Is
Begin
Javacallprocedure(asOfDate);
end;
end procedure Javacallprocedure;
Am trying to complie the above procedure which calls a java file from this procedure.But am getting error.Please help me.user10285699 wrote:
Create or replace procedure Javacallprocedure(asOfDate DATE)
as language java
name 'oracle.xx.yy.server.Creator.run(java.sql.Date)';
Is
Begin
Javacallprocedure(asOfDate);
end;
end procedure Javacallprocedure;
Am trying to complie the above procedure which calls a java file from this procedure.But am getting error.Please help me.Can't guess what error you are getting !
Please post the error and other source codes.
SS -
Hi,
My question is about calling java functions from PLSQL. What we have is in-house developed java classes registered at the TAO CORBA service on Unix platform. We developed a PLSQL package that calls other PLSQL functions and procedures without problem. We also need to call Java functions registered at the CORBA service. I know that calling standard Java functions is not problem via loading with loadjava and publishing as PLSQL procedure and functions. However, I found that CORBA is no longer supported starting from Oracle 9g r2. Still, I wonder wether there is a way to call these java functions registered at CORBA without loading and publishing? Any help will be greatly appreciated.
Thanx in advance,
Sincerely,
Asaf
Software ArchitectHi,
I would just like to mention that we decided to utilize TCP sockets in PLSQL utilizing the UTL_TCP package. Socket interface is also implemented at the Java module and hence we can call the related the interface functions via UTL_TCP socket interface. I hope this might help those who face a similar problem.
Sincerely
Asaf -
How can I call a function from a procedure
I have a function named: f_calc_value which return the variable v_result. This function is part of a package.
How can I call this function from a new procedure I am creating?
Thanksor refer this theread....calling function from procedure
-
Hi ,
My requirement is to call WD java in portal from WD ABAP .
I Searched and found it is possible by using PCD Path but i am not able to do .
I tried it and now called application is opening up but full portal opens up in a separate browser , i want only that Iview should open in same browser.
CALL METHOD LR_PORT_MANAGER->NAVIGATE_ABSOLUTE
EXPORTING
NAVIGATION_TARGET = TARGET
NAVIGATION_MODE = MODE.
Regards
Nikhil Arya.Hi ,
You can call by below code :
CALL METHOD lo_portal_manager->NAVIGATE_ABSOLUTE
EXPORTING
"NAVIGATION_TARGET = 'ROLES://portal_content/****''
Here in Naviagation_Target, you need to give the WDJ iview PCD path with prefix ROLES:// as shown above..
- Vasu -
Calling DTS package from Stored Procedure
I am getting error calling DTS package from CF.
So i want to call DTS package from SQL Server Stored
Procedure.
DTS package create text file. So no need of input or output
parameter.
What is the syntax?.
thanks for ur help.Ted Kruger explains how this can be done in his blog post
Run SSIS Package from Stored Procedure
For every expert, there is an equal and opposite expert. - Becker's Law
My blog -
How can i call my function from a procedure?
My function is:
create or replace FUNCTION test(pAttributeName IN NUMBER)
RETURN VARCHAR2 IS
ret VARCHAR2(100) := NULL;
VAR n1 NUMBER
BEGIN
SELECT Klartext INTO ret FROM piclist WHERE ATTRIBUTNAME = 'voltage_level' and PICLIST_ID =pAttributeName;
RETURN ret;
Insert into BM_ATTRIB(ID_ERFASSUNG,ID_ATTRIBNAME,ATTRIB_CHA,BM_ATTRIB_ID) VALUES(1,1,ret,1);
exception
when no_data_found then
ret := 'AAA' ------- you can return any default value,if you like
--return ret;
return NULL;
when others then
dbms_output.put_line('Exception:'||sqlerrm);
End;
I want to call it from a procedure!
Please help!
Nicoleif the function is in the same package as the procedure then merely specify the function name and parameters:
retcode := functionname(param1..paramn);
If in another package then:
retcode := packagename.functionname(param1..paramn);
If the function is in another schema then you need to grant execute rights to the package/function to the schema trying to run the function:
grant execute on packagename/functionname to otherschema;
you need to be the package/function schema owner to do the above grant. -
How to call 'C' programs from stored procedures?
Hi
Did anybody tried to call 'C' programs
from oracle stored procedures?
If anybody knows, can you please send
how to configure the listener.ora and
tnsnames.ora. If its possible post all the
information from the begining with examples.
thanks....Oracle JDBC did not support return a result set, if you are using Oracle 9i, you can use pipeline function, then using the TABLE() function the get the row.
Good Luck.
Welcome to http://www.anysql.net/en/ -
Call proxy service from other proxy service with attachment
Hi!
I have got an email sending proxy service I would like to call this from an other proxy service and I want to send attachment in email. I can send email with attachment if i call this proxy as a webservice (e.g. from soapUI)
But if i want to call this email proxy service from other proxy service, the attachment in email is empty. I put a log action (expression: $attachments) in the beginning of email proxy service, and I saw this in the log file:
+<con:attachments xmlns:con="http://www.bea.com/wli/sb/context"/>+
So the attachment is really empty...
I use service callout. I put an insert action in request action of service callout:
In Variable:
attachments
XPath:
+.+
Location:
as first child of
Expression:
+<con:attachment xmlns:con="http://www.bea.com/wli/sb/context">+
+ <con:Content-Type>application/octet-stream</con:Content-Type>+
+ <con:Content-Disposition>attachment; filename="{$v_fileName}"</con:Content-Disposition>+
+ <con:Content-Transfer-Encoding>base64</con:Content-Transfer-Encoding> +
+ <con:body>{$attachments/ctx:attachment/ctx:body/*}</con:body>+
+</con:attachment>+
Why cannot I call this email proxy service from other proxy service for sending email with attachment?
I tried to solve this other. I called an email sending business service from this proxy service. But in this case I cannot set the body of email. If I put just one Transport Header action in publish action, I could send the email (with empty body). But If I put a replace action in publish action as well then the OSB didn't send the email and I couldn't find any error message in log file... How could I set the body of email in publish action?
Thanks!
ViktorYou should be able to get the current user id from the SPListItemEventProperties object. From here you should be able to create a Claim. For example get the user by using
user = SPWeb.Users.GetByID(properties.CurrentUserId)
SPClaim claim = SPClaimProviderManager.CreateUserClaim(user.email, SPOriginalIssuerType.TrustedProvider, issuerIdentifier);
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.claims.spclaimprovidermanager.createuserclaim(v=office.14).aspx
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer -
Call Oracle function from Stored Procedure
Hi,
I have function Which returning one number. I want to use that number in a procedure. How to call the Oracle Function from the Procedure
Create procedure
AS
Begin
Check number;
Select Function1 into check from dual;
It is giving error.
Can anyone provide me example for this.
Thanks in advancePut the Check Number; before begin
SQL> create or replace procedure abc as
2 begin
3 val number;
4 select abcd into val from dual;
5 dbms_output.put_line(val);
6 end;
7 /
Warning: Procedure created with compilation errors.
Elapsed: 00:00:00.00
SQL> show error
Errors for PROCEDURE ABC:
LINE/COL ERROR
3/5 PLS-00103: Encountered the symbol "NUMBER" when expecting one of
the following:
:= . ( @ % ;
The symbol ":=" was substituted for "NUMBER" to continue.
SQL> create or replace procedure abc as
2 val number;
3 begin
4 select abcd into val from dual;
5 dbms_output.put_line(val);
6 end;
7 /
Procedure created.
Elapsed: 00:00:00.00
SQL> exec abc;
100.22
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> -
Calling shell script from stored procedure.
Hi Everybody,
Could anyone tell me how to call a shell script from a stored procedure.
Thanks,
VasuYou would need to write a Java stored procedure that calls out to the underlying operating system. Tom Kyte has an example of this here
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:952229840241
Make sure that you're very aware of the security implications here, however. Your commands will run as the Oracle user on the host operating system, which makes it possible that a coding error and/or an attacker could do something like delete or corrupt Oracle data files, so you'll probably want to harden the code substantially.
Justin
Maybe you are looking for
-
'BAPI_GOODSMVT_CREATE' takes more time for creating material document
Hi Experts, I m using 'BAPI_GOODSMVT_CREATE' in my custom report, it takes more time for creating Material documents. Please let me know if there is any option to overcome this issue. Thanks in advance Regards, Leo
-
WBS settlement to AUC - use original cost elements?
Hello gurus We have an allocation structure which settles project WBS costs to AUC. The issue is that it is using a single settlement cost element for all the costs going to the AUC. I notice there is a tick box 'by cost element' in the 'Allocation s
-
Hi all I am trying to implement attachement viewing with servlets. Following is what I am doing in order to set the application type which will open the file. I can open all types of files except text. setcontenttype("text/html") should take care of
-
I have an older Ipod shuffle that was synced to another computer. That computer has quit working and a new one purchased. Itunes was downloaded and when I try to add songs I get a message that states if I sync to this new computer all my songs will
-
Carriage Jam on C7180 All-In-One
I had a functioning all-in-one until I tried to clear a paper jam. After removing most of the paper from the back as instructed I noticed a few bits under one of the rollers and had to use a tweezers to remove it from the front. I am stil getting a