Problem resolving Type names in CreateDescriptor

I have two users: SCHEMAOWNER and USER1
SCHEMAOWNER creates a type with
CREATE TYPE MYTABTYP AS TABLE OF VARCHAR2(50);
CREATE PUBLIC SYNONYM MYTABTYP FOR MYTABTYP;
GRANT EXECUTE ON MYTABTYP TO PUBLIC;
USER1 attempts to run the following Java snippet:
ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor( "MYTABTYP", connection );
and receives the message that USER1.MYTABTYP cannont be resolved.
USER1 does not have any table types.
Even if I change the code to read:
ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor( "SCHEMAOWNER.MYTABTYP", connection );
I get the message that USER1.MYTABTYP cannont be resolved.
null

We had the same problem. We had also attempted to make use of definer rights permissions, but using JDBC has been restictive in this area. Also in the area
of defining anchored variables and params (%TYPE).
Our workaround was to execute java app as owner of the schema.
Please let me know if anyone has a real solution.

Similar Messages

  • Resolving type names during compilation

    Hi,
    I have a question about how the default (or any other) java compiler resolves type names when compiling several files. How does the compiler efficiently organise itself so that it can resolve type names that it has not yet parsed?
    take a trivial example:
    //file a.java
    class a{b myB;}
    //file b.java
    class b{}
    if it compiles file a.java first then it must search for class b in some way to check that it exists. how?
    If you are wondering why I ask this, it is becuase I am using antlr(www.antlr.org) to reverse engineer java into UML.
    tia + cheers,
    Alex

    see
    http://forum.java.sun.com/thread.jsp?forum=7&thread=31728
    Thanks for the feedback, but it does not answer my question of how the insides of the java compiler works. I assume that it can compile and the classpath is set up correctly...
    Try a less trivial example: you compile a large open source project like netbeans. When the compiler arrives at a declaration involving a type that it has not come across. how does it know that it is a valid type? I am talking about how the compiler is implemented. This is a question about compiler design.
    does the compiler first work out class dependencies and compile in a certain order?
    or does it make a symbol table of all type first, then check that when compiling?
    maybe this forum is more about how to compile rather than how compilers work?

  • Problem resolving host name.

    Hi all,
    How can I resolve some host name's IP address? Example: I've got the host name "java.sun.com" and I need to know its IP address. How can that be done?
    I first thought about
    InetAddress addr = InetAddress.getByName("java.sun.com");but it threw an UnknownHostException, even though I were connected to the internet and could open this page in the browser.
    Again, how can I do that?
    Thank you all in advance
    Filipe Fedalto

    Oh, geez!
    You are right, I have a proxy. Is there any way I could still do it? I mean, the proxy gives me full access to the internet, so that if I type this URL into a browser it allows me to view the page...

  • Problems resolving .local DNS names

    Hi all - I was having problems resolving machine.local type names, and I found this article:
    http://docs.info.apple.com/article.html?artnum=107800
    This solution helped, but not completely.
    I am on a Mac mini running 10.4.8PPC.
    This unit is on a private IP network - 192.168.254.0/255.255.255.0
    This unit is staticly addressed - 192.168.254.31
    The network has a Windows Server 2003 machine doing DNS/DHCP
    The network has a domain of mynetwork.local
    I was experiencing the issue in this article:
    dig server.mynetwork.local would complete and resolve to 192.168.254.11
    ping server.mynetwork.local would fail to resolve.
    Adding local to the search domain solved this issue as described in the article.
    However, a new wrinkle arises.
    I frequently connect to other networks via PPTP, many running SBS 2003, which uses a company.local DNS scheme.
    Once connected, I can dig company.local names, but not mynetwork.local names (which I expected - as I am now resolving names through server.company.local). However, I can't ping company.local names, which prevents connection to the server.company.local OWA server, for example.
    Any thoughts? I tried putting
    mynetwork.local, company.local
    in the search domains field, but no joy...
    Thanks for wading through this long question - appreciate any replies...

    Playing Dr. Watson here...
    Are those other Networks Local but not on the 192.168.254.x subnet?

  • Fundamental Problem: ORA-12154: TNS:could not resolve service name

    Hello,
    I am faced with a fundamental problem:
    ORA-12154: TNS:could not resolve service name
    I can say with a high level of confidence that the TNSNAMES.ora configuration file is not the problem. My peer is using the exact same file with no issues. I am using the TOAD database utility to connect to the db host. Also, I have ORACLE_HOME defined and the file is located in /network/ADMIN.
    Any ideas?

    Hello,
    Make sure your toad looking into right tnsnames.ora; also try this from command line after adding following entry to your tnsnames.ora.
    sqlplus username/password@ECDEV
    ECDEV =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (PROTOCOL = TCP)
            (HOST = rscdd01)  --> you can try ipaddress of your server name as well
            (PORT = 1521)
        (SDU = 8192)
        (CONNECT_DATA =
          (SERVICE_NAME =ECDEV)
          (INSTANCE_NAME=ECDEV)
      )Edited by: OrionNet on Dec 23, 2008 2:22 PM

  • OracleConnection.createARRAY: Unable to resolve type

    Hi All,
    for some good reasons (don't ask ...) I need to implement a solution where a directory listing, on the DB server machine, can be gotten via an sql query.
    I have to say I am not very experienced with Java in Oracle, please forgive the newbie mistakes.
    Environment: 11gR2 on Win7, SQLDeveloper as front-end.
    In order to do this, I created a simple Java class, DB types and PL/SQL wrappers as follows:
    CREATE OR REPLACE TYPE T_FS_ENTRY AS OBJECT (
      is_dir CHAR( 1 )
    , entry_name VARCHAR2( 4000 )
    , entry_size NUMBER
    , last_modified NUMBER );
    CREATE OR REPLACE TYPE T_FS_ENTRY_TAB IS TABLE OF T_FS_ENTRY;
    I then created the Java class
    CREATE OR REPLACE AND COMPILE java source named FSEntryReturn
    as
      import java.sql.*;
      import java.util.*;
      import java.io.File;
      import oracle.jdbc.*;
      import oracle.sql.*;
      public class FSEntryReturn implements ORADataFactory, ORAData {
        private CHAR is_dir;
        private CHAR entry_name;
        private NUMBER entry_size;
        private NUMBER last_modified;
        public FSEntryReturn( OracleConnection conn
                            , String is_dir
                            , String entry_name
                            , long entry_size
                            , long last_modified )
        throws SQLException
            this.is_dir = new CHAR( is_dir, oracle.sql.CharacterSet.make( conn.getStructAttrCsId() ) );
            this.entry_name = new CHAR( entry_name, oracle.sql.CharacterSet.make( conn.getStructAttrCsId() ) );
            this.entry_size = new NUMBER( entry_size );
            this.last_modified = new NUMBER( last_modified );
        public FSEntryReturn( CHAR is_dir
                            , CHAR entry_name
                            , NUMBER entry_size
                            , NUMBER last_modified )
        throws SQLException
            this.is_dir = is_dir;
            this.entry_name = entry_name;
            this.entry_size = entry_size;
            this.last_modified = last_modified;
        public FSEntryReturn( Object[] attributes )
        throws SQLException {
          this( (CHAR)attributes[0]
              , (CHAR)attributes[1]
              , (NUMBER)attributes[2]
              , (NUMBER)attributes[3] );
        public FSEntryReturn( Datum d ) throws SQLException {
          this( ( (STRUCT)d).getOracleAttributes() );
        public ORAData create( Datum d, int sqlType ) throws SQLException {
          if(d == null) return null;
           else return new FSEntryReturn( d );
        public STRUCT toSTRUCT( Connection conn ) throws SQLException  {
          StructDescriptor sd = StructDescriptor.createDescriptor( "T_FS_ENTRY", conn );
          Object[] attributes = { is_dir, entry_name, entry_size, last_modified };
          return new STRUCT( sd, conn, attributes );
        public Datum toDatum( Connection conn ) throws SQLException {
          return toSTRUCT( conn );
        public static List<FSEntryReturn> getDirListImpl( OracleConnection conn, final String dirPath )
        throws SQLException
          List<FSEntryReturn> ret = new ArrayList<FSEntryReturn>();
          File dir = new File( dirPath );
          if( dir.isDirectory() ) {
            for( String fileName : dir.list() ) {
              File f = new File( dir, fileName );
              FSEntryReturn fsr = new FSEntryReturn( conn
                                                   , (f.isDirectory() ? "1" : null)
                                                   , fileName
                                                   , f.length()
                                                   , f.lastModified() );
              ret.add( fsr );
                } else
            throw new RuntimeException( "Path " + dirPath + " is not a directory" );
          return ret;
        public static ARRAY getDirList( final String dirPath )
        throws SQLException, ClassNotFoundException
          // initialize the connection
          OracleConnection conn = null;
          conn = (OracleConnection) ( new oracle.jdbc.OracleDriver() ).defaultConnection();
          FSEntryReturn[] retArray = getDirListImpl( conn, dirPath ).toArray( new FSEntryReturn[0] );
          // Map the java class to the Oracle type
          Map map = conn.getTypeMap();
          map.put("T_FS_ENTRY", Class.forName( "FSEntryReturn" ) );
          // ArrayDescriptor retArrayDesc = ArrayDescriptor.createDescriptor( "FPL_XSD.T_FS_ENTRY", conn );
          // create an Oracle collection on client side to use as parameter
          // ARRAY oracleCollection = new ARRAY( retArrayDesc, conn, retArray );
          ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
          return oracleCollection;
    Finally the wrapper:
    create or replace PACKAGE QAO_SUPPORT
    AS
      FUNCTION get_dir_list( p_dir IN VARCHAR2 )
      RETURN t_fs_entry_tab;
    END QAO_SUPPORT;
    create or replace PACKAGE BODY QAO_SUPPORT
    AS
      FUNCTION get_dir_list( p_dir IN VARCHAR2 )
      RETURN t_fs_entry_tab
      AS LANGUAGE JAVA
      NAME 'FSEntryReturn.getDirList( java.lang.String ) return oracle.sql.ARRAY';
    END QAO_SUPPORT;
    At last I granted privileges on a directory:
    BEGIN dbms_java.grant_permission( 'FPL_XSD', 'SYS:java.io.FilePermission', 'C:\-', 'read,write,execute' ); END;
    COMMIT;
    When I test this as FPL_XSD user, the same schema where the type, package and source are defined:
    select * from table( QAO_SUPPORT.get_dir_list( 'C:\\TEMP' ) );
    I get the following error (sorry for the dutch stuff, basically, "uncaught java exception: error in creation of descriptor:..."):
    ORA-29532: Java-aanroep is afgesloten door niet-onderschepte Java-uitzondering: java.sql.SQLException: Maken van descriptor is mislukt.: Unable to resolve type: "FPL_XSD.T_FS_ENTRY".
    ORA-06512: in "FPL_XSD.QAO_SUPPORT", regel 30
    Even if it is not exactly stated the error happens at the line:
    ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
    Note that when logged in as FPL_XSD, desc T_FS_ENTRY returns the type description.
    I searched everywhere and consulted the documentation. I think it should work. I am out of ideas, but I have a suspect the problem might be with the connection configuration, maybe?
    Any help or hint is greatly appreciated.
    Kindly,
    Andrea

    Hi All,
    I insisted trying and I found out what the problem was. In:
    ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
    The first argument is an Oracle type name, I wrongly used the RECORD (OBJECT) type name - T_FS_ENTRY -, not the name of the nested table T_FS_ENTRY_TAB.
    So the code should look like:
    ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY_TAB", retArray );
    Which works.
    //Andrea

  • I have Problems to type some ASCII caracteres who

    When i run an applet.....
    I have Problems to type some ASCII caracteres who "@", etc..
    When hay type alt+64 "@" or alt+92 "\"....
    how i can to resolve this problem...
    My keyboard is in spanish.......
    Thanks in advance...
    Regards
    Mario Durand S.
    [email protected]

    try
    java.lang.String[] getParameterValues(java.lang.String name) which is a method from ServletRequest interface. You can use this with a for loop.
    String[] arrayParameter = request.getParameterValues("ParameterName");

  • "couldn't resolve host name" error message

    I have a new Z30 with the latest OS update installed and can’t connect to several Wi-Fi locations because of error message ‘couldn’t resolve host name’.  Is there a fix to this as it seems to be an issue with BB and no other type of devices?

    Assuming you're connecting via wifi, this would suggest your wifi connection is failing somewhere along the way.
    Occasionally, my PB's wifi icon shows green and looks like it's working, but if I turn the PB wifi off and back on, it usually fixes the problem. You could also try rebooting the PB if resetting the wifi doesnt work. 
    If these things don't correct the problem, then check your wifi router (reboot it if necessary) and maybe check your internet connection with another device, ie home computer or whatever to make sure you're not having service issues.

  • Fail to construct descriptor: Unable to resolve type

    I'm receiving an error when creating a oracle.sql.STRUCT or ARRAY. the error is java.sql.SQLException: Fail to construct descriptor: Unable to resolve type "X.NAME".
    He is the java code.
    // Create the StructDescriptor from the connection
    StructDescriptor prStructDesc =
    StructDescriptor.createDescriptor("X.NAME", conn);
    // construct the object array containing the attribute values for the
    // X.NAME object to be inserted
    Object[] xObjArray =
    "val1",
    "val2",
    // Construct the Struct from the StructDescriptor and xObjStruct
    oracle.sql.STRUCT xStruct = new STRUCT(prStructDesc,
    conn, xObjArray);
    cs = conn.prepareCall("{ call X.PROC(?,?,?)}");
    cs.setObject(1, xStruct);
    When I run the code within JDeveloper it runs without any errors. When I deploy to 9iAS release 2 and try to run it there, I receive the error. Thanks for any help.

    Think I found a solution,.. or at least stopped getting the error. I'm using oracle's OracleCallableStatement instead of the java.sql.CallableStatement. I'm also using a different app server. same version 9.0.2.0.0 I'd recommend applying the patches to anyone using this version. I've ran into some errors that have been patched. It's a long process though..
    cheers.

  • Deploy cannot resolve service name

    Hi
    I have a very simple warehouse project in OWB 9.2. I have defined an ODBC source on SQL Server and wish to deploy to a target table defined in an Oracle target module. A mapping, locations, connectors, database links etc are defined and valid.
    Up to the "Pre deployment generation results" view, all operations are shown as success. However, on selecting "Deploy" from this window, the deploy status is "Failed" with error "ORA-12514: TNS:could not resolve service name".
    I have checked the TNSNAMES.ORA file and all service names used are defined. Using "tnsping", I can connect to the oracle database, however the connection to the SQL Server database using "myhsodbc" fails. I can successfully connect to the SQL Server database using the database link defined when creating the source module or from SQL*Plus.
    Any suggestions as to which service name is unresolved?
    Thanks
    Bob

    Hi Mark
    I have added tnsnames file to server and client, oracle_home and owb_home with no change in result. The following info is little lengthy, but I hope it may give a clue to resolve my situation.
    The deployment manager identifies 3 objects for deployment - a mapping (SAP_CI_HIERARCHY), a table (SAP_CI_HIERARCHY) and a connector (ORAONSQL_SQLONPCRH).
    The generated connector script follows:
    CREATE DATABASE LINK "{{SQLONPCRH.Service}}"@ORAONSQL_SQLONPCRH
    CONNECT TO "{{SQLONPCRH.ConnectAs}}"
    IDENTIFIED BY "{{SQLONPCRH.Password}}"
    USING '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)
    (HOST={{SQLONPCRH.Host}})(PORT={{SQLONPCRH.Port}})))
    (CONNECT_DATA=(SERVICE_NAME={{SQLONPCRH.Service}}))
    (HS=OK)
    The mapping script contains the following connection string in a select statement:
    FROM "dbo"."SAP_CI_HIERARCHY"@"MYHSODBC.FIRM.UNI.EDU"@"ORAONSQL_SQLONPCRH" "SAP_CI_HIERARCHY_ORA10323"
    The SQL Server source is defined by the following connection information:
    Database Link: PCRH_LINK.FIRM.UNI.EDU
    Connect String: myhsodbc.firm.uni.edu
    Gateway Type: Oracle Generic Connectivity - HSODBC
    Schema: dbo
    Location: SQLONPCRH
    The Oracle target is defined as follows:
    Database Link: ORAONSQL_LINK.FIRM.UNI.EDU
    Connect String: oraonsql.firm.uni.edu
    Schema: firmolap
    Location: ORAONSQL
    TNSNAMES.ORA file contains entry for oraonsql & myhsodbc:
    ORAONSQL.FIRM.UNI.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sqlserver)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = oraonsql.firm.uni.edu)
    MYHSODBC.FIRM.UNI.EDU =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sqlserver)(PORT = 1521))
    (CONNECT_DATA =
    (SID = myhsodbc)
    (HS = OK)
    From SQL*PLUS,
    SELECT *
    FROM "dbo"."SAP_CI_HIERARCHY"@"PCRH_LINK.FIRM.UNI.EDU"; returns data, whereas the SELECT statement from the generated script returns ERROR "ORA-02019: connection description for remote database not found".
    All database links are PUBLIC.
    Location registration:
    ORAONSQL
    Service name: ORAONSQL.FIRM.UNI.EDU
    Net service name: ORAONSQL
    SQLONPCRH
    Service name: myhsodbc.firm.uni.edu
    Net service name: myhsodbc
    Is there something in this that points to the problem either in connecting from Deployment Manager (or from SQL*PLUS)?
    Thanks again for any help you can offer.
    Bob

  • Problem with variable name in ZXRSRTOP include (virtual KF)

    Hi all,
    I am coding a routine to use a virtual key figure in the BEx.
    I have just a little problem with the name of a variable:
    as explained in the documentation, I created the variable with the prefix G_POS_, the name of the infocube and the name of the infoobject all together:
    DATA: G_POS_BC_ST_003_C_DIV__C_COMPAR   type i.
    The problem is that this variable name is longer than 30 characters, so the system doesn't accept it.
    Is there a workaround, other than changing the name of the infoobject (which is a navigational attribute)?
    Any help would be appreciated.
    Loï

    Hello Marc,
    I understand that I have to use a concatenate function and a dynamic call of the variable with (variable) instruction, but i do not understand how to implement it.
    the infocube name is BC_ST_003
    the characterisdtic name is C_DIV__COMPAR
    So, in the include ZXRSRTOP the statement
    DATA : G_POS_BC_ST_003_C_DIV__COMPAR
    does not work due a length problem (see first post)
    But in the same include the statement
    +DATA: l_global_name type c.
    concatenate 'GPOS' 'BC_ST_003' 'C_DIV__C_COMPAR' into l_global_name separated by '_'.+
    drives to the following error : statement is not accessible.
    Could u please provide me with an example of the code in the include ZXRSRTOP, and in the include ZXRSRZZZ for the use of this variable.
    Thanks in advance.
    Loï

  • Web Service trims off type-names?

    Hi,
    I'm trying to set up a web service on OAS, and have come across a strange problem which I can't figure out. The problem is that the result I get from the web-service doesn't follow the WSDL which was generated by JDeveloper. Some of the type-names of my complex types seems to be "trimmed" off.
    For instance, I've got one complex type called (see the WSDL at the end of my post):
    "com_ibm_no_slf_wesla_value_ws_LandbrukseiendomDetaljerDTO"
    but my webservice returns it as:
    "com_ibm_no_slf_wesla_v_LandbrukseiendomDetaljerDTO"
    And the length of this type-name seems to differ when I try to deploy the webservice on different environments (development, test, etc). If I try to deploy the web-service without the pre-generated WSDL, the "on-the-fly"-generated WSDL also has trimmed-off type-names.
    Is there some kind of setting for the maxlength of this name or something?
    Any ideas are very much appreciated :)
    Thanks,
    Morten
    Here are some details of my webservice.
    I've got a regular java-class which I want to expose: EnterpriseWSBD, with an interface IEnterpriseWS.
    My web.xml contains the following:
    <web-app>
    <description>Web Application</description>
    <servlet>
    <servlet-name>EnterpriseWS</servlet-name>
    <servlet-class>oracle.j2ee.ws.StatelessJavaRpcWebService</servlet-class>
    <init-param>
    <param-name>class-name</param-name>
    <param-value>com.ibm.no.slf.wesla.bd.ws.EnterpriseWSBD</param-value>
    </init-param>
    <init-param>
    <param-name>interface-name</param-name>
    <param-value>com.ibm.no.slf.wesla.bd.ws.IEnterpriseWS</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>EnterpriseWS</servlet-name>
    <url-pattern>/EnterpriseWS</url-pattern>
    </servlet-mapping>
    <session-config>
              <session-timeout>35</session-timeout>
    </session-config>
    <mime-mapping>
              <extension>html</extension>
              <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
              <extension>txt</extension>
              <mime-type>text/plain</mime-type>
    </mime-mapping>
    </web-app>
    My WSDL contains the following (generated by JDeveloper):
    <definitions
    name="EnterpriseWS"
    targetNamespace="http://com/ibm/no/slf/wesla/bd/ws/EnterpriseWSBD.wsdl"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://com/ibm/no/slf/wesla/bd/ws/EnterpriseWSBD.wsdl"
    xmlns:ns1="http://com.ibm.no.slf.wesla.bd.ws/IEnterpriseWS.xsd">
    <types>
    <schema
    targetNamespace="http://com.ibm.no.slf.wesla.bd.ws/IEnterpriseWS.xsd"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://www.w3.org/2001/XMLSchema">
    <complexType name="com_ibm_no_slf_wesla_value_ws_ForetakFinnDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="orgnr" type="string"/>
    <element name="hentLbrAdresse" type="boolean"/>
    <element name="hentBedriftsknytninger" type="boolean"/>
    <element name="hentEierknytninger" type="boolean"/>
    <element name="hentRoller" type="boolean"/>
    <element name="visOpphorte" type="boolean"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="orgnr" type="string"/>
    <element name="navn" type="string"/>
    <element name="enhetsType" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="aktiv" type="int"/>
    <element name="registrertIMva" type="int"/>
    <element name="adresse" type="ns1:com_ibm_no_slf_wesla_value_ws_AdresseDetaljerDTO"/>
    <element name="eiendomsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_EiendKnytningDTO"/>
    <element name="rolleListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO"/>
    <element name="bedriftsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_BedrKnytningDTO"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_CodeFactoryDTO" jdev:packageName="com.ibm.no.slf.wesla.value" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="codeValue" type="string"/>
    <element name="description" type="string"/>
    <element name="domain" type="string"/>
    <element name="shortDescription" type="string"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_AdresseDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="adresseLinje1" type="string"/>
    <element name="adresseLinje2" type="string"/>
    <element name="adresseLinje3" type="string"/>
    <element name="poststed" type="ns1:com_ibm_no_slf_wesla_value_PoststedDTO"/>
    <element name="stedUtland" type="string"/>
    <element name="land" type="ns1:com_ibm_no_slf_wesla_value_LandDTO"/>
    <element name="telefon" type="string"/>
    <element name="telefax" type="string"/>
    <element name="mobiltelefon" type="string"/>
    <element name="epost" type="string"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_PoststedDTO" jdev:packageName="com.ibm.no.slf.wesla.value" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="nyttPostnr" type="string"/>
    <element name="postnr" type="string"/>
    <element name="poststed" type="string"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_LandDTO" jdev:packageName="com.ibm.no.slf.wesla.value" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="landKode" type="string"/>
    <element name="landNavn" type="string"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_EiendKnytningDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="eierType" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="eiertilknytning" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="landbrukseiendom" type="ns1:com_ibm_no_slf_wesla_value_ws_LandbrukseiendomDetaljerDTO"/>
    <element name="person" type="ns1:com_ibm_no_slf_wesla_value_ws_PersonDetaljerDTO"/>
    <element name="foretak" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_LandbrukseiendomDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="landbrukseiendomId" type="int"/>
    <element name="hovedNr" type="ns1:com_ibm_no_slf_wesla_value_ws_HovednummerDTO"/>
    <element name="bruksnavn" type="string"/>
    <element name="aktiv" type="int"/>
    <element name="grunnkrets" type="int"/>
    <element name="koordinatKilde" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="koordinatSystem" type="int"/>
    <element name="nord" type="int"/>
    <element name="ost" type="int"/>
    <element name="arealtall" type="ns1:com_ibm_no_slf_wesla_value_ws_ArealtallDTO"/>
    <element name="eiendomsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_EiendKnytningDTO"/>
    <element name="bedriftsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_BedrKnytningDTO"/>
    <element name="grunneiendomListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_GrunneiendomDetaljerDTO"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_HovednummerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="kommuneNr" type="string"/>
    <element name="gardsNr" type="int"/>
    <element name="bruksNr" type="int"/>
    <element name="festeNr" type="int"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_ArealtallDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="jord" type="int"/>
    <element name="skog" type="int"/>
    <element name="annet" type="int"/>
    <element name="fulldyrket" type="int"/>
    <element name="overflatedyrket" type="int"/>
    <element name="innmarksbeite" type="int"/>
    </all>
    </complexType>
    <complexType name="ArrayOfcom_ibm_no_slf_wesla_value_ws_EiendKnytningDTO" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexContent>
    <restriction base="SOAP-ENC:Array">
    <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:com_ibm_no_slf_wesla_value_ws_EiendKnytningDTO[]"/>
    </restriction>
    </complexContent>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_BedrKnytningDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="brukerType" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="driftstilknytning" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="drift" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="fratraadt" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="prodlopenr" type="int"/>
    <element name="eierskifteDato" type="string"/>
    <element name="bedrift" type="ns1:com_ibm_no_slf_wesla_value_ws_BedriftDetaljerDTO"/>
    <element name="foretak" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_BedriftDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="orgnr" type="string"/>
    <element name="lbrBedriftId" type="int"/>
    <element name="lopenrD" type="int"/>
    <element name="navn" type="string"/>
    <element name="daJordD" type="int"/>
    <element name="aktiv" type="int"/>
    <element name="landbrukseiendom" type="ns1:com_ibm_no_slf_wesla_value_ws_LandbrukseiendomDetaljerDTO"/>
    <element name="bedriftsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_BedrKnytningDTO"/>
    </all>
    </complexType>
    <complexType name="ArrayOfcom_ibm_no_slf_wesla_value_ws_BedrKnytningDTO" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexContent>
    <restriction base="SOAP-ENC:Array">
    <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:com_ibm_no_slf_wesla_value_ws_BedrKnytningDTO[]"/>
    </restriction>
    </complexContent>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_GrunneiendomDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="hovedNr" type="ns1:com_ibm_no_slf_wesla_value_ws_HovednummerDTO"/>
    <element name="type" type="int"/>
    <element name="aktiv" type="int"/>
    <element name="etablertDato" type="string"/>
    <element name="eierforhold" type="int"/>
    <element name="arealtall" type="ns1:com_ibm_no_slf_wesla_value_ws_ArealtallDTO"/>
    </all>
    </complexType>
    <complexType name="ArrayOfcom_ibm_no_slf_wesla_value_ws_GrunneiendomDetaljerDTO" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexContent>
    <restriction base="SOAP-ENC:Array">
    <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:com_ibm_no_slf_wesla_value_ws_GrunneiendomDetaljerDTO[]"/>
    </restriction>
    </complexContent>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_PersonDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="fodselsnr" type="string"/>
    <element name="fornavn" type="string"/>
    <element name="etternavn" type="string"/>
    <element name="aktiv" type="int"/>
    <element name="status" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="adresse" type="ns1:com_ibm_no_slf_wesla_value_ws_AdresseDetaljerDTO"/>
    <element name="eiendomsknytningListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_EiendKnytningDTO"/>
    <element name="rolleListe" type="ns1:ArrayOfcom_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO"/>
    </all>
    </complexType>
    <complexType name="com_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO" jdev:packageName="com.ibm.no.slf.wesla.value.ws" xmlns:jdev="http://xmlns.oracle.com/jdeveloper/webservices">
    <all>
    <element name="rolleType" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="fratraadt" type="ns1:com_ibm_no_slf_wesla_value_CodeFactoryDTO"/>
    <element name="prioritert" type="int"/>
    <element name="person" type="ns1:com_ibm_no_slf_wesla_value_ws_PersonDetaljerDTO"/>
    <element name="foretak" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO"/>
    </all>
    </complexType>
    <complexType name="ArrayOfcom_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexContent>
    <restriction base="SOAP-ENC:Array">
    <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="ns1:com_ibm_no_slf_wesla_value_ws_RolleDetaljerDTO[]"/>
    </restriction>
    </complexContent>
    </complexType>
    </schema>
    </types>
    <message name="getEnterpriseDetails0Request">
    <part name="searchDTO" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakFinnDTO"/>
    <part name="userId" type="xsd:string"/>
    <part name="password" type="xsd:string"/>
    </message>
    <message name="getEnterpriseDetails0Response">
    <part name="return" type="ns1:com_ibm_no_slf_wesla_value_ws_ForetakDetaljerDTO"/>
    </message>
    <portType name="EnterpriseWSBDPortType">
    <operation name="getEnterpriseDetails">
    <input name="getEnterpriseDetails0Request" message="tns:getEnterpriseDetails0Request"/>
    <output name="getEnterpriseDetails0Response" message="tns:getEnterpriseDetails0Response"/>
    </operation>
    </portType>
    <binding name="EnterpriseWSBDBinding" type="tns:EnterpriseWSBDPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="getEnterpriseDetails">
    <soap:operation soapAction="" style="rpc"/>
    <input name="getEnterpriseDetails0Request">
    <soap:body use="encoded" namespace="EnterpriseWS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </input>
    <output name="getEnterpriseDetails0Response">
    <soap:body use="encoded" namespace="EnterpriseWS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </output>
    </operation>
    </binding>
    <service name="EnterpriseWS">
    <documentation>
    * Business Delegator.
    * - Enterprise
    </documentation>
    <port name="EnterpriseWSBDPort" binding="tns:EnterpriseWSBDBinding">
    <soap:address location="http://localhost:8888/lregws/EnterpriseWS"/>
    </port>
    </service>
    </definitions>

    Thanks for the notice, Bryan.
    This is actually a bug, and it is actually connected to the length of the APPLICATION NAME pluss the response-xml and the file path of the application (i think).
    There are currently two workarounds:
    1) Make the application-name longer than a given value (think this is based on the path of the application, not quite sure yet). Just try different long names. This will prevent the response-xml to be truncated
    2) Make type-names shorter (duh :p).
    I had to use approach 1, since I should not change my wsdl.. other people are already using it
    This probably doesn't explain this strange behaviour good enough, but hopefully you'll get your webservices to work :)
    Morten

  • TNS: could not resolve service name

    ERROR: ORA-12154: TNS: could not resolve service name
    does any1 know what this means...and how to overcome this problem
    username : scott
    passwd: tiger
    host string: myora
    i have personal oracle8i in d:\oracle
    and d2k in d:\d2k
    it connects with the SQLPlus
    however with d2k when i try to connect it gives the above error
    message.
    does any 1 know a solution to the problem...

    Hello,
    First of all, If you are using PO8i and D2k as a front end
    on single machine,no need of specifying Connect String. You can
    connect using scott,tiger. If still it is giving problem,try
    this one.
    Open TNSNAMES.ORA file from folder NET80/Admin in your PC
    using NOTEPAD. Look there entry for myora. If it is there,Check
    SID,IPAddress or remove word "World" from there. See E.g
    ora816 = -- Your connect string
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 10.0.0.3) -- IP address
    (Port = 1521)
    (CONNECT_DATA = (SID = ora816) -- Database SID
    Hope it will work...
    Adi

  • ValidationException: Duplicate type name

    I am trying to deploy an ejb web service to oc4j 10.1.3.1.1 from JDeveloper 10.1.3.2. During deployment I get this exception thrown:
    07/04/19 09:53:03 oracle.j2ee.ws.common.tools.api.ValidationException: gov.mi.mdch.mcirhl7.data.Select - Duplicate type name "gov.mi.mdch.mcirhl7.data.Select" for Java type "{http://service.ejb.mcirhl7.mdch.mi.gov/}Select" found. To remove this error do not specify a single typeNamespace for all value types or specify a mapping file. This error could also be caused when an erroneous type has been used more than once.
    07/04/19 09:53:03      at oracle.j2ee.ws.common.processor.modeler.rmi.RmiModeler.buildModel(RmiModeler.java:247)
    07/04/19 09:53:03      at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel(ModelInfo.java:173)
    07/04/19 09:53:03      at oracle.j2ee.ws.common.processor.Processor.runModeler(Processor.java:72)
    07/04/19 09:53:03      at oracle.j2ee.ws.common.metadata.annotation.DeploymentGenerator$DeploymentCompileTool.run(DeploymentGenerator.java:200)
    07/04/19 09:53:03      at oracle.j2ee.ws.common.metadata.annotation.DeploymentGenerator.generateDeploymentArtifacts(DeploymentGenerator.java:131)
    07/04/19 09:53:03      at oracle.j2ee.ws.common.metadata.annotation.EJBWebServiceAnnotationParser.parseAnnotatedBean(EJBWebServiceAnnotationParser.java:165)
    07/04/19 09:53:03      at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
    07/04/19 09:53:03      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/04/19 09:53:03      at java.lang.reflect.Method.invoke(Method.java:585)
    07/04/19 09:53:03      at oracle.j2ee.ws.server.deployment.oc4j.WebServiceAnnotationListener.parseAnnotatedClass(WebServiceAnnotationListener.java:85)
    07/04/19 09:53:03      at com.evermind.server.ejb.AnnotationParser.notifyAnnotationListeners(AnnotationParser.java:201)
    07/04/19 09:53:03      at com.evermind.server.ejb.AnnotationParser.parseAnnotations(AnnotationParser.java:73)
    07/04/19 09:53:03      at com.evermind.server.ejb.EJBPackageDeployment.parseMetaData(EJBPackageDeployment.java:939)
    07/04/19 09:53:03      at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.java:832)
    07/04/19 09:53:03      at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:217)
    07/04/19 09:53:03      at com.evermind.server.Application.setConfig(Application.java:439)
    07/04/19 09:53:03      at com.evermind.server.Application.setConfig(Application.java:340)
    07/04/19 09:53:03      at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1853)
    07/04/19 09:53:03      at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:512)
    07/04/19 09:53:03      at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:196)
    07/04/19 09:53:03      at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    07/04/19 09:53:03      at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
    07/04/19 09:53:03      at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    07/04/19 09:53:03      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/04/19 09:53:03      at java.lang.Thread.run(Thread.java:595)
    My interface looks like this:
    package gov.mi.mdch.mcirhl7.ejb.service;
    @WebService
    public interface CodeDataServiceWebService extends Remote {
    List<ServiceType> queryServiceTypeFindAll()
    throws RemoteException;
    List<Version> queryVersionFindAll()
    throws RemoteException;
    This interface is implemented with a simple stateless session bean (where I do not have any web service specific annotations, mainly because JDeveloper did insert any there when it auto-generated the web service interface). Both Version and ServiceType are EJB 3.0 entity beans which extend gov.mi.mdch.mcirhl7.data.Select. If I change ServiceType so that it does not extend Select, then it deploys fine. Same if I just comment out queryServiceTypeFindAll() altogether. However, when I successfully deploy the web service, the generated WSDL and mapping file make no mention of the Select class, so I don't see why there's a problem with that class when more than one of my List types extends it.
    I've been searching for a solution to this problem for most of the week to no avail. Any thoughts? Thanks.
    Joel
    Subject was edited by: user570454

    Joel,
    You may have some encounter some backward incompatibility between the code generated for 10.1.3.2, when you run the application in the embedded container and when you deploy on a remote instance using 10.1.3.1.
    It may be worth trying to re-assemble the application using JDev 10.1.3.1 or use the command line (or ant integration) of WSA to build the application that you target at the 10.1.3.1 instance using the same version of the tooling.
    Chapter 18 of the user guide provide details about ant commands.
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28974/wsassemble.htm#CHDDBCCA
    You may also want to report this using the metalink/support channel, so that the potential bugs behind this can be addressed for you.
    -Eric

  • RFC function as a Web service - how to make wsdl type names unique

    Hello,
    We have a RFC function module, converted into a web service named ZVIEW_AGREEM, which works perfectly. Note that we only have a basic CRM system (Basis 7.31 SP 11), we don't have PI.
    There is a client request to create a new version of this web service, named ZVIEW_AGREEM_2 : there is a new field "output_parameter2" in the response. The response type has XSD type named "VAGResult" (that we entered manually in the service definition).
    The client also asked us to keep the old web service so that to be able to switch to the new one at a future date.
    So, we duplicated the function module, duplicated the DDIC structure, and inserted the requested field, and then we made the web service.
    It's okay except that the client complains that his software doesn't accept the WSDL, because we kept the same external type name "VAGResult", and it's different between the 2 web services (in the second, there is the extra "output_parameter2"). Both are assigned the standard SAP namespace urn:sap-com:document:sap:rfc:functions.
    Do you know if there is a way to make SAP control the unicity of external type names to avoid having WSDL types with the same name and different structures?
    Thanks.
    Sandra
    Attached is the WSDL of ZVIEW_AGREEM_2; ZVIEW_AGREEM is exactly the same but doesn't have "output_parameter2".

    Thanks.
    But the question is more about the fact that we may name a type as we want, SAP does not check (VAGResult in the screen capture below, which becomes <complexType name="VAGResult"... in the WSDL). It may be the same name as a type in another Web Service, both types may have completely different structures. It's a problem from a "philosophical" perspective, as these types share the same namespace "urn:sap-com:document:sap:rfc:functions"; the client software doesn't accept that, we have to rename it; I'd like to know whether SAP proposes a way to prevent choosing a name if it's already chosen for another type of different content.

Maybe you are looking for