PLS-00358:error (Rel. 8.1.7.2.0) but in Rel. 9.2.0.5.0 it works f
Hello everybody!
This is the version:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
PL/SQL Release 8.1.7.2.0 - Production
and this is the code:
DECLARE
tab_idlocation PKG_TEATRI_VOD.tab_num;
tab_idEvento PKG_TEATRI_VOD.tab_num;
tab_Evento PKG_TEATRI_VOD.tab_appevento_titolo;
tab_nomelocation PKG_TEATRI_VOD.tab_applocation;
tab_dataprima PKG_TEATRI_VOD.tab_app_prima_ultima;
tab_dataUltima PKG_TEATRI_VOD.tab_app_prima_ultima;
BEGIN
select c.id_evento, b.evento, to_char(c.prima, 'dd/mm/yyyy'),to_char(c.ultima, 'dd/mm/yyyy'),
a.id_location, location
bulk collect into tab_IdEvento, tab_Evento, tab_dataPrima , tab_dataUltima, tab_IdLocation, tab_nomelocation
from
( select id_location, location from location where upper(citta) = 'MILANO' ) a,
( select /*+ index( evento SETTORE_EVENTO_FK) */ distinct evento,id_location from evento
where ( trunc(sysdate) between prima and ultima or prima >= trunc(sysdate) )
and id_settore = 3 and ( lower(evento) like '%'||''||'%' or lower(evento)like '%'||' '||''||'%' or '' is null )
and ( id_location = '' or '' is null ) ) b,
( select min(id_evento) id_evento ,min(prima) prima ,max(ultima) ultima , evento, id_location from evento
where ( trunc(sysdate) between prima and ultima or prima >= trunc(sysdate) ) and id_settore = 3
group by evento, id_location ) c
where a.id_location = b.id_location
and b.id_location= c.id_location
and c.evento = b.evento
order by evento; -- line 24
END;
ERROR at line 24:
ORA-06550: line 24, column 10:
PLS-00358: column 'EVENTO' exists in more than one table; use qualifier
ORA-06550: line 9, column 1:
PL/SQL: SQL Statement ignored
But in release
Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
PL/SQL Release 9.2.0.5.0 - Production
It works fine. Why?
Thanks,
Antonio
Hi Samujjwal .....
DELETE abc
WHERE num_col = 1
AND (num_col,ROWNUM) IN ( SELECT num_col
, r_num
FROM ( SELECT num_col
, ROWNUM r_num
FROM abc
WHERE num_col = 1
MINUS
SELECT num_col
, r_num
FROM ( SELECT num_col
, MAX(r_num) r_num
FROM ( SELECT num_col
, ROWNUM r_num
FROM abc
WHERE num_col = 1
GROUP BY num_col
)Wow! That's quite a query!
I agree with Bradd - I think the problem is that the ORACLE psuedo-column ROWNUM cannot be relied upon for use in such WHERE clauses. It's really just a row counter for the returned result set from a query or sub-query. Oracle will return a result set ordered in any way it cares to - unless you direct to do otherwise.
Did you get the same result when you ran the query with ROWID ?
Similar Messages
-
hi pls help me my iphone is forest i update but after my iphone is devices open is not working i click but sim card installed , attempting to activate this one coming pls help me answer me
Sounds like your phone was hacked to use with your carrier. Updating it has relocked the phone to it's original carrier. You will not get the phone working again without a SIM from the original carrier.
-
Hello everybody!
This is the version:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
PL/SQL Release 8.1.7.2.0 - Production
and this is the code:
DECLARE
tab_idlocation PKG_TEATRI_VOD.tab_num;
tab_idEvento PKG_TEATRI_VOD.tab_num;
tab_Evento PKG_TEATRI_VOD.tab_appevento_titolo;
tab_nomelocation PKG_TEATRI_VOD.tab_applocation;
tab_dataprima PKG_TEATRI_VOD.tab_app_prima_ultima;
tab_dataUltima PKG_TEATRI_VOD.tab_app_prima_ultima;
BEGIN
select c.id_evento, b.evento, to_char(c.prima, 'dd/mm/yyyy'),to_char(c.ultima, 'dd/mm/yyyy'),
a.id_location, location
bulk collect into tab_IdEvento, tab_Evento, tab_dataPrima , tab_dataUltima, tab_IdLocation, tab_nomelocation
from
( select id_location, location from location where upper(citta) = 'MILANO' ) a,
( select /*+ index( evento SETTORE_EVENTO_FK) */ distinct evento,id_location from evento
where ( trunc(sysdate) between prima and ultima or prima >= trunc(sysdate) )
and id_settore = 3 and ( lower(evento) like '%'||''||'%' or lower(evento)like '%'||' '||''||'%' or '' is null )
and ( id_location = '' or '' is null ) ) b,
( select min(id_evento) id_evento ,min(prima) prima ,max(ultima) ultima , evento, id_location from evento
where ( trunc(sysdate) between prima and ultima or prima >= trunc(sysdate) ) and id_settore = 3
group by evento, id_location ) c
where a.id_location = b.id_location
and b.id_location= c.id_location
and c.evento = b.evento
order by evento; -- line 24
END;
ERROR at line 24:
ORA-06550: line 24, column 10:
PLS-00358: column 'EVENTO' exists in more than one table; use qualifier
ORA-06550: line 9, column 1:
PL/SQL: SQL Statement ignored
But in release
Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
PL/SQL Release 9.2.0.5.0 - Production
It works fine. Why?
Thanks,
AntonioThanks,
but the problem is: Why this block works fine in ORACLE 9i?, what are the eventual different parameters between Oracle 8i and Oracle 9i, when I'm not use qualifier in clause ORDER BY. -
This is the version:
Oracle8i Enterprise Edition Release 8.1.7.2.0 - Production
PL/SQL Release 8.1.7.2.0 - Production
and this is the code:
DECLARE
tab_idlocation PKG_TEATRI_VOD.tab_num;
tab_idEvento PKG_TEATRI_VOD.tab_num;
tab_Evento PKG_TEATRI_VOD.tab_appevento_titolo;
tab_nomelocation PKG_TEATRI_VOD.tab_applocation;
tab_dataprima PKG_TEATRI_VOD.tab_app_prima_ultima;
tab_dataUltima PKG_TEATRI_VOD.tab_app_prima_ultima;
BEGIN
select c.id_evento, b.evento, to_char(c.prima, 'dd/mm/yyyy'),to_char(c.ultima, 'dd/mm/yyyy'),
a.id_location, location
bulk collect into tab_IdEvento, tab_Evento, tab_dataPrima , tab_dataUltima, tab_IdLocation, tab_nomelocation
from
( select id_location, location from location where upper(citta) = 'MILANO' ) a,
( select /*+ index( evento SETTORE_EVENTO_FK) */ distinct evento,id_location from evento
where ( trunc(sysdate) between prima and ultima or prima >= trunc(sysdate) )
and id_settore = 3 and ( lower(evento) like '%'||''||'%' or lower(evento)like '%'||' '||''||'%' or '' is null )
and ( id_location = '' or '' is null ) ) b,
( select min(id_evento) id_evento ,min(prima) prima ,max(ultima) ultima , evento, id_location from evento
where ( trunc(sysdate) between prima and ultima or prima >= trunc(sysdate) ) and id_settore = 3
group by evento, id_location ) c
where a.id_location = b.id_location
and b.id_location= c.id_location
and c.evento = b.evento
order by evento; -- line 24
END;
ERROR at line 24:
ORA-06550: line 24, column 10:
PLS-00358: column 'EVENTO' exists in more than one table; use qualifier
ORA-06550: line 9, column 1:
PL/SQL: SQL Statement ignored
But in release
Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
PL/SQL Release 9.2.0.5.0 - Production
It works fine. Why?
What'is the difference when i'm not use qualifier,
in the ORDER BY clause,
between Oracle 8.1.7.2.0 and Oracle 9.2.0.5.0
Thanks,
AntonioThanks,
but the problem is: Why this block works fine in ORACLE 9i?, what are the eventual different parameters between Oracle 8i and Oracle 9i, when I'm not use qualifier in clause ORDER BY. -
PLS-00907 Error but referenced package compiled
Hi I am experiencing some problems with Database Link.
In DEV Environment,
I have two database, DB A and DB B.
In DB A I have package name SUPPORT_PKG and inside it I have a function named HISTORY_UPDATE.
Package is compiled correctly in DB A and working fine.
I created a procedure CALL_HIST_UPD in DB B to execute SUPPORT.PKG.HISTORY_UPDATE@A through DB LINK.
and it gave me PLS-00907 error.
UAT environment has the same setup of user and package as DEV.
then I tried to copy the CALL_HIST_UPD to DB B in UAT and it can be compiled sucessfully in UAT.so I do the following
Back to Dev again
I tried to figure what's going on until I decided to replace the header specification SUPPORT.PKG.HISTORY_UPDATE
with the declaration part from the body and recompiled the whole package again, and this time I can compile the procedure in DB B.
I am curious and check the header in UAT and found that UAT Headers is the same exactly with the DEV Headers
before I replaced it with the new one by copying from the body. I am curious why the DEV environment give the PLS-00907 error at the first time, even at that time package in A are compiled nicely.
Let me know if the question is not clear.
thanks for your helpTry this -
CREATE OR REPLACE PACKAGE data_mgmt AUTHID CURRENT_USER
IS
FUNCTION hy_name (in_dt DATE, in_option_txt VARCHAR2)
RETURN VARCHAR2;
END data_mgmt;
CREATE OR REPLACE PACKAGE BODY data_mgmt
IS
FUNCTION hy_name (in_dt DATE, in_option_txt VARCHAR2)
RETURN VARCHAR2
IS
return_txt VARCHAR2 (25);
BEGIN
RETURN return_txt;
END hy_name;
END data_mgmt;
/ -
Getting pls-00428 error.
Hi all,
I'm trying to fix some invalid objects in our 11g database and i'm getting a pls-00428 error. Not sure where the issue is originating at (keep in mind, my IT team and I are not thoroughly experienced with 11g, so I apologize if this sounds a little too newbie-ish)
Here's the plsql:
create or replace
FUNCTION detail_cogs (
sSKU varchar2
--,dtFrom date := sysdate
return number
is
nRetval number;
begin
select *
--SUM(cost * ieqty) into nRetval
from (
select
ie.qty ieqty
,ie.part
,ic.validdate
,ic.cost
,LAG(validdate) OVER (partition by ic.part order by validdate desc) prev_entry_time
from
oracle2_partexplosion_mv ie
,oracle2_itemcogs_mv ic
where
ie.sku = sSKU
and ic.part = ie.part
and ic.validdate <= sysdate
order by part, validdate desc
where
prev_entry_time is null;
return nRetval;
exception
when others then
return null;
end;Welcome to the forum.
Reading the documentation will save you:
PLS-00428: an INTO clause is expected in this SELECT statement
Cause: The INTO clause of a SELECT INTO statement was omitted. For example, the code might look like SELECT deptno, dname, loc FROM dept WHERE ... instead of SELECT deptno, dname, loc INTO dept_rec FROM dept WHERE ... In PL/SQL, only a subquery is written without an INTO clause.
http://download.oracle.com/docs/cd/E11882_01/server.112/e10880/pcmus.htm#sthref17855
http://www.oracle.com/pls/db112/search?word=select+into&partno=e10472
Doc home: http://www.oracle.com/pls/db112/homepage
And please change or remove this part from your code anyway, since it's nothing but a bug:
exception
when others then
return null;11g compiler warned you already about that, I may hope... -
PLS-00428 Error when creating a new trigger
Hi,
I'm encountering the PLS-00428 error when I run the script below.
CREATE OR REPLACE TRIGGER TIBCOUSER.po_response_trigger
BEFORE INSERT ON po_response FOR EACH ROW
BEGIN
IF:NEW.ariba_processsequence is null then
SELECT pttransid AS pttransid, 'Product Test Pass 1' AS pttransname, aribaorderid AS aribaorderid, '0' AS errorcode, '' AS MESSAGE, SYSDATE AS ariba_insertdate
FROM po_request
WHERE adb_l_delivery_status = 'N';
UPDATE po_request
SET adb_l_delivery_status = 'C'
WHERE adb_l_delivery_status = 'N';
END IF;
END;
Can someone point out what is missing or what is wrong with the script? Any help would be much appreciated.
Regards,
JiggerHi Jigger,
I was able to create the trigger using the script below.That's nice, you got the trigger created. Below is your trigger, I have added some comments.
create or replace trigger tibcouser.po_response_trigger
before insert or update
on po_response
for each row
declare
-- 1. These variables should really be anchored to po_response
-- 2. They should be named differently than columns in po_response
-- 3. It seems that you don't need them (See 7.)
pttransid integer := null;
pttransname varchar2(255) := null;
aribaorderid varchar2(255) := null;
errorcode integer := null;
message varchar2(255) := null;
ariba_insertdate date := null;
adb_l_delivery_status char(1) := null;
begin
-- 4. This is never true, since adb_l_delivery_status is null, here
-- So, I guess your trigger never does anything, so in a sense it works
if (adb_l_delivery_status = 'N')
then
-- 5. This select will raise too_many_rows, when there is more than one record in po_response.
-- 6. It seems you will have a problem with mutating table
-- 7. The select doesn't do anything, you never use any of the values selected
-- 8. The select is confusing, since variables are named equally to columns
-- 9. You select constants, why not just assign them right away
select pttransid
,pttransname
,aribaorderid
,'0'
,sysdate
into pttransid
,pttransname
,aribaorderid
,errorcode
,message
,ariba_insertdate
from po_response;
-- 10. This update will update ALL records in po_request, probably not what you want.
update po_request
set adb_l_delivery_status = 'C';
end if;
-- 11. Good practise dictates end po_response_trigger;
end;
/In general, when you think your post has been answered, then kindly mark it as such.
Regards
Peter -
PLS-00201 error calling function in package member
Hello,
I'm trying to call a function defined in a PL/SQL package, but receiving a PLS-00201 error.Sorry, a finger-controller error caused me to submit before I was ready. I'm having the module replaced today. :)
After rethinking my decision to post here, I decided not to. I've never received a helpful answer, probably because the issues are not simple... Too bad. -
How to fix the PLS-00123 error?
I construct about the oracle spatial sql as follow:
declare
ord sdo_ordinate_array := sdo_ordinate_array();
begin
begin for i IN 1 ..5624 LOOP
ord extend;
end LOOP;
ord(1) := number1;
ord(2) := number2;
ord(3) := number3;
ord(4) := number4;
insert into table(shape,....) values(SDO_GEOMETRY(2002,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),ord));
END;
Because the count of geometry node is very long. I got the PLS-00123 error when I execute the state? somebody help me fix the problem?????
Message was edited by:
user646459It seems more on PL/SQL error to me. Have you posted your question in PL/SQL forum?
Ming Man -
Cyclic PLS-00538 and PLS-00539 errors?
I've defined a supertype, t_cliente, and derived two subtypes, t_cliente_pers and t_cliente_soc. The first one has 6 member functions and the latter ones override only two of them.
Every time I launch the script for creation I get PLS-00538 and PLS-00539 errors, but I'm not able to find out why.
The explanation for PLS-00538 is: subprogram or cursor "string" is declared in an object type specification and must be defined in the object type body.
For PLS-00539 is: subprogram "string" is declared in an object type body and must be defined in the object type specification.
It's a cycle! And after all I defined these 2 functions in type specification and type body.
I'm using 10g XE. Here's the code:
create TYPE t_indirizzo AS OBJECT (
via VARCHAR(45),
numero NUMBER(4),
cap INTEGER(5),
citta VARCHAR(30),
provincia VARCHAR(30),
regione VARCHAR(30),
MEMBER FUNCTION indirizzoCompleto RETURN VARCHAR
create TYPE t_telefono AS OBJECT (
num_tel NUMBER(15)
create TYPE t_telefono_array IS VARRAY(3) OF t_telefono
create TYPE t_anagrafica AS OBJECT (
nome VARCHAR(45),
cognome VARCHAR(45),
sesso CHAR(1),
cod_fiscale VARCHAR(16),
data_nascita DATE
create TYPE t_ragioneSociale AS OBJECT (
nome_soc VARCHAR(45),
data_cost DATE,
part_iva NUMBER(11)
create TYPE t_persona AS OBJECT (
dati_anagrafici t_anagrafica,
indirizzo t_indirizzo,
email VARCHAR(45),
telefono t_telefono_array
create TYPE t_societa AS OBJECT (
ragione_sociale t_ragioneSociale,
indirizzo t_indirizzo,
email VARCHAR(45),
telefono t_telefono_array,
persona_rif REF t_persona
create TYPE t_cliente AS OBJECT (
cod_cliente NUMBER(8),
MEMBER FUNCTION incFatti RETURN NUMBER,
MEMBER FUNCTION incSubiti RETURN NUMBER,
MEMBER FUNCTION incFattiPeriodo RETURN NUMBER, /* this is the first function that gives me problems */
MEMBER FUNCTION incSubitiPeriodo RETURN NUMBER, /* this is the second one */
MEMBER FUNCTION nomeCliente RETURN VARCHAR,
MEMBER FUNCTION tipoCliente RETURN VARCHAR
) NOT FINAL
create or replace
TYPE BODY t_cliente AS
MEMBER FUNCTION incFatti RETURN NUMBER
IS incidenti NUMBER;
BEGIN
SELECT count(i. cod_incidente) INTO incidenti
FROM incidente i, mezzo m
WHERE SELF.cod_cliente = m.proprietario.cod_cliente AND m.num_targa = i.mezzo. num_targa AND i. responsabilita = 'c';
RETURN (incidenti);
END;
MEMBER FUNCTION incSubiti RETURN NUMBER
IS incidenti NUMBER;
BEGIN
SELECT count(i. cod_incidente) INTO incidenti /* here's the first PLS-00538 error */
FROM incidente i, mezzo m /* here's the second PLS-00538 error */
WHERE SELF.cod_cliente = m.proprietario.cod_cliente AND m.num_targa = i.mezzo. num_targa AND i. responsabilita = 's';
RETURN (incidenti);
END;
MEMBER FUNCTION incFattiPeriodo(da DATE, a DATE) RETURN NUMBER /* here's the first PLS-00539 error */
IS incidenti NUMBER;
BEGIN
SELECT count(i. cod_incidente) INTO incidenti
FROM incidente i , mezzo m
WHERE SELF. cod_cliente = m.proprietario.cod_cliente AND m. num_targa = i.mezzo. num_targa AND i. responsabilita = 'c' AND (i.data_inc BETWEEN da and a);
RETURN (incidenti);
END;
MEMBER FUNCTION incSubitiPeriodo(da DATE, a DATE) RETURN NUMBER /* here's the second PLS-00539 error */
IS incidenti NUMBER;
BEGIN
SELECT count(i. cod_incidente) INTO incidenti
FROM incidente i , mezzo m
WHERE SELF. cod_cliente = m.proprietario.cod_cliente AND m. num_targa = i.mezzo. num_targa AND i. responsabilita = 's' AND (i.data_inc BETWEEN da and a);
RETURN (incidenti);
END;
MEMBER FUNCTION nomeCliente RETURN VARCHAR
IS
BEGIN
RETURN TO_CHAR(cod_cliente);
END;
MEMBER FUNCTION tipoCliente RETURN VARCHAR
IS
BEGIN
RETURN ('u');
END;
END;
create TYPE t_cliente_pers UNDER t_cliente (
persona REF t_persona,
OVERRIDING MEMBER FUNCTION nomeCliente RETURN VARCHAR,
OVERRIDING MEMBER FUNCTION tipoCliente RETURN VARCHAR
) NOT FINAL
create or replace
TYPE BODY t_cliente_pers AS
OVERRIDING MEMBER FUNCTION nomeCliente RETURN VARCHAR
IS nc VARCHAR(90);
BEGIN
SELECT concat(DEREF(SELF.persona).dati_anagrafici.nome, concat(' ',DEREF(SELF.persona).dati_anagrafici.cognome)) INTO nc
FROM DUAL;
RETURN (nc);
END;
OVERRIDING MEMBER FUNCTION tipoCliente RETURN VARCHAR
IS
BEGIN
RETURN ('p');
END;
END;
create TYPE t_cliente_soc UNDER t_cliente (
societa t_societa,
OVERRIDING MEMBER FUNCTION nomeCliente RETURN VARCHAR,
OVERRIDING MEMBER FUNCTION tipoCliente RETURN VARCHAR
) NOT FINAL
create or replace
TYPE BODY t_cliente_soc AS
OVERRIDING MEMBER FUNCTION nomeCliente RETURN VARCHAR
IS
BEGIN
RETURN (societa.ragione_sociale.nome_soc);
END;
OVERRIDING MEMBER FUNCTION tipoCliente RETURN VARCHAR
IS
BEGIN
RETURN ('s');
END;
END;
/The declarations of functions incFattiPeriodo and incSubitiPeriodo differ between type specification and type body (the ones in the type body have formal parameters).
-
When trying to access photo stream on Apple TV, I am getting the error message terms and conditions have changed, but when I go into iCloud on my Mac the new terms and conditions are not appearing - How can I manually agree to them ?
Welcome to the Apple Community.
The following article(s) may help you.
Photo Stream ToU's -
I am running Windows 7 and have tried to install iCloud. No matter what instructions I follow, I still get the error message "This Apple ID is valed but is not an iCloud account." How can I resolved this?
I've tried both. First, I tried on my pc, where iTunes had installed iCloud when it last updated. I have iTunes installed on this computer (and on my iPad and iPhone), but that wasn't the issue.
So I went online, thinking I needed a separate iCloud Apple ID, but it prompted me for my current Apple ID and gave me the message about my ID being "valid" but not an iCloud account," which, lol, was what it had asked me to do in order to create one. I checked, and at least one other user is having the same issue. I'll attempt to copy/paste the Support request url: https://discussions.apple.com/thread/4430653?tstart=0
Thank you for any help you can give.
Trish -
When I go to log onto iCloud using my Windows 7 and it asks for my login information, I get the error saying my Apple ID is valid but not an iCloud account. How do I get an iCloud account?
I don't have any apple products personally, this is for work to use Photo Stream so when Superintendents & Project Managers take pictures of their construction site, I am able to have those images immediately.
Thank youYou can not create an iCloud account using a PC, you will need an Apple product. Once the account exists you can logon to it from a PC.
-
I bought mountain lion for my macbook pro and I'm trying to install it and it says there was an error and I need to boot up but I don't have any other start up disks to boot up with. Are there any suggestions of how I could get my computer started?
Hold the Option key down and restart. Select one of the drives that comes up and hit the Return key.
-
Error: unexpected XML reader state. expected: END but found: START:
I am getting following error while invoking method 'GetVersionInfo' (.net web service over dll) which takes one input parameter(string) and gives two output parameters(both short):
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception: deserialization
error: unexpected XML reader state. expected: END but found: START:
{UPPLink}pnVersionMajor
ORA-06512: at "SYS.UTL_DBWS", line 388
ORA-06512: at "SYS.UTL_DBWS", line 385
ORA-06512: at line 40
Expected Request is as follows:
POST /UPPLink/UPPLink.asmx HTTP/1.1
Host: 172.16.1.38
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "UPPLink/GetVersionInfo"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetVersionInfo xmlns="UPPLink">
<ignore>string</ignore>
</GetVersionInfo>
</soap:Body>
</soap:Envelope>
EXpected Response is as follows:
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetVersionInfoResponse xmlns="UPPLink">
<GetVersionInfoResult>
<pnVersionMajor>short</pnVersionMajor>
<pnVersionMinor>short</pnVersionMinor>
</GetVersionInfoResult>
</GetVersionInfoResponse>
</soap:Body>
</soap:Envelope>
The PL/SQL code I am using is as follows:
DECLARE
service_ sys.utl_dbws.SERVICE;
call_ sys.UTL_DBWS.call;
service_qname sys.utl_dbws.QNAME;
port_qname sys.utl_dbws.QNAME;
operation_qname sys.utl_dbws.QNAME;
string_type_qname sys.utl_dbws.QNAME;
number_type_qname sys.utl_dbws.QNAME;
retx ANYDATA;
strEntry VARCHAR2(100);
retx_string VARCHAR2(100);
majorVersion NUMBER;
minorVersion NUMBER;
params sys.utl_dbws.ANYDATA_LIST;
v_outputs sys.utl_dbws.anydata_list;
BEGIN
dbms_output.put_line('Starting Function');
service_qname := sys.utl_dbws.to_qname(null, 'UPPLink');
strEntry := 'vab';
dbms_output.put_line('Creating Service');
service_ := sys.utl_dbws.create_service(HTTPURITYPE('http://172.16.1.38/UPPLink/UPPLink.asmx?WSDL'), service_qname);
dbms_output.put_line('Creating Operation');
operation_qname := sys.utl_dbws.to_qname(null, 'GetVersionInfo');
dbms_output.put_line('Calling Service');
call_ := sys.utl_dbws.create_call(service_, null, operation_qname);
sys.utl_dbws.set_property(call_, 'SOAPACTION_USE', 'true');
sys.utl_dbws.set_property(call_, 'SOAPACTION_URI', 'UPPLink/GetVersionInfo');
sys.utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
string_type_qname := sys.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
number_type_qname := sys.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'short');
sys.utl_dbws.add_parameter(call_, 'ignore', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'pnVersionMinor', number_type_qname, 'ParameterMode.OUT');
sys.utl_dbws.set_return_type(call_, number_type_qname);
params(0) := ANYDATA.convertvarchar2(strEntry);
dbms_output.put('Invoking with Input Parameter: ');
dbms_output.put_line(ANYDATA.ACCESSVARCHAR2(params(0)));
retx := sys.utl_dbws.invoke(call_, params);
dbms_output.put_line('Invoke complete');
majorVersion := retx.accessnumber;
dbms_output.put_line('Major Version ' || majorVersion);
v_outputs := SYS.utl_dbws.get_output_values(call_);
minorVersion := ANYDATA.AccessNumber(v_outputs(1));
dbms_output.put_line('Minor Version ' || minorVersion);
sys.utl_dbws.release_service(service_);
END;
/Actually, the name needs to match what is specified in the WSDL file.
Maybe you are looking for
-
Runtime Error in VS2012 (Update4) LightSwitch HTML Client
I have a desktop (Silverlight) application, I upgraded the project to add the HTML Client. Now when I run the HTML Client, it shows this message box on the browser: "The application could not be loaded. Please try refreshing the page. Failed to load
-
.Mac Web Gallery - Limit to photos per gallery?
Is there a limit to how many photos you can have in any one gallery? I've dedicated 5 GB to my .Mac web gallery and have published 10 or so galleries totaling approximately 700 MB. There is one project that I want to make into a gallery that is 307 p
-
IPhoto event icons not displaying in chronological order. How do I fix?
iPhoto event icons not displaying in chronological order. How do I fix?
-
Commvault issue with JobResults on NSS volume
Hi all, we see an issue with Commvault 9R2 (sp10) using a Linux i-data agent client on OES2SP3 x64 backing up (clustered) NSS volumes. For speed we, this case, do not want to use a NSS i-data agent, so we just leverage the Linux i-data agent. The iss
-
Dear Experts, I have an issue with tax classification of material master , In MMR i have maintained three tax categories ,with deffreent tax classifiaction , and i want to access record of only one last 3rd tax classifiaction from MMR in sales or