How to put WSDL objects in OnDemand?
Hi..
I wish to gain some experience using web services. So far I have web services enabled on the company profile and given my role access privileges.
Under Web Sevices Integration it gives me the option to download WSDL object and Schema. What I would like to know is what if I wish to create my own WSDL or Schema, how would I upload them to OnDemand?
Hi !
Today, the WebServices provided by Oracle on the CRM OnDemand are predefined. You can use the WSDL to create programs using the WebServices to manipulate datas in the CRM. But today, you can't create your own object and upload it.
Can you create your own object through the CRM interface ? No, and so you can't do it by WSDL.
Hope this will help, feel free to ask more !
Max
Similar Messages
-
How to put objects in a transport?
Hi Expert,
Initially, i put all the objects that i have created in a non-transportable package which is $tmp in developement server. Then, now, i would like to use all these objects in quality server.
Thus, how to put these objects eg. the queries, process chain, IO etc. into a transportable transport if initialy i did not put them in a transportable package which is $tmp? Is that possible?Hi Annie,
you will have to put them into a develpoment package before transporting to the Quality system.
just change the package pf each object.
this you can do by going to individual object and changing it there through " Object directory entry" and changing it.
OR
you can go to the transport connection and select all the objects which you want to transport drag them in the right and then go to the package option in the last and right click on it and click option change package in the end.
It will give you option to change the package.
This way you can change package at one place
This can save your time and you need not go to each object individually.
Hope it helps
thanks -
How to send multiple objects from Client to Server
Hi
I have a simple Client - Server architecture. I am trying to send 5 objects from Client to the Server which the server would operate on.
In the past I've used PrintWriter to pass Strings from Client to Server but now when I am dealing with multiple Objects and PrintWriter not allowing sending of Arrays or ArrayList, how can I send these from the Client to the Server? What would be a good writer to use for this purpose?
Thanks!Thanks, I am looking into ObjectOutputStream but from the API it appears I can only send 1 object at a time. I need to send 5 objects per transaction and then send the next group of 5 objects for another transaction.
Could you clarify some more on how to put these objects together as a single Object perhaps?
Thanks -
How to put gradient effect on a 45 degree curved pipe using single object
how to put gradient effect on a 45 degree curved pipe using single object
Sudhanshu,
You may use a smooth blend between a dark/black solid fill object with the full width and a white narrow fill object in the middle.
Yoy may:
1) Create the full width object with the bend, remember to have two anchor points at the inner corner, on top of each other if it is to be sharp; you may create it with a surplus length, see below;
2) With 1) selected, Object>Path>Offset Path by a negative value equalling half the width less a point or so, to create the inner fill path, then turn it white;
3) You may ClickDrag across each end of the paths with the Line Segment Tool, then Object>Path>Divide Objects Below and delete the unwanted end parts;
4) Object>Blend>Objects, use Smooth and Align to Path;
5) Object>Blend>Make. -
How do we put an object in coherence cache when the pk is using @TableGener
Hi,
I am trying to create a sample application using Spring, JPA, Eclipselink, Coherence. I am trying to insert objects into cache and then expecting it to persist into database asynchronously. The issue is we are using @TableGenerator to generate pk. I dont have the primary key before hand to use it to put the object into the cache.
Ex: cache.put(???, object);
What is the best approach in such scenarios. Can anyone point me to an example?
Thanks.user12107940 wrote:
The above article helps but we can't change the current architecture of generating the primary key i.e., TableGenerator. We have other non-java processes that update the database. Is there any other way to use jpa-eclipselink to know the pk before persisting the object.In this case you have to ensure that anything which comes via Coherence gets ids from a set of possible ids which is distinct from the set of possible ids generated in the database, but it is technically impossible to put something in a cache without an id already generated if the id is part of the primary key (and you want it to be).
E.g. whatever generates ids in the database must only generate odd numbers for ids (e.g. a sequence which increases not with one but with two), and whatever goes via JPA/EclipseLink must only generate even numbers.
Best regards,
Robert -
How do i put an object into a HashMap
Hey
Im trying to put my object car into my HashMap where the licenseplate is the key, what am i doing wrong?
Here is my code:
import java.util.HashMap;
import java.util.Iterator;
public class getCar
private Car car;
private HashMap<String, String> cars;
public getCar()
cars = new HashMap<String, String>();
public void enterNewCar(int date, String licensePlate, String ownerName, String ownerStreet, String ownerCity,
String carMake, String carModel, int carWeight, String fuelType, int numberOfSeats)
car = new Car(date, licensePlate, ownerName, ownerStreet, ownerCity, carMake, carModel, carWeight,
fuelType, numberOfSeats);
cars.put(licensePlate, car);
}{color:#000080}Shouldn't
private HashMap<String, String> cars;be
private HashMap<String, Car> cars;?
db{color} -
How to use wsdl in dynamic client
In wls 700, I want to know how to write a dynamic client to invoke a webservice by
passing wsdl?
In the example directory, there is an example, but I would like to know how I can
customize to use my own wsdl? clientgen puts wsdl in client jar file why is that?Hi fkeita,
If you haven't already done so, you should check out the following link in the BEA
product documentation:
http://edocs.bea.com/wls/docs70/webServices/client.html#1049007
Outside of that, you can always stayed tuned to the "dev2dev" page :-)
Regards,
Mike Wooten
"fkeita" <[email protected]> wrote:
>
Hi Mike,
Can you elaborate more how I can find the url of wsdl?
Do you know any documentation which explains the process of using dynamic
clinet?
Thanks.
"Michael Wooten" <[email protected]> wrote:
Hi fkeita,
The client.jar contains a "static" WSDL, because some folks like to avoid
making
a network (or internet) call to retrieve the "dynamic" one :-)
If you try to use "user-defined" types, with a WSDL and a "dynamic" client,
you will
experience "difficulties". This is due to the way the JAX-RPC defines the
createService()
method on the ServiceFactory class. Normally, this is the method you pass
the URL
to the WSDL you want to use. Currently, we call the WSDL parser in this
method, which
has a "side-effect" of needing to have the type mappings for your "user-defined"
types, already registered when it is called. With "stub-style" clients,
this is not
a problem (because the plumbing does this for you), but with "dynamic"ones
it doesn't.
Right now, the only real workaround is to have your client class extend
our weblogic.webservice.core.soap.SOAPElementImpl
class, as in the following code fragment:
#### START OF EXTRACT #####
import javax.xml.rpc.Call;
import javax.xml.rpc.namespace.QName;
import weblogic.webservice.core.rpc.ServiceImpl;
public class ServiceClient extends ServiceImpl
public ServiceClient(String schemeHostPort) throws Exception
// We pass the URL for the "dynamic" WSDL in the
// first argument. The second argument is the
// path to the XML file that the <clientgen> Ant
// task recorded your typemapping info in. It is
// in your client.jar, along with the "static"
// WSDL I mentioned :-)
super(
(schemeHostPort == null ? "http://localhost:7001" : schemeHostPort)
+
"/mea/gateway?WSDL",
"examples/webservices/jaxrpc/consumer/anamitra/dii/MEAGatewayService"
//define qnames
String targetNamespace = "http://www.bea.com/examples/MEAGateway";
QName serviceName = new QName( targetNamespace, "MEAGatewayService" );
QName portName = new QName( targetNamespace, "MEAGatewayServicePort");
//create call
Call call = super.createCall(
portName,
new QName(targetNamespace, "processExternalDataBatch")
ArrayList alist = new ArrayList();
alist.add(new String("One"));
alist.add(new String("Two"));
alist.add(new String("Three"));
alist.add(new String("Four"));
alist.add(new String("Five"));
String result = (String)call.invoke( new Object[]{ alist } );
System.out.println("result=" + result);
public static void main( String[] args ) throws Exception
System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
System.setProperty("javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
new ServiceClient(args[0]);
//private:
private final static boolean debug = false;
### END OF EXTRACT ###
Happy coding :-)
Regards,
Mike Wooten
"fkeita" <[email protected]> wrote:
In wls 700, I want to know how to write a dynamic client to invoke a webservice
by
passing wsdl?
In the example directory, there is an example, but I would like to know
how I can
customize to use my own wsdl? clientgen puts wsdl in client jar file why
is that? -
How to call request object of IPortalComponent in KM Scheduler application
Hi
We are reading RFC Table data using JCO Connection Pool(JCOClientPoolEntry. Please find the below teo line code.If we put this code in KM Scheduler application then its throwing error for the request objecct of IPortalComponenetRequest.
IJCOClientPoolEntry jcoPoolEntry = null;
jcoPoolEntry = clientService.getJCOClientPoolEntry(sysId, request);
Can you please let me know how to use request object of IPortalComponent in KM Scheduler application?
Thanks,
SusmitaHello GopalY,
In my experience its not possible to call OLE object in Webui. Maybe customer 3 party application will be supply some web service to handle credit card payments. I think this is the simple way to access 3party application.
Regards,
Zafer, -
How To Retrieve an Object's Value Defined Using c:set ... Tag?
I have the value of a variable defined in JSP#1 (JSP#1 is not a form) using JSTL tag:
<c:set var="id" value="${articleForm.article}" scope="session"/>Now, I have an object 'id' in the session scope. The object 'id' and all the information, which are defined in JSP#1, are forwarded to JSP#2.
JSP#2 is a form. But, the 'id' is not used in JSP#2.
JSP#2 has a submit button and then, a servlet takes over the control after that button is clicked. All the text fields in JSP#2 together with the object 'id' are forwarded to this servlet.
I have two questions:
1. I should put this object 'id' in a request scope or a session scope? Currently, it is in a session scope.
2. How to retrieve the value of this object 'id' in this servlet? (I do not want to print the value out. I want to retrieve the value and store it in a database.)
int articleID = Integer.parseInt( session.getAttribute( "id" ) ); or, it should be retrieved in another way?I'm not sure you understand the concept of a session object.
Java objects stay on the server. There is no transmission between the web browser and the client.
The scope just sets how long the server "remembers" that variable.
request scope - only lasts one request. Once a web page is returned to the client, the server forgets all request variables.
session scope - lasts for one user - across multiple requests/web pages.
1. I should put this object 'id' in a request scope or a session scope? Currently, it is in a session scope.From your description, you appear to have it right - your object should be in session scope.
2. How to retrieve the value of this object 'id' in this servlet? (I do not want to print the value out. I want to retrieve the value and store it in a database.)If articleForm.article is an String then that looks the right way to access it.
You might have to do it like this:
int articleID = Integer.parseInt( (String)session.getAttribute("id"));
The Integer.parseInt method takes a String as a parameter - while session.getAttribute() returns an Object.
This code will work if the object stored in the session is a String.
The object stored in the session is ${articleForm.article} What type does articletForm.getArticle() return? That is the type you need to cast it to when retrieving it from the session.
Cheers,
evnafets -
How to send an object from one application to another?
Hi all,
I have two applications over the same server. The first application needs to send an object to the other application.
I try to put the object as a session attribute, but in the moment that the second application tries to get the attribute, the attribute doesn't exist.
Does anybody now how can pass an object from the one application to the other?You can also use JMS
-
How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice
Hi,
Kindly solve, How to put Sales employee (Splcode) Mandatory Field, when adding A/R invoice.
Regards,
Rajeev.Follow this step..
1. In SQL Server, go to the SAP B1 Database you're using.
2. then on the Object Explorer , go to Database Folder, explode the SAP DB->Programmability->Stored Procedures->SBO_SP_TransactionNotification * the only Stored Procedure that is allowed to be edited. Just right click and modify
3. Try to paste this -> and click F5
If
@object_type ='13' and @transaction_type in ('A','U')
Begin
If EXISTS
select DocEntry from ONIV
Where DocEntry = @list_of_cols_val_tab_del
and SlpCode<>'-1'
Begin
set @error_message = 'Please select the Sales Employee'
set @error = 1
END
END
Regards
Kennedy -
How to put the file name in notepad file
dear frank,
how to put the file name in notepad file via power shell. I mean i want to put the file name in that notepad file
for example,
my file name is ABL and in this file data is
02/06/2015,180.00,182.00,176.01,180.50,1575500
02/06/2015,4.20,4.20,4.20,4.20,500
02/06/2015,113.50,113.70,112.91,113.09,157800
02/06/2015,682.01,695.90,682.00,683.19,4250
02/06/2015,213.98,215.00,213.00,214.87,326200
02/06/2015,21.52,21.65,21.52,21.60,4000
02/06/2015,111.00,111.25,108.25,108.91,17100
02/06/2015,52.00,52.00,52.00,52.00,500
and i want to data in this form
ABL,02/06/2015,180.00,182.00,176.01,180.50,1575500
ABL,02/06/2015,4.20,4.20,4.20,4.20,500
ABL,02/06/2015,113.50,113.70,112.91,113.09,157800
ABL,02/06/2015,682.01,695.90,682.00,683.19,4250
ABL,02/06/2015,213.98,215.00,213.00,214.87,326200
ABL,02/06/2015,21.52,21.65,21.52,21.60,4000
ABL,02/06/2015,111.00,111.25,108.25,108.91,17100
ABL,02/06/2015,52.00,52.00,52.00,52.00,500
There are many file like this that i want to be edit
plese tell me how can i do it, i think it is possible via windows power shell.
thanks in advance.Hi
Just for completeness, what version of VB.NET are you using?
Here is a complete project to copy all the files with the added "ABL," at the start of each line. You need to start a new Project with a BLANK default Form1, and replace all of Form1 code with the code below. When you run this project, you
need to use the 2 buttons to set up the ORIGINAL file folder and a folder to place the copies. You need to check if the file EXTENSION is correct (I assumed txt), and check the text to add to each line is correct. Once all is set up you should have a
big red button to start the operation.
NOTE: it is important that you try this out on a copy of some of the files to verify accuracy BEFORE trying on original files. Make sure you have a good back up of the original files before doing anything else.
' new project with default BLANK Form1
' replace all Form1 code with this code
' WARNING: make sure you have a backup of
' any files you use this application to
' operate on.
Option Strict On
Option Infer Off
Option Explicit On
Public Class Form1
Dim OrigFileFolderPath As String = Nothing
Dim CopyToFolderPath As String = Nothing
Dim lab1, lab2, lab3 As New Label
Dim tb1, tb2, tb3 As New TextBox
Dim b1, b2, b3, b4 As New Button
Dim fb As New FolderBrowserDialog
Dim bgw As New System.ComponentModel.BackgroundWorker
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
Me.Size = New Size(731, 300)
With lab1
.Text = "Original Files Folder Path"
.Location = New Point(15, 5)
End With
With tb1
.Width = 560
.Location = New Point(10, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab2
.Text = "Copy Files to Folder Path"
.Location = New Point(15, 125)
End With
With tb2
.Width = 665
.Location = New Point(10, 150)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right
End With
With lab3
.Text = "File Ext"
.Location = New Point(600, 5)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With tb3
.Text = ".txt"
.Width = 80
.Location = New Point(590, 30)
.BackColor = Color.Khaki
.ForeColor = Color.Maroon
.TextAlign = HorizontalAlignment.Center
.Font = New Font(Me.Font.FontFamily, 12)
.BorderStyle = BorderStyle.FixedSingle
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
With b1
.Text = "Choose Original Files Folder Path"
.AutoSize = True
.Location = New Point(10, 65)
End With
With b2
.Text = "Choose Copy Files to Folder Path"
.AutoSize = True
.Location = New Point(10, 185)
End With
With b3
.Text = "DO THE COPY"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
With b4
.Text = "CANCEL JOB"
.AutoSize = False
.Size = New Size(240, 50)
.BackColor = Color.Red
.ForeColor = Color.White
.Font = New Font(Me.Font.FontFamily, 20, FontStyle.Bold)
.Location = New Point(420, 80)
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
.Visible = False
End With
Me.Controls.AddRange({lab1, lab2, lab3, tb1, tb2, tb3, b1, b2, b3, b4})
With bgw
.WorkerReportsProgress = True
.WorkerSupportsCancellation = True
End With
AddHandler bgw.DoWork, AddressOf bgw_DoWork
AddHandler bgw.RunWorkerCompleted, AddressOf bgw_Completed
AddHandler b1.Click, AddressOf b1_Click
AddHandler b2.Click, AddressOf b2_Click
AddHandler b3.Click, AddressOf b3_Click
AddHandler b4.Click, AddressOf b4_Click
End Sub
Private Sub b1_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = False
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb1.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b2_Click(sender As Object, e As EventArgs)
fb.SelectedPath = My.Computer.FileSystem.SpecialDirectories.MyDocuments
fb.ShowNewFolderButton = True
Dim r As DialogResult = fb.ShowDialog
If r = Windows.Forms.DialogResult.OK Then
tb2.Text = fb.SelectedPath
If IO.Directory.Exists(tb1.Text) AndAlso IO.Directory.Exists(tb2.Text) AndAlso Not (tb1.Text = tb2.Text) Then
If tb3.Text = Nothing Then
redo: tb3.Text = InputBox("Enter the file extension that you want to copy/change", "FILE EXTENSION")
If tb3.Text = Nothing Then GoTo redo
End If
b3.Visible = True
Else
b3.Visible = False
End If
End If
End Sub
Private Sub b3_Click(sender As Object, e As EventArgs)
b3.Visible = False
b4.Visible = True
If Not tb3.Text.StartsWith(".") Then tb3.Text = "." & tb3.Text
bgw.RunWorkerAsync()
End Sub
Private Sub b4_Click(sender As Object, e As EventArgs)
bgw.CancelAsync()
End Sub
Private Sub ReadPWFile(fn As String)
Dim filename As String = My.Computer.FileSystem.GetName(fn)
Dim barename As String = IO.Path.GetFileNameWithoutExtension(fn)
Dim copyto As String = tb2.Text & "\" & filename
Dim line As String = Nothing
Dim lines As New List(Of String)
Using sr As IO.StreamReader = New IO.StreamReader(fn)
Do
line = sr.ReadLine()
If Not line = Nothing Then
lines.Add(barename & "," & line)
End If
Loop Until line = Nothing
End Using
Using sw As IO.StreamWriter = New IO.StreamWriter(copyto)
For Each s As String In lines
sw.WriteLine(s)
Next
End Using
End Sub
Private Sub bgw_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs)
Dim ftc As Collections.ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles(tb1.Text)
For Each f As String In ftc
If bgw.CancellationPending Then
e.Cancel = True
Exit For
End If
Dim ex As String = My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower
If My.Computer.FileSystem.GetFileInfo(f).Extension.ToLower = tb3.Text.ToLower Then
ReadPWFile(f)
End If
Next
End Sub
Public Sub bgw_Completed(sender As Object, e As System.ComponentModel.RunWorkerCompletedEventArgs)
tb1.Text = Nothing
tb2.Text = Nothing
b3.Visible = False
b4.Visible = False
MessageBox.Show("Finished copying files", "Job Completed")
End Sub
End Class
Regards Les, Livingston, Scotland -
How to put a collection into a Ref Cursor?
Hi,
I am trying to create a procedure (inside a package) which fills a collection and I need to fill a ref cursor (out parameter) with this collection. I can fill the collection but I how can I fill the ref cursor? I am receiving the message "PL/SQL: ORA-00902: invalid datatype" (Highlighted below as comments)
I have a limitation: I am not allowed to create any kind of objects at the database schema level, so I have to create them inside the package. I'm writting it with SQL Tools 1.4, I'm also not allowed to do this in SQL+.
This is the code of the package. The cursors' selects were simplified just because they are not the problem, but their structure is like follows below.
CREATE OR REPLACE PACKAGE U3.PKG_TESTE AS
TYPE REC_TYPE IS RECORD(
COL1 VARCHAR2(50) ,
COL2 VARCHAR2(100) ,
COL3 VARCHAR2(20) ,
COL4 VARCHAR2(30) ,
COL5 VARCHAR2(100) ,
COL6 VARCHAR2(50) ,
COL7 NUMBER(3) ,
COL8 VARCHAR2(30) ,
COL9 VARCHAR2(16) ,
COL10 VARCHAR2(50) ,
COL11 NUMBER(4) ,
COL12 VARCHAR2(40)
TYPE REC_TYPE_LIST IS TABLE OF REC_TYPE
INDEX BY BINARY_INTEGER;
TYPE C_RESULTSET IS REF CURSOR;
VAR_TAB_TESTE REC_TYPE_LIST;
PROCEDURE Z_REC_INSTANCE
pUSER_SYS_CODE VARCHAR2,
pSYS_SEG_CODE VARCHAR2,
pComplFiltro VARCHAR2,
pCodInter NUMBER,
cResultset out C_RESULTSET
END PKG_TESTE ;
CREATE OR REPLACE PACKAGE BODY U3.PKG_TESTE
AS
PROCEDURE Z_REC_INSTANCE
pUSER_SYS_CODE varchar2,
pSYS_SEG_CODE varchar2,
pComplFiltro varchar2,
pCodInter number
AS
cursor cur1 is
select 'A' COL1, 'B' COL2, 'C' COL3, 'D' COL4, 'E' COL5,
'F' COL6, 'G' COL7, 'H' COL8
FROM DUAL;
regCur1 cur1%rowtype;
cursor cur2 is
SELECT 'I' C1, 'J' C2, 'K' C3, 'L' C4
FROM DUAL;
regCur2 cur2%rowtype;
varSQL varchar2(4000);
varCOL10s varchar2(100);
varFiltroAtrib varchar2(100);
varCount number(10);
BEGIN
varCount := 1;
open cur1;
Loop
fetch cur1 into regCur1;
exit when cur1%notfound;
open cur2;
Loop
fetch cur2 into regCur2;
exit when cur2%notfound;
VAR_TAB_TESTE(varCount).COL1 := regCur1.COL1;
VAR_TAB_TESTE(varCount).COL2 := regCur1.COL2;
VAR_TAB_TESTE(varCount).COL3 := regCur1.COL3;
VAR_TAB_TESTE(varCount).COL4 := regCur1.COL4;
VAR_TAB_TESTE(varCount).COL5 := regCur1.COL5;
VAR_TAB_TESTE(varCount).COL6 := regCur1.COL6;
VAR_TAB_TESTE(varCount).COL7 := regCur1.COL7;
VAR_TAB_TESTE(varCount).COL8 := regCur1.COL8;
VAR_TAB_TESTE(varCount).COL9 := regCur2.C1;
VAR_TAB_TESTE(varCount).COL10 := regCur2.C2;
VAR_TAB_TESTE(varCount).COL11 := regCur2.C3;
VAR_TAB_TESTE(varCount).COL12 := regCur2.C4;
varCount := varCount + 1;
end Loop;
end Loop;
-- I'd like to do something like this:
-- c_resultset := select * from var_tab_teste;
-- but i don't know how to put the records of the type on the ref cursor,
-- probably because I don't know how to select them
-- pl/sql: ora-00902: invalid datatype
for varCount in (select COL1 from table( CAST ( VAR_TAB_TESTE AS REC_TYPE_LIST ) ))
loop
dbms_output.put('WORKS');
end loop;
END Z_REC_INSTANCE;
END PKG_TESTE;
SHOW ERR PACKAGE PKG_TESTE;
SHOW ERR PACKAGE BODY PKG_TESTE;
SHOW ERR PROCEDURE PKG_TESTE.Z_REC_INSTANCE;
I'm using:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
Thanks in advance.I don't have the exact version but in 9iOK I lied, I found a 9i instance ;-)
Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
JServer Release 9.2.0.7.0 - Production
SQL> CREATE TABLE table_name (column_name VARCHAR2 (30));
Table created.
SQL> INSERT INTO table_name VALUES ('value one');
1 row created.
SQL> INSERT INTO table_name VALUES ('value two');
1 row created.
SQL> COMMIT;
Commit complete.
SQL> CREATE OR REPLACE PACKAGE package_name
2 AS
3 TYPE collection_type_name IS TABLE OF table_name%ROWTYPE;
4
5 FUNCTION function_name
6 RETURN collection_type_name PIPELINED;
7 END package_name;
8 /
Package created.
SQL> CREATE OR REPLACE PACKAGE BODY package_name
2 AS
3 FUNCTION function_name
4 RETURN collection_type_name PIPELINED
5 IS
6 BEGIN
7 FOR record_name IN (SELECT column_name
8 FROM table_name) LOOP
9 PIPE ROW (record_name);
10 END LOOP;
11
12 RETURN;
13 END function_name;
14 END package_name;
15 /
Package body created.
SQL> VARIABLE variable_name REFCURSOR;
SQL> BEGIN
2 OPEN :variable_name FOR
3 SELECT column_name
4 FROM TABLE (package_name.function_name);
5 END;
6 /
PL/SQL procedure successfully completed.
SQL> PRINT variable_name;
COLUMN_NAME
value one
value two
SQL>I recommend though that you test this thoroughly. There were bugs with this approach when it was newly introduced that prevented you from dropping the package. -
How to put Stored Procedure in Receiver JDBC channel
Hi all,Good Evening,Iam using a JDBC to JDBC scenario in which I have to move the data from database into XI and we all know that the Interfaces which require stored procedures on Oracle database server for publishing the data needs to be called in combination of BPM & Receiver JDBC adapter.
In this method, a dummy interface will be created for triggering the process. This interface could be designed using any adapter which works on polling mechanism (sender JDBC/File). Dummy interface will invoke a small BPM designed for each business object. BPM will make a synchronous call to Oracle database by calling underlying stored procedure. Stored procedure will return the result set by using a cursor. BPM will send this result set to target application.
Now my question is how to put a stored procedure in a receiver JDBC channel which need to collect the data from database when BPM makes a synchronous call.
Because it is required in my scenario,can any one tell me how and where to put stored Procedure in JDBC receiver channel.
Thanks in advance,
Regards,
PrajwalYour action should be EXECUTE for stored procedures in Message mapping.
<StatementName5>
<storedProcedureName action=u201D EXECUTEu201D>
<table>realStoredProcedureeName</table>
<param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName >
</StatementName5>
action=EXECUTE
Statements with this action result in a stored procedure being executed. The name of the element is interpreted as the name of the stored procedure in the database. If you use the optional <table> element, the value specified here is used as the stored procedure name. This enables you, for example, to define stored procedure names containing non-XML-compatible characters or characters that prevent them from being used in interface definitions in the Integration Builder/PCK. If specified, <table> must be the first element in the block within <dbTableName>.
The elements within the stored procedure are interpreted as parameters. They can optionally have the attribute isInput=u201C1u201C (input parameter) or isOutput=u201C1u201C (output parameter) or both (INOUT parameter). If both attributes are missing, the element is interpreted as an input parameter. The parameter names must be identical to those of the stored procedure definition.
The attribute type=<SQL-Datatype> , which describes the valid SQL data type, is mandatory for all parameter types (IN, OUT, INOUT).
http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
/people/sap.user72/blog/2005/10/15/jdbc-adapter-execution-mode-chained-or-unchained
/people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi -
How to put the background image in Title Window?
Hi,
I'm newbie in flex. I 'm using Flex 4.
Can anyone give me some guidelines on how to put the background image in Title Window?
Is it possible to do this?
Thanks.Hi,
Check the below sample code
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
s|BorderContainer {
background-image:Embed(source="image/wheres_the_green_rez.jpg");
background-image-fill-mode:clip;
</fx:Style>
<s:TitleWindow width="100%" height="100%">
<s:BorderContainer width="100%" height="100%"/>
</s:TitleWindow>
</s:Application>
Regards,
Anitha
Maybe you are looking for
-
After upgrading my iTunes installation to 10.4 my toolbar has stopped working completely. The start/stop, back and forward, volume slider and restore buttons do nothing at all when clicked. They worked perfectly before the upgrade, and I have reboote
-
I just bought a new iPhone and accidentally backed it up with my old iPhone backup, I do not want this. I lost everything on my new phone and I need it back. PLEASE HELP! This includes pictures and texts, etc.
-
HP Monitor to Mini Display Port
My 3 year old 24" Cinema Display died and I'm looking to replace it with this HP Monitor: http://www.macmall.com/p/HP-Monitors/product~dpno~8907838~pdp.gjdeebd First of all is anyone familiar with this monitor? It is very well reviewed and seeme like
-
Result of dimension.getImplicitLocations()
Hi , I want to understand the working of getImplicitLocations() on a Dimesnion. 1. Will it give me any result if I apply this method on a not fully implicit dimension(Dimesnion.isImplicit() is False)? if it gives implicit locations which level Implic
-
Mac Pro Airport Extreme Card Install
So I've read just about every thread that I can find on this, and there's been so much discrepancy on which antenna wires to connect. I've tried just about every combination, and the card is showing up in the system profiler (en2), but when I click "