Prefixing a sequence name with a schema in 9041
G'day,
I'm attempting to upgrade to Toplink 9041, and one thing i've noticed is that the Workbench does not allow any special characters in the name of a sequence. This does not allow us to prefix sequence names with a schema, the same way our tables are prefixed.
What gives?
Cheers,
Troy.
You can do this from a stored procedure that you invoke from your pre-mapping trigger:
- Scan the source and get the max_id
- execute immediate 'drop sequence; create sequence ... start with '||max_id+1
Etc.
Good luck, Erik Ykema
Similar Messages
-
JDeveloper - ESB / BPEL - JMS Adapter - prefix queue name with db schema
When I use the JMS Adapter in ESB to create a new message queue producer or consume using database (AQ) I'm experiencing a problem when selecting the queue.
I can browse the queue in the database but when I have selected the queue JDeveloper prefix it with the schema name owning the queue.
Example:
java:comp/resource/DocumentQueueResourceProvider/Queues/QUEUES.DOCUMENT_IMPORT_QUEUE
Schema owner is QUEUES and the name of the queue is DOCUMENT_IMPORT_QUEUE.
The problem is when I try to use it its unable to look up the queue and I have to manually remove the prefix from .wsdl file before deploying it - as with setting mcf.IsTransacted='false'.
When the resource provider finds the queue and exposes it in the JNDI three it does it without the prefix.
Question: How do I either:
a) make the schema prefix be removed by JDeveloper
b) make the resource provider prefix the queue name with the schema name.
Anybody?
Best regards
Christian DamsgaardTry this:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.yourcompany.com/msg"
xmlns:tns="http://www.yourcompany.com/msg"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:element name="rootnode" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eof}"/>
</xsd:schema>
This will result in a single node xml.
Edited by: user472896 on Sep 22, 2010 10:29 AM -
Unable to access the objects with out schema as prefix.. can any body help
Hi,
i am using 10g.I have one problem like i unable to get the table access with out mention prefix for that table.
but i created public synonym and gave all grants to all users also. but still i need to mention schema name as prefix otherwise it give the error..
can any body tell me reason and give me solution.
ex: owner:eiis table:eiis_wipstock
connect to: egps schema
in this position if i try with eiis.wipstock it gives error but if i mention like eiis.wiis_wipstock then its working fine.Pl do not spam the forums with duplicate posts - Unable to access the objects with out schema as prefix.. can any body help
-
Using dbms_datapump package to export the schema with the schema name as pa
Hi,
I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
CREATE OR REPLACE PROCEDURE export
IS
h1 number;
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
dbms_datapump.set_parallel(handle => h1, degree => 1);
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
dbms_datapump.detach (handle => h1);
exception
when others then
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
end;
Thank you in advanced
Sriuser12062360 wrote:
Hi,
I am using the pl/sql block to export schema using dbms_datapump package,Now I want to pass the scheme name as the parameter to the procedure and get the .dmp and .log files with the schema name included.
OK, please proceed to do so
>
CREATE OR REPLACE PROCEDURE export
IS
h1 number;
begin
h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'export1', version => 'COMPATIBLE');
dbms_datapump.set_parallel(handle => h1, degree => 1);
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT.LOG', directory => 'DATA_PUMP_DIR', filetype => 3);
dbms_datapump.set_parameter(handle => h1, name => 'KEEP_MASTER', value => 0);
dbms_datapump.metadata_filter(handle => h1, name => 'SCHEMA_EXPR', value => 'IN(''CHECKOUT'')');
dbms_datapump.set_parameter(handle => h1, name => 'ESTIMATE', value => 'BLOCKS');
dbms_datapump.add_file(handle => h1, filename => 'EXPDAT%U' || to_char(sysdate,'dd-mm-yyyy') || '.DMP', directory => 'DATA_PUMP_DIR', filetype => 1);
dbms_datapump.set_parameter(handle => h1, name => 'INCLUDE_METADATA', value => 1);
dbms_datapump.set_parameter(handle => h1, name => 'DATA_ACCESS_METHOD', value => 'AUTOMATIC');
dbms_datapump.start_job(handle => h1, skip_current => 0, abort_step => 0);
dbms_datapump.detach (handle => h1);
exception
when others then
raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
end;
EXCEPTION handler is a bug waiting to happen.
eliminate it entirely -
How to instantiate MovieClips with sequence names
Hi all,
I'm rewriting a game that came from AS2, and passing it to
AS3.
The problem is that I have several different MovieClips in
the Library, with a sequence name ("s_0", "s_1,...).
The question is... how can I use the addChild to instantiate
these movieclips, using these names, sequencially, using a FOR
loop?
I'm trying to get a way, that I don't have the remake all
movieclips, or else I'll be stuck on the desk for a week :P
ThanksI found the answer on other blog.
You have to dinamically make new MovieClips, with a name that
can be a dynamic String.
So the result is the following code.
Make sure you import the wright class to to this
import flash.utils.getDefinitionByName; -
Finding a table with a like %name% in a schema
What is the query I should use to find a table with a like %name% in a schema?
Thank you for any helpselect * from all_tables
where owner = 'YOUR_SCHEMA' and lower(table_name) like '%name%'
/Regards
Dmytro -
Defining entities with XML schema
Hi,
I came across a problem with XML schema's apparent lack of support for entities. e.g. we define an entity like this:
<!ENTITY le "≤" >.
First off I was trying in my XML instance to include an external entity file like this:
<!DOCTYPE wpi [
<!ENTITY % DerwentXmlEntities PUBLIC "-//Derwent//Derwent XML General ENTITIES 20000214//EN"
"derwent-xml-entities.ent">
%DerwentXmlEntities;
]>
<WPI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.derwent.co.uk/wpi.xsd">
but I am not clear on where I should place the file derwent-xml-entities.ent. Everything I tried ended up with:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00202: could not open file "derwent-xml-entities.ent"
Is it possible to include a file like this?
So I tried just defining an entity like this:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE wpi [
<!ENTITY times "×">
<!ENTITY le "≤">
]>
The "times" seems OK, but for "le" I get:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00217: invalid character 8804 (\u2264)
What sort of encoding should I use?
Thanks
Pete<xsd:element name="PsL">
<xsd:annotation>
<xsd:documentation>
**Pseudo List, required as in D-types, the editors often used the
{H control sequence to force an indent to make lists of compounds more
legible. We can't be sure that they are always lists but there is
useful mark-up there that we wouldn't want to lose**
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="PsE" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PsE">
<xsd:annotation>
<xsd:documentation>
Pseudo List Entry
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="PsP" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="PsS" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PsP">
<xsd:annotation>
<xsd:documentation>
Pseudo List Prefix
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="PsP" type="xsd:string"/>
<xsd:element ref="Sub" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Sup" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Em" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="PsS">
<xsd:annotation>
<xsd:documentation>
Pseudo List Suffix
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="PsS" type="xsd:string"/>
<xsd:element ref="Sub" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Sup" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Em" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="Prt">
<xsd:annotation>
<xsd:documentation>
************************ Part Container Element **************
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="PrtNo" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="PrtNm" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PrtNo">
<xsd:annotation>
<xsd:documentation>
PartNo
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="PrtNo" type="xsd:string"/>
<xsd:element ref="Sub" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Sup" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Em" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
xsd:element name="PrtNm">
<xsd:annotation>
<xsd:documentation>
PartName
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="PrtNm" type="xsd:string"/>
<xsd:element ref="Sub" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Sup" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Em" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="L">
<xsd:annotation>
<xsd:documentation>
************************ List Container Element *************
Attribute typ=used by the composition software to decide how to prefix
the list entries, e.g. (a), (A), (i), (1), etc.
AL for AlphaLower
AU for AlphaUpper
RL for RomanLower
RU for RomanUpper
No for Number
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="LP" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="LS" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="typ" use="optional">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="AL"/>
<xsd:enumeration value="AU"/>
<xsd:enumeration value="RL"/>
<xsd:enumeration value="RU"/>
<xsd:enumeration value="No"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="LP">
<xsd:annotation>
<xsd:documentation>
List Paragraph
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="LP" type="xsd:string"/>
<xsd:element ref="Sub" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Sup" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="Em" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="RefD" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="RefF" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="LS">
<xsd:annotation>
<xsd:documentation>
1st level sublist
Attribute typ=used by the composition software to decide how to prefix
the list entries, e.g. (a), (A), (i), (1), etc.
AL for AlphaLower
AU for AlphaUpper
RL for RomanLower
RU for RomanUpper
No for Number
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence minOccurs="1" maxOccurs="unbounded">
<xsd:element ref="LP" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="LSS" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="typ" use="optional">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="AL"/>
<xsd:enumeration value="AU"/>
<xsd:enumeration value="RL"/>
<xsd:enumeration value="RU"/>
<xsd:enumeration value="No"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="LSS">
<xsd:annotation>
<xsd:documentation>
2nd level list
Attribute typ=used by the composition software to decide how to prefix
the list entries, e.g. (a), (A), (i), (1), etc.
AL for AlphaLower
AU for AlphaUpper
RL for RomanLower
RU for RomanUpper
No for Number
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="LP" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="typ" use="optional">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="AL"/>
<xsd:enumeration value="AU"/>
<xsd:enumeration value="RL"/>
<xsd:enumeration value="RU"/>
<xsd:enumeration value="No"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="IndexingCorePt">
<xsd:annotation>
<xsd:documentation>
******** ROOT ELEMENT for Core Patent Indexing *********
** Indexing is composed of Derwent Classification (DC),IPCs,
Fragmentation Coding (Frags), Polymer Indexing, Unlinked Registry numbers
and Keyword Indexing (KI).
Any combination is these three elements is allowed.
Attribute vs =Version number starting at 0
Attribute co =Patent country
Attribute se =Patent serial
Attribute ki =Patent Kind
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="DC" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="IPCs" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="Frag" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="Polymer" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="IdxU" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="KI" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="vs" type ="xsd:NMTOKEN" use="optional"/>
<xsd:attribute name="co" type ="xsd:NMTOKEN" use="required"/>
<xsd:attribute name="se" type ="xsd:NMTOKEN" use="required"/>
<xsd:attribute name="ki" type ="xsd:NMTOKEN" use="required"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="DC">
<xsd:annotation>
<xsd:documentation>
************* DERWENT CLASSIFICATION *******************
** Derwent Classification is divided in 3 main areas:
Chemical(CPI),General & Mechanical (EngPI),
Electronic & Electronical (EPI)
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="CPIs" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="EngPIs" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="EPIs" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="EngPIs" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="EPIs" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:element ref="EPIs" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="CPIs">
<xsd:annotation>
<xsd:documentation>
UNIQUE ELEMENT DC
** Container element for CPI**
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="CPI" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="CPI">
<xsd:annotation>
<xsd:documentation>
UNIQUE ELEMENT CPIs
** CPI is composed of sections A to N (no section I)
Any combination is allowed, there has to be at least one section.
No section can appear twice. The DTD does not enforce this.
Section N can't be on his own. The DTD does not enforce this.
Each single Chemical section is composed of one main class (DCCM)
and zero to many secondary classes (DCCSs). One to many Manual
code (MCCs) has to be applied to a given chemical section.
Attribute section= an allowed Derwent CPI section **
Note that content MCCs is optional as its optional in the backfile
before 19??
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="1" maxOccurs="1">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="DCCM" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="DCCSs" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="MCCs" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
<xsd:element ref="MCCs" minOccurs="1" maxOccurs="1"/>
</xsd:choice>
<xsd:attribute name="sct" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
<xsd:enumeration value="C"/>
<xsd:enumeration value="D"/>
<xsd:enumeration value="E"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="G"/>
<xsd:enumeration value="H"/>
<xsd:enumeration value="J"/>
<xsd:enumeration value="K"/>
<xsd:enumeration value="L"/>
<xsd:enumeration value="M"/>
<xsd:enumeration value="N"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="DCCM" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
** Derwent Class Chemical Main element **
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="DCCSs">
<xsd:annotation>
<xsd:documentation>
** Derwent Classes Chemical Secondary Container element**
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="DCCS" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DCCS" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
** A Derwent Class Chemical Secondary (DCCS) **
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="MCCs">
<xsd:annotation>
<xsd:documentation>
** Manual Codes CPI Container Element **
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="MCC" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="MCC" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
** A Manual Code CPI **
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="EngPIs">
<xsd:annotation>
<xsd:documentation>
**General & Mechanical Sections Container element**
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="EngPI" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="EngPI">
<xsd:annotation>
<xsd:documentation>
UNIQUE ELEMENT EngPIs
** General & Mechanical Sections EngPI is composed of sections
P and Q. Any combination is allowed, with at least one section.
There are no manual codes for these sections.
Each single EngPI section is composed of
one or more Derwent Class Engineering (DCEng) elements.
No section can appear twice. The DTD does not enforce this.
Attribute section= an allowed Derwent EngPI section **
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="DCEngs" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="sct" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="P"/>
<xsd:enumeration value="Q"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="DCEngs">
<xsd:annotation>
<xsd:documentation>
** Derwent Class Engineering Container eement **
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="DCEng" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DCEng" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
** Derwent Class Engineering **
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="EPIs">
<xsd:annotation>
<xsd:documentation>
** Electronic & Electrical Sections EPI **
Container element for EPI
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="EPI" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="EPI">
<xsd:annotation>
<xsd:documentation>
UNIQUE ELEMENT EPIs
** EPI is composed of sections R to X. Any combination is allowed,
with at least one section.
Section R can't be on his own. The DTD does not enforce this.
Each single is composed of one or more Derwent Class Electronic
and Electrical (DCE) elements.
No section can appear twice. The DTD does not enforce this. **
Attribute sct = an allowed Derwent EPI section
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="EPIgp" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="sct" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="R"/>
<xsd:enumeration value="S"/>
<xsd:enumeration value="T"/>
<xsd:enumeration value="U"/>
<xsd:enumeration value="V"/>
<xsd:enumeration value="W"/>
<xsd:enumeration value="X"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="EPIgp">
<xsd:annotation>
<xsd:documentation>
** A Container element to group the related DCE & MCEs elements **
Note that content MCEs is optional as its optional in the backfile
before 19??
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="DCE" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="MCEs" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DCE" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
** Derwent Class Electronic & Electrical (DCE) contains
Manual Codes Electronic & Electrical (MCE) **
** Derwent Class EPI **
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="MCEs">
<xsd:annotation>
<xsd:documentation>
** Manual Codes EPI container element **
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="MCE" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="MCE" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
** A Manual Code EPI **
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="IPCs">
<xsd:annotation>
<xsd:documentation>
********************IPCs Container element *************
** The following xlink construct is a link to the IPC codes on
the WIPO site, this could be added to the DTD to provide the link
without adding any thing to the individual instances
xlink:type (locator) #FIXED "locator"
xlink:rl NMTOKEN #FIXED "IPCs"
xlink:href CDATA #FIXED "http://classifications.wipo.int/fulltext/new_ipc/"
xlink:title CDATA #FIXED "IPC Codes" **
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="IPC" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="IPC">
<xsd:annotation>
<xsd:documentation>
UNIQUE ELEMENT IPCs
** An IPC Code **
** Attribute rnk= Derwent assigned character to indicate type
of IPC:
A= Main IPC
B= Other, unlinked IPCs
C to Y = Linked IPCs and Index Terms
Z= IPC Index Terms
-= Additional terms **
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="rnk" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="A"/>
<xsd:enumeration value="B"/>
<xsd:enumeration value="C"/>
<xsd:enumeration value="D"/>
<xsd:enumeration value="E"/>
<xsd:enumeration value="F"/>
<xsd:enumeration value="G"/>
<xsd:enumeration value="H"/>
<xsd:enumeration value="I"/>
<xsd:enumeration value="J"/>
<xsd:enumeration value="K"/>
<xsd:enumeration value="L"/>
<xsd:enumeration value="M"/>
<xsd:enumeration value="N"/>
<xsd:enumeration value="O"/>
<xsd:enumeration value="P"/>
<xsd:enumeration value="Q"/>
<xsd:enumeration value="R"/>
<xsd:enumeration value="S"/>
<xsd:enumeration value="T"/>
<xsd:enumeration value="U"/>
<xsd:enumeration value="V"/>
<xsd:enumeration value="W"/>
<xsd:enumeration value="X"/>
<xsd:enumeration value="Y"/>
<xsd:enumeration value="Z"/>
<xsd:enumeration value="-"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="Frag">
<xsd:annotation>
<xsd:documentation>
***************BCE INDEXING OR FRAGMENTATION ************
** Fragmentation Container element**
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="FragSub" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="FragSub">
<xsd:annotation>
<xsd:documentation>
UNIQUE ELEMENT Frag
** Fragmentation Sub heading **
** Attribute sjct=The main BCE chemical subject categories
defined by Derwent as subsets. The subsets are designated by the
subheadings MO through M6:
MO Agricultural, pharmaceutical 1963-1969
M1 Agricultural, pharmaceutical natural products
and polymers 1970 to present
M2 Agricultural, pharmaceutical 1970 to present
M3 General chemicals 1970 to present
M4 Dyes 1970 to present
M5 Steroids 1963 to present
M6 Galenicals 1976 to present"**
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="CardRec" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="sjct" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="M0"/>
<xsd:enumeration value="M1"/>
<xsd:enumeration value="M2"/>
<xsd:enumeration value="M3"/>
<xsd:enumeration value="M4"/>
<xsd:enumeration value="M5"/>
<xsd:enumeration value="M6"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="CardRec">
<xsd:annotation>
<xsd:documentation>
** Card Record **
Attribute no =Derwent assigned record number
Attribute mc = Markush DARC Control Code
Attribute trc = Fragmentaion Control Time ranging codes:
M900 Pre-1970
M901 1970-1971
M902 1972-1981 (8126)
M903 1981 (8127) onward
M905
Attribute rn = 910 Codes generated from registry numbers.
Only searchable from 1981
Attribute wd = 911 Wide Disclosure. Only searchable from 1981
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element ref="FCodes" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="RINs" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="SCNs" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="MCNs" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="DRNs" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="DCRs" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
-
WS-I validation failes with imported schema
I'm getting the following error from the WS-I validation checker (Basic Profile 1.1):
faultCode=INVALID_WSDL: Unable to determine namespace of 'messages:SigReplyMessage'.:
Any idea what I'm doing wrong?
My wsdl file looks like this:
<definitions targetNamespace="urn:S3SignatureGenerator"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="urn:S3SignatureGenerator"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema>
<xsd:import id="Messages.xsd"
schemaLocation="../../XSDDocument/Messages.xsd"
namespace="messages"/>
</xsd:schema>
</types>
<message name="ReturnSignature">
<part name="SigAndExp" type="messages:SigReplyMessage"/>
</message>
<message name="RequestSignature">
<part name="Keys" type="messages:SigRequestMessage"/>
</message>
<portType name="SigGenerator">
<operation name="GetSignature">
<input message="tns:RequestSignature"/>
<output message="tns:ReturnSignature"/>
<fault name="sigFault" message="tns:SigFault"/>
</operation>
</portType>
<message name="SigFault">
<part name="faultMessage" element="string"/>
</message>
<binding name="SigGenSoapHttp" type="tns:SigGenerator">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="GetSignature">
<soap:operation soapAction="urn:S3SignatureGenerator/GetSignature"/>
<input>
<soap:body use="literal" parts="SecretKey PublicKey"/>
</input>
<output>
<soap:body use="literal" parts="Signature"/>
</output>
<fault name="sigFault">
<soap:body use="literal" parts="SecretKey PublicKey"/>
</fault>
</operation>
</binding>
<service name="SignatureGenerationService">
<port name="SigGenSoapHttpPort" binding="tns:SigGenSoapHttp">
<soap:address location="tbd"/>
</port>
</service>
</definitions>
Messages.xsd looks like this:
<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org"
targetNamespace="http://www.example.org"
elementFormDefault="qualified">
<xsd:complexType name="sigRequestMessage">
<xsd:sequence>
<xsd:element name="publicKey" type="string"/>
<xsd:element name="privateKey" type="string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="complexType1">
<xsd:sequence>
<xsd:element name="Signature" type="string"/>
<xsd:element name="expiration" type="timeDate"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>You need to distinguish between the namespace and the namespace prefix.
Your WSDL imports Messages.xsd with namespace "messages",
but the schema defines namespace "http://www.example.org".
You should change the import to use the right namespace,
then declare the messages prefix in your WSDL:
<definitions ....
xmlns:messages="http://www.example.org" >
<xsd:import id="Messages.xsd"
schemaLocation="../../XSDDocument/Messages.xsd"
namespace="http://www.example.org"/>
Mik -
ORA-00600 problem when create XMLType table with registerd schema
Hi,
I am using Oracle9i Enterprise Edition Release 9.2.0.4.0 on RedHat Linux 7.2
I found a problem when I create table with registered schema with follow content:
<xs:element name="body">
<xs:complexType>
<xs:sequence>
</xs:sequence>
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="class" type="xs:NMTOKENS"/>
<xs:attribute name="style" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="body.content">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="p"/>
<xs:element ref="hl2"/>
<xs:element ref="nitf-table"/>
<xs:element ref="ol"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID"/>
</xs:complexType>
</xs:element>
Does Oracle not support element reference to other element with dot?
For instance, body -> body.content
Thanks for your attention.Sorry, amendment on the schema
<xs:element name="body">
<xs:complexType>
<xs:sequence>
<xs:element ref="body.head" minOccurs="0"/>
<xs:element ref="body.content" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="body.end" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="class" type="xs:NMTOKENS"/>
<xs:attribute name="style" type="xs:string"/>
</xs:complexType>
</xs:element> -
Validate xml with complextype schema without root element!
Hi All!
I have a problem that. I want to validate a xml data of complextype but the schema i want to validate is[b] not have root element.
For example:
The schema like that
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="www.thachpn.test" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="www.thachpn.test" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:complexType name="Name">
<xs:sequence>
<xs:element name="FirstName" type="xs:string"/>
<xs:element name="LastName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
and the xml data i want to validate like this
<?xml version="1.0" encoding="UTF-8"?>
<Name xmlns="www.thachpn.test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FirstName>Pham</FirstName>
<LastName>Thach</LastName>
</Name>
My Algorithm is like that:
I create a complextype object by above schema
then i create new element with given name and namespace
after that i use schema of this element to validate xml data.
I use xmlparserv2 lib of oracle
But i can not find how to create complextype from schema or create element with have complextype.
Please help me.
Thanks a lot!<?xml version="1.0" encoding="UTF-8"?>
Modify the schema.
Add a root element.
<xs:schema targetNamespace="www.thachpn.test" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="www.thachpn.test" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:element name="Name" type="Name"/>
<xs:complexType name="Name">
<xs:sequence>
<xs:element name="FirstName" type="xs:string"/>
<xs:element name="LastName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema> -
Where to get Sequence name for logging into Database?
Hello
I need to create a custom schema for database logging which consists of a table to log Sequence name and its Execution status(Pass|Failed),
this will include the name of sequence along with the sub sequences executed from sequence file.
Please let me know from where i can get a property to access the sequence and sub sequence name.
Regards
Nitin GoelThanks for information i hope this will be helpfull but before that i need to know that how do i add a new Column in the statement "SEQUENCE_SEQCALL" which is also present in the Generic Recorset Schema. I tried to make a new schema and copied "SEQUENCE_SEQCALL" statement and then added a new column "Status" with expression "NameOf( RunState.Sequence)" and saved the changes.
On executing the sequence with database logging enabled i get an error, see attached image for the error.
Attachments:
Error.JPG 35 KB -
Help needed with registering Schema that include other schema
Hi,
I have 2 schemas, a simple and a complex schema. I am using oracle version 9.0.2.5.
Simple Schema
begin dbms_xmlschema.registerSchema('type_StreetName.xsd',
'<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema targetNamespace="http://www.t-mobile.com/tas" xmlns:tas="http://www.t-mobile.com/tas"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:simpleType name = "type_StreetName">
<xsd:restriction base = "xsd:string">
<xsd:maxLength value = "40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>',
true, true, false, false); end;
Complex Schema
begin dbms_xmlschema.registerSchema('type_Locn.xsd',
'<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema xmlns = "http://www.w3.org/2001/XMLSchema"
targetNamespace = "http://www.t-mobile.com/tas"
xmlns:tas = "http://www.t-mobile.com/tas"
xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
version = "1.0"
elementFormDefault = "qualified"
attributeFormDefault = "unqualified">
<xsd:include schemaLocation = "type_StreetName.xsd"/>
<xsd:complexType name = "type_Locn">
<xsd:sequence>
<xsd:element name = "STREETNAME" type = "tas:type_StreetName"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>',
true, true, false, false); end;
How I register them
Simple Type
ALTER SESSION SET EVENTS='31098 trace name context forever';
BEGIN
DBMS_XMLSCHEMA.registerURI(
'http://devuni06:8081/public/type_StreetName.xsd',
'/public/type_StreetName.xsd',
LOCAL=>TRUE, GENTYPES=>TRUE, GENBEAN=>FALSE, GENTABLES=>TRUE);
END;
No problems with registration of simpletype
Complex type
ALTER SESSION SET EVENTS='31098 trace name context forever';
BEGIN
DBMS_XMLSCHEMA.registerURI(
'http://devuni06:8081/public/type_Locn.xsd',
'/public/type_Locn.xsd',
LOCAL=>TRUE, GENTYPES=>TRUE, GENBEAN=>FALSE, GENTABLES=>TRUE);
END;
Error message with registering complex type
ERROR at line 1:
ORA-31000: Resource 'type_StreetName.xsd' is not an XDB schema docu
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 185
ORA-06512: at line 2
Any help would be see the light at the end of the tunnel.
RudiLooks like unzipping the jar and making sure its in your classpath fixed the problem. not sure why explicitly having the xschema.jar in the classpath didn't work.
e -
Wsimport with imported schemas
Hi,
I am using a WSDL which imports some external schemas
however, when I run the wsimport tool I got this error
error: undefined simple or complex type 'ebi:Service'
line 0 of file:/D:/PROJECTS/webservices/servers/WSEBI/src/main/webapp/WSEBI.ws
dl#types?schema1
error: Element "{http://www.ebi.ac.uk/ws/WSEBI}getServices" not found.
this is the type declaration in the WSDL
<wsdl:types>
<xsd:schema
targetNamespace="http://www.ebi.ac.uk/ws/WSEBI"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.ebi.ac.uk/ws/WSEBI"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ebi="http://www.ebi.ac.uk/ws">
<xsd:import
namespace="http://www.ebi.ac.uk/ws"
location="WSEBITypes.xsd"/>
<xsd:element
name="getWSDL"
type="xsd:string"/>
<xsd:element
name="getWSDLResponse"
type="xsd:string"/>
<xsd:element
name="getServices"
type="tns:Void"/>
<xsd:element
name="getServicesResponse"
type="tns:ServiceList"/>
<xsd:complexType name="Service">
<xsd:sequence>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="name"
type="xsd:string"/>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="description"
type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Name of the implementation of the server
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="wsdl"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ServiceList">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:PollRequest"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Void">
<xsd:sequence/>
</xsd:complexType>
</xsd:schema>
</wsdl:types>the imported schema looks like this
<xsd:schema
targetNamespace="http://www.ebi.ac.uk/ws"
xmlns:ebi="http://www.ebi.ac.uk/ws"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="Service">
<xsd:sequence>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="name"
type="xsd:string"/>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="description"
type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Name of the implementation of the server
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="wsdl"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Data">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="type" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="content" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Result">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="type" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="content" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PollRequest">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="type" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="content" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DataInputs">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:Data"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Results">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:Result"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema> however, when I run the wsimport tool I got this error
error: undefined simple or complex type 'ebi:Service'
line 0 of file:/D:/PROJECTS/webservices/servers/WSEBI/src/main/webapp/WSEBI.ws
dl#types?schema1
error: Element "{http://www.ebi.ac.uk/ws/WSEBI}getServices" not found.if instead of
<xsd:complexType name="ServiceList">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:Service"/>
</xsd:sequence>
</xsd:complexType>I use the local type
<xsd:complexType name="ServiceList">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="tns:Service"/>
</xsd:sequence>
</xsd:complexType>it works
so it is not finding the reference to the type in the imported schema,
can anybody help with this?
thanks a lot
PD. the whole WSDL is this
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
name="WSEBI"
targetNamespace="http://www.ebi.ac.uk/ws/WSEBI"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.ebi.ac.uk/ws/WSEBI"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ebi="http://www.ebi.ac.uk/ws">
<wsdl:types>
<xsd:schema
targetNamespace="http://www.ebi.ac.uk/ws/WSEBI"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.ebi.ac.uk/ws/WSEBI"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ebi="http://www.ebi.ac.uk/ws">
<xsd:import
namespace="http://www.ebi.ac.uk/ws"
location="WSEBITypes.xsd"/>
<xsd:element
name="getWSDL"
type="xsd:string"/>
<xsd:element
name="getWSDLResponse"
type="xsd:string"/>
<xsd:element
name="getServices"
type="tns:Void"/>
<xsd:element
name="getServicesResponse"
type="tns:ServiceList"/>
<xsd:complexType name="Service">
<xsd:sequence>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="name"
type="xsd:string"/>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="description"
type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Name of the implementation of the server
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="wsdl"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ServiceList">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:PollRequest"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Void">
<xsd:sequence/>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="getServicesRequest">
<wsdl:part element="tns:getServices" name="parameters"/>
</wsdl:message>
<wsdl:message name="getServicesResponse">
<wsdl:part element="tns:getServicesResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="getWSDLRequest">
<wsdl:part element="tns:getWSDL" name="parameters"/>
</wsdl:message>
<wsdl:message name="getWSDLResponse">
<wsdl:part element="tns:getWSDLResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="WSEBI">
<wsdl:operation name="getWSDL">
<wsdl:input message="tns:getWSDLRequest"/>
<wsdl:output message="tns:getWSDLResponse"/>
</wsdl:operation>
<wsdl:operation name="getServices">
<wsdl:input message="tns:getServicesRequest"/>
<wsdl:output message="tns:getServicesResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WSEBIBinding" type="tns:WSEBI">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getServices">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getWSDL">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WSEBIService">
<wsdl:port binding="tns:WSEBIBinding" name="WSEBIPort">
<soap:address location="http://localhost:8080/ws/WSEBI"/>
</wsdl:port>
</wsdl:service>
<wsdl:documentation> Documentation for this service can be found at http://www.ebi.ac.uk/Tools/webservices/WSEBI </wsdl:documentation>
</wsdl:definitions>Hi,
I am using a WSDL which imports some external schemas
however, when I run the wsimport tool I got this error
error: undefined simple or complex type 'ebi:Service'
line 0 of file:/D:/PROJECTS/webservices/servers/WSEBI/src/main/webapp/WSEBI.ws
dl#types?schema1
error: Element "{http://www.ebi.ac.uk/ws/WSEBI}getServices" not found.
this is the type declaration in the WSDL
<wsdl:types>
<xsd:schema
targetNamespace="http://www.ebi.ac.uk/ws/WSEBI"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.ebi.ac.uk/ws/WSEBI"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ebi="http://www.ebi.ac.uk/ws">
<xsd:import
namespace="http://www.ebi.ac.uk/ws"
location="WSEBITypes.xsd"/>
<xsd:element
name="getWSDL"
type="xsd:string"/>
<xsd:element
name="getWSDLResponse"
type="xsd:string"/>
<xsd:element
name="getServices"
type="tns:Void"/>
<xsd:element
name="getServicesResponse"
type="tns:ServiceList"/>
<xsd:complexType name="Service">
<xsd:sequence>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="name"
type="xsd:string"/>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="description"
type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Name of the implementation of the server
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="wsdl"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ServiceList">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:PollRequest"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Void">
<xsd:sequence/>
</xsd:complexType>
</xsd:schema>
</wsdl:types>the imported schema looks like this
<xsd:schema
targetNamespace="http://www.ebi.ac.uk/ws"
xmlns:ebi="http://www.ebi.ac.uk/ws"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="Service">
<xsd:sequence>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="name"
type="xsd:string"/>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="description"
type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Name of the implementation of the server
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="wsdl"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Data">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="type" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="content" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Result">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="type" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="content" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PollRequest">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" name="type" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="1" name="content" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Database for the search
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="DataInputs">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:Data"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Results">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:Result"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema> however, when I run the wsimport tool I got this error
error: undefined simple or complex type 'ebi:Service'
line 0 of file:/D:/PROJECTS/webservices/servers/WSEBI/src/main/webapp/WSEBI.ws
dl#types?schema1
error: Element "{http://www.ebi.ac.uk/ws/WSEBI}getServices" not found.if instead of
<xsd:complexType name="ServiceList">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:Service"/>
</xsd:sequence>
</xsd:complexType>I use the local type
<xsd:complexType name="ServiceList">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="tns:Service"/>
</xsd:sequence>
</xsd:complexType>it works
so it is not finding the reference to the type in the imported schema,
can anybody help with this?
thanks a lot
PD. the whole WSDL is this
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
name="WSEBI"
targetNamespace="http://www.ebi.ac.uk/ws/WSEBI"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.ebi.ac.uk/ws/WSEBI"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ebi="http://www.ebi.ac.uk/ws">
<wsdl:types>
<xsd:schema
targetNamespace="http://www.ebi.ac.uk/ws/WSEBI"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://www.ebi.ac.uk/ws/WSEBI"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:ebi="http://www.ebi.ac.uk/ws">
<xsd:import
namespace="http://www.ebi.ac.uk/ws"
location="WSEBITypes.xsd"/>
<xsd:element
name="getWSDL"
type="xsd:string"/>
<xsd:element
name="getWSDLResponse"
type="xsd:string"/>
<xsd:element
name="getServices"
type="tns:Void"/>
<xsd:element
name="getServicesResponse"
type="tns:ServiceList"/>
<xsd:complexType name="Service">
<xsd:sequence>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="name"
type="xsd:string"/>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="description"
type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Name of the implementation of the server
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element
maxOccurs="1"
minOccurs="1"
name="wsdl"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ServiceList">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="ebi:PollRequest"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Void">
<xsd:sequence/>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="getServicesRequest">
<wsdl:part element="tns:getServices" name="parameters"/>
</wsdl:message>
<wsdl:message name="getServicesResponse">
<wsdl:part element="tns:getServicesResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="getWSDLRequest">
<wsdl:part element="tns:getWSDL" name="parameters"/>
</wsdl:message>
<wsdl:message name="getWSDLResponse">
<wsdl:part element="tns:getWSDLResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="WSEBI">
<wsdl:operation name="getWSDL">
<wsdl:input message="tns:getWSDLRequest"/>
<wsdl:output message="tns:getWSDLResponse"/>
</wsdl:operation>
<wsdl:operation name="getServices">
<wsdl:input message="tns:getServicesRequest"/>
<wsdl:output message="tns:getServicesResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WSEBIBinding" type="tns:WSEBI">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getServices">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getWSDL">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WSEBIService">
<wsdl:port binding="tns:WSEBIBinding" name="WSEBIPort">
<soap:address location="http://localhost:8080/ws/WSEBI"/>
</wsdl:port>
</wsdl:service>
<wsdl:documentation> Documentation for this service can be found at http://www.ebi.ac.uk/Tools/webservices/WSEBI </wsdl:documentation>
</wsdl:definitions> -
Error in WSDL file with Inline schemas in RAD
Hi,
I am having a WSDL which is generated in Weblogic workshop. I need to generate a client for that WSDL in RAD 7.0 with websphere 6.1.
WSDL is having inline schemas. when i used the same WSDL in RAD it is showing compile time errors at complex types.
My scenario: I am getting error at type="*_Type1_*" , it saying type reference is unresolved.
<xs:schema xmlns="XXXX" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="XXXX" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:complexType name="complextype1">
<xs:sequence>
<xs:element name="Location" type="*_Type1_*" nillable="true"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="XXXX" targetNamespace="XXXX" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:simpleType name="Type1">
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema>
Thanks in advance.Hi,
I am also getting the same problem on a Web Service created from a function module. This happens when I try to create a new endpoint and save.
Did you manage to find a solution to this.
Regards,
Andy. -
How to find which sequence name is used in a table - Redux
(The other thread was locked before I could respond, so I'm posting this here as a non-question.)
Beginning with 12c, there is now a way to associate a sequence with a table. It's a new feature called an Identity column.
create table t
(some_id number generated as identity --< creates a system generated sequence
,name varchar2(30)
insert into t (name) values ('Smith');
insert into t (name) values ('Jones');
insert into t (name) values ('Anderson');
commit;
select * from t;
SOME_ID NAME
1 Smith
2 Jones
3 Anderson
select table_name, column_name, data_default from user_tab_columns where table_name = 'T' and column_name = 'SOME_ID';
TABLE_NAME COLUMN_NAME DATA_DEFAULT
T SOME_ID "C##SELSE"."ISEQ$$_91955".nextval
select * from user_sequences;
SEQUENCE_NAME
ISEQ$$_91955There's nothing stopping you from using the generated sequence for something else, however you can NOT override it when doing an insert (as long as you've specified ALWAYS which is the default).
SQL> create table t
2 (some_id number generated as identity
3 ,name varchar2(30)
4 );
Table created.
SQL> select * from user_sequences;
SEQUENCE_NAME
ISEQ$$_91970
SQL> select ISEQ$$_91970.nextval from dual;
NEXTVAL
1
SQL> select ISEQ$$_91970.nextval from dual;
NEXTVAL
2
SQL> insert into t values (99,'smith');
insert into t values (99,'smith')
ERROR at line 1:
ORA-32795: cannot insert into a generated always identity column
Maybe you are looking for
-
Satellite U400-10N fails to start while showing black screen!
So i press the power button, The 3 Leds are appearing fuctional but the CPU-GPU fan fails to start! After a while it shuts off it self and then it tries to start again but the fan fails again while only the power led is on and not the others (Led 1 a
-
Toshiba EXCITE Pro - WIFI connection. Authentication failed after update
Hello. Just received this Tablet. Everything seemed ok while updating to the latest version (did that first to solve the heat problems). After the last update *i lost my WIfi connection. Authentication failed* (didnt change something - was connecting
-
Communication problem with Zebra printer
Post Author: rafu CA Forum: .NET Hi,I'm trying to write bidirectional communication with Zebra printer - e.g. send data to print and receive data read from tags. To send data it's possible to use WritePrinter methods described in internet, however I
-
ITunes was unable to load dataclass information from Sync Services. Reconne
I'm getting the following error on iTunes 8 when quitting: "iTunes was unable to load dataclass information from Sync Services. Reconnect or try again later." Anyone else seeing this? Don
-
IPhone 5s doesn't display photo albums?
Just upgraded to the 5s. Phone seems to be syncing fine. Photo's reside in a specific folder on an external hard drive. They appear on the phone under 'photos' tab in Photos app. However, the albums do not appear under the albums tab as they did on