Oracle generates invalid WSDL

Hi, guys!
I use XML DB native Web Services of the project.
The type of input parameters for my duties are "Object Types".
But when I have an attribute in one object type to another object, the wsdl document which generates the Oracle is not valid.

CREATE or REPLACE TYPE name_tp AS OBJECT)
first name varchar2 (20).
......)

CREATE or REPLACE TYPE person_tp AS OBJECT)
name_tp person_name,
.......)

create or replace function test (p_person person_tp)
......

When I have this situation, the wsdl file is not valid, because Oracle generates sth like this
< xsd: element name = "person_name" type = "name_tp" / >
Instead of
< xsd: element name = "person_name" type = "tns:name_tp" / >

How can any ideas, I solve this problem?

Which is profound,
Slavi

The problem with the type being is not in the correct namespace is bug 8274288. You need to upgrade to 11.2.0.1.0 or contact support and ask for a single patch for this bug.

Tags: Database

Similar Questions

  • Entity Framework generates invalid oracle sql.

    I have similar tables:
    create the table ParameterSets
    (
    Identification number (10, 0) not null,
    Name nvarchar2 (50) not null,
    primary key constraint ParameterSet_PK (Id)
    );

    Create the table settings
    (
    Identification number (10, 0),
    Name nvarchar2 (50).
    Number of ParameterSetId (10, 0) not null,
    primary key constraint Parameters_PK (Id),
    Constraint Parameters_ParamSet_FK foreign key (ParameterSetId) makes reference to ParameterSets (Id)
    );

    create table user groups
    (
    Identification number (10, 0) not null,
    Name nvarchar2 (50) not null,
    Number of ParameterSetId (10, 0) not null,
    primary key constraint UserGroups_PK (Id),
    Constraint UserGroups_ParamSet_FK foreign key (ParameterSetId) makes reference to ParameterSets (Id)
    );

    create table users
    (
    ID number (10,0) not null,
    GroupId number (10,0) not null,
    Name nvarchar2 (50) not null,
    primary key constraint Users_PK (Id),
    Constraint Users_Groups_FK foreign key (GroupId) made reference to UserGroups (Id)
    );

    And I want to do a join between these tables by using this statement:

    application of var = u into entities. Users.Include ("UserGroup.ParameterSet.Parameters")
    where u.Id == 1
    Select u;

    var user = query. SingleOrDefault();

    It's very simple Linq, but it generates invalid SQL Oracle that contains OUTER APPLY.
    I found that there is a bug to Microsoft for this, but can it be fixed by the Oracle provider?
    At the end which layer generates MS SQL final (EF) or ODP (the provider)?
    because "sql query" generates invalid SQL but adds completely SingleOrDefault code Oracle «rownum < 2"»

    The sql is:
    SELECT
    "Project1". "" ID2 "AS"ID. "
    "Project1". ' ' ID ' AS 'ID1 ',.
    "Project1". "' GROUPID ' LIKE 'GROUPID ',.
    "Project1". "" NAME "AS"NAME. "
    "Project1". "" ID1 "LIKE"ID2 ",.
    "Project1". "" NAME1 "AS"NAME1"
    "Project1". "" PARAMETERSETID "AS"PARAMETERSETID. "
    "Project1". "" ID3 "AS"ID3"
    "Project1". "' NAME2 ' AS 'NAME2 ',.
    "Project1". "" C1 "AS"C1"
    "Project1". "" ID4 "AS"ID4,"
    "Project1". "" NAME3 "AS"NAME3"
    "Project1". "' PARAMETERSETID1 ' AS 'PARAMETERSETID1 '.
    (SELECT
    "Filter1". "" ID1 "AS"ID. "
    "Filter1". "' GROUPID ' LIKE 'GROUPID ',.
    "Filter1". "' NAME1 ' AS 'NAME',
    "Filter1". "' ID2 ' AS 'ID1 ',.
    "Filter1". "' NAME2 ' AS"NAME1"
    "Filter1". "" PARAMETERSETID1 "AS"PARAMETERSETID. "
    "Filter1". "" ID3 "LIKE"ID2 ",.
    "Filter1". "" ID4 "AS"ID3"
    "Filter1". "' NAME3 ' AS 'NAME2 ',.
    "Filter2. "" ID5 "AS"ID4,"
    "Filter2. "" NAME4 "AS"NAME3"
    "Filter2. "" PARAMETERSETID2 "AS"PARAMETERSETID1. "
    BOX WHEN ('Filter2". ("" ID5 "IS NULL) NULL THEN 1 OTHER END AS"C1 ".
    FROM (SELECT "Extent1". ' ' ID ' AS 'ID1', "Extent1". "' GROUPID ' LIKE"GROUPID","Extent1 ". "" NAME "AS"Name1","Extent2. ' ' ID ' AS 'ID2', 'Extent2. "' NAME ' AS 'Name2', 'Extent2. "' PARAMETERSETID ' AS 'PARAMETERSETID1', 'Extent3 '. ' ' ID ' AS 'ID3', 'Extent3 '. "" NAME "AS"name5', 'Extent3 '. "' PARAMETERSETID ' AS 'PARAMETERSETID3', 'Extent4 '. ' ' ID ' AS 'ID4', 'Extent4 '. "" NAME "AS"NAME3 ".
    "CLAUDY. "" USERS ""Extent1 ".
    INNER JOIN "CLAUDY. "' USER groups '"Extent2"ON"Extent1 ". "' GROUPID ' = 'Extent2. "" IDENTITY CARD ".
    LEFT OUTER JOIN "CLAUDY. "' USER groups '"Extent3"ON"Extent1 ". ' ' GROUPID ' = 'Extent3. ' "" IDENTITY CARD ".
    LEFT OUTER JOIN "CLAUDY. "" PARAMETERSETS ""Extent4"ON"Extent3 ". "" PARAMETERSETID "="Extent4. " "" IDENTITY CARD ".
    WHERE (1 = "Extent1". ((' ' ID ')) "Filter1".
    OUTSIDE APPLY (SELECT "Extent5". "" ID "AS"ID5","Extent5 ". "" NAME "AS"Conjoint4","Extent5 ". "' PARAMETERSETID ' AS 'PARAMETERSETID2', 'Extent6 '. ' ' ID ' AS 'ID6', 'Extent6 '. "" NAME "AS"NAME6', 'Extent6 '. "' PARAMETERSETID ' AS 'PARAMETERSETID4 '.
    "CLAUDY. "" PARAMETERS ""Extent5. "
    INNER JOIN "CLAUDY. "' USER groups ' 'Extent6' ON 'Extent6 '. "" PARAMETERSETID "="Extent5. " "" PARAMETERSETID ".
    WHERE ("Filter1". ' ' GROUPID ' = 'Extent6. ' ((' ' ID ')) 'Filter2.
    ) "Project1".
    ORDER BY "Project1". "' ID2 ' ASC, 'Project1 '. ' ' ID ' ASC, 'Project1 '. "' ID1 ' ASC, 'Project1 '. "" ID3 "CSA"Project1 ". ' ' C1 ' ASC

    I think shame is for the EF team - this query is simple join between four tables.
    Select * from users u
    UG ug = u.groupid left join user groups. ID
    left join ParameterSets on ug.parametersetid = ps.id ps
    a left join parameters p ps.id = p.parametersetid
    where u.id = 1

    Oracle 12 c and 12 c ODP.NET database are now supported by APPLYING a lateral view. As long as you use these versions or above, you will see is no longer this LINQ error generated in your applications.

    As described above, to support to APPLY necessary to change the Oracle SQL dialect in order to accommodate the LINQ query generation.

  • Error trying to generate the WSDL of the Web service in JDeveloper 11.1.1.3

    Hey,.
    Whenever I try to generate a WSDL for a Web service, I get the following stack trace:

    java.lang.NullPointerException
    at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getTypeReasons(JavaWebServiceValidator.java:882)
    at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getInvalidValueTypes(JavaWebServiceValidator.java:1060)
    at oracle.jdeveloper.webservices.model.java.JavaWebServiceValidator.getValidationErrors(JavaWebServiceValidator.java:241)
    at oracle.jdeveloper.webservices.model.CoreHashStructureModel.validate(CoreHashStructureModel.java:187)
    at oracle.jdeveloper.webservices.model.generator.Validation.action(Validation.java:65)
    at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:143)
    at java.lang.Thread.run(Thread.java:619)

    I am able to run this webservice via run and debug, and 'Test this webservice.' It's only when I try to generate the WSDL file in jdeveloper I get this message. I'm even able to display the WSDL file in the browser by adding? WSDL at the end of the url for the web service endpoint. Any ideas?

    It is very possible that @XmlSeeAlso is not the only annotation that is causing problems to the jdev wsdl generator.
    You can try to remove all the relevant annotations and then add them both just to see that one is problematic, but even if you do not find
    What is the cause of the problems, you will have to wait until the next jdev release and hope it is fixed.
    The best thing for you to do is to file a bug with the support of the Oracle, to ensure that they are aware.

    Pedja

  • How to generate the WSDL

    Hello
    I have the demo of web services from this page http://www.oracle.com/technology/sample_code/products/jdev/1012/web_service/adf_webservice_readme.html
    but now I need to generate a wsdl to work with her in the Oracle BPMSuite

    How to deploy it to a WSDL file

    Thank you

    Take a look at this tutorial for JDeveloper 11 g:
    http://www.Oracle.com/technology/OBE/obe11jdev/Bulldog/WebServices/WS.html
    More details here:
    http://www.Oracle.com/technology/products/jdev/11/cuecards111/index.html

  • How to generate the WSDL in CCB231

    How to generate the WSDL in ccb231? I'm not able to use the WSDL generated to XAI inbound service like soapUI gives importing problem. I couldn't open the schema editor to generate the WSDL as ODBC driver is missing from my windows machine 7. Any suggestions please

    What kind of import errors that you get with soapUI?

    I have a virtual machine running CC & B 2.3.1 with SoapUI 3.6.1 and when I import the WSDL generated by XAI Inbound Service it runs smoothly.

  • Import XSD existing in Jdev to generate the WSDL

    Is it possible to import XSD into an existing project in JDeveloper, so I can use them to generate a WSDL.
    The only option I see now, is to create an empty xsd a copy/paste the content of the xsd already exist in the project.
    My fealing says there must be a more elegant way to do it.

    Kind regards
    Stefan

    Hi Stefan

    To the title of the file menu use the import option, import the option new project, to import existing source. Note You can copy files to the new project from another location, and also it is not necessary to create a new project, in the name of Assistant just an existing project.

    Kind regards

    CM.

  • error when generating specific wsdl

    When I try to generate the specific WSDL using webserver determinations for some applications, it works for some applications, it's that it doesn't

    http://localhost:9010 / determinations-server9010/SOAP? WSDL (it works) but it isn't specific modules
    http://localhost:9010 / determinations-server9010/SOAP/rulebasename/specific? WSDL does not not for applications

    Any idea on this?

    UserVR wrote:
    I run the project using the determinations Oracle server, accessed this specific modules wsdl url http://localhost:9010 / determinations-server9010/SOAP/rulebasename/specific? wsdl a returned HTTP 404 (not found) error.

    But the rule of thumb has deployed Oracle determinations, but http 404 error from server.
    any idea on that

    This is especially if you have a module that is not compatible with the server of determinations. For a modules running in the server of determinations, all basic levels and purpose of attribute and must have a public name.

    You can check if your modules is compatible in the following ways:

    1. in Studio go to menu Tools-->--> Validation of build Options
    2. check compatibility "Check Server determinations.
    3. click on OK
    4. open and rebuild your modules.

    If no construction WARNING came, then you must add public names to the specified attributes.

    I hope this helps.

    See you soon
    Frank

  • CVI 2013 generate invalid code

    Hello

    CVI 2013 generates an invalid code for the function pointer.

    For example, this code works very well in 2012 CVI, but not in CVI 2013. Any idea?

    #include 
    #include 
    
    struct FunctionType
    {
        const char *name;
        void *func;
    };
    
    static const struct FunctionType functions[] =
    {
        { "func", GetFullPathName },
    };
    
    typedef DWORD (WINAPI *GetPathFunc)(LPCSTR, DWORD, LPSTR, LPSTR *);
    
    int main(int argc, char *argv[])
    {
        char buf[256];
        GetPathFunc f = (GetPathFunc)functions[0].func;
    
        if (f != GetFullPathName) {
    
            puts("Invalid ptr");
    
        } else {
    
            if (f(argv[0], sizeof(buf), buf, NULL) > 0) {
    
                puts(buf);
            }
        }
    
        return (0);
    }
    

    Hello hglee,.

    Your code looks fine. I filed the bug report #423480 to follow up the matter.

    Our new compiler important GetFullPathName of inconsistently. The main function, it refers directly to the implementation in the kernel32.dll module. In the static variable, it designates the pointer 'import' for the function (a pointer to the implementation). Interestingly, in CVI 2012 refers us to the 'import stub' in both cases (a jump through the pointer to the implementation).

    As a temporary workaround, you can manually cancel the extra level of indirection by changing a single line in your code:

       GetPathFunc f = *(GetPathFunc*)functions[0].func;
    

    However, it is DANGEROUS because, depending on how we decide how solve the problem, the workaround solution can become a bug itself in the future, and it may crash your program. So please keep that in mind when you change your code (for example, add a comment and a link to this post to remind you).

    Thank you

    Peter

  • Provide the Webservice not generating corresponding WSDL URL link based on the service operation.

    Hi all

    The webservice to provide link generates the corresponding WSDL URL based on the Service operation.

    For example, we currently have two service operations namely creating and updating. We use the e-mail of lines. Provide the Webservice correct WSDL URL generated link to the create operation, but it provides the same URL for the update operation as well. kindly share your knowledge if you guys ever faced similar problem.

    Concerning

    Lherault

    Hakan,

    I agree with you that service operations are childs of Services. I am trying to create URLS for the operations of specific service because of the requirement. So if this is the case, then the URL must be different, I think. I tried your logic of selection of all service operations and generate a unique URL for this service. But when I tried to open the URL in Internet explorer all I could find under the label of operation name is a Service operation and not any other selected. I went and checked under the UTILITIES SERVICE--> Service of Directors. Under the WSDL of the Service operation generaed I deleted the existing generated WSDL and then recreated the URL of the web service to provide and the problem is solved. Thanks for your time and effort Hakan... Very much appreciated.

    Concerning

    Lherault

  • Oracle Text invalid after upgrade to 11.2.0.3

    Hello
    I upgraded a database on Win64 11.2.0.1 to 11.2.0.3 Patch 10 .

    Now, the object CTXSYS. DRIOPT is not valid and cannot be validated by the compilation.

    Here is the output of DBA_REGISTRY:
    STATUS OF VERSION COMPUTERNAME
    --------------------------------------------------------------------
    JServer JAVA Virtual Machine 11.2.0.3.0 VALID
    OLAP Analytic Workspace 11.2.0.1.0 OPTION OFF
    OLAP catalog 11.2.0.1.0 OPTION OFF
    Oracle Application Express 4.1.0.00.32 VALID
    Oracle 11.2.0.3.0 database catalog view (s) VALID
    Oracle database Java packages 11.2.0.3.0 VALID
    Database Oracle and 11.2.0.3.0 Types VALID packets
    Oracle Enterprise Manager 11.2.0.3.0 VALID
    INVALID Filter Expression Oracle 11.2.0.3.0
    Oracle Multimedia 11.2.0.3.0 VALID
    Oracle OLAP API 11.2.0.1.0 OFF OPTION
    Rules of Oracle Manager VALID 11.2.0.3.0
    Oracle Text 11.2.0.3.0 INVALID
    Oracle Workspace Manager 11.2.0.3.0 VALID
    Oracle XDK 11.2.0.3.0 VALID
    11.2.0.3.0 Server Oracle XML VALID
    OWB 11.2.0.1.0 VALID
    space 11.2.0.1.0 OPTION OFF

    Thanks in advance.

    Kind regards
    Martin

    Hello..

    I had the same problem... followed note meta... problem solved...

    * Manuelle installation, uninstallation, and Oracle 11 g 2 [970473.1 ID] text verification *.

  • Incorrect hostname in automatically generated by WSDL

    I am moving some services to a new server-based CFC web.
    However, the auto-generated WSDL files (which work fine on the old server) are generated with an incorrect host name in the < location =... wsdlsoap:address > field. The host name that appears in the WSDL generated by the new server is a single host name INTERNAL clients cannot access. I think that this is due to the use of virtual servers by name based on the new server under IIS. On the old server, the host name that appears in the wsdl file is any hostname you entered in your browser to access the automatically generated WSDL.

    The last few lines of the WSDL file look like this.
    < binding = "" impl:criminals.cfcSoapBinding: Port "name =" xxxxxx.cfc ">"
    "< wsdlsoap:address location =" http://INTERNAL_HOSTNAME.DOMAIN.net/xxxxxx.cfc "/ > "
    < / wsdl: port >
    < / wsdl:service >
    < / wsdl:definitions >

    It is an IIS issue. Here are the details.
    http://support.Microsoft.com/kb/834141/

  • Generate class files using the WSDL url and wsimport

    I am trying to create a java application that hits the service exposed by hub.

    To create the application in java, I'm generating class files using the WSDL that is created and exposed by the hub.

    Executed steps:

    1 created an application in OPA.

    2. deployed on the hub (usinf deploy option of snapshot on Policy Modeling)

    3. in the deployment tab, I see the request and get the url of the wsdl by clicking on it.

    I try on this wsdl wsimport command. But it gives me following error messages.

    ---------------------------------------------------------------------------------------------------

    C:\***\AllFiles > wsimport http://localhost:7001/hub/determinations-Server/assess/SOAP/generic/12.2/AttemptOne?WSDL

    the analysis of WSDL...

    [ERROR] invalid WSDL http://localhost:7001/hub/determinations-Server/assess/SOAP/generic/12.2/AttemptOne?WSDL , expected {http://schemas.xmlsoap.org/wsdl/} html (line 2) data definitions

    Cannot read the WSDL document: ( http://localhost:7001/Hub/determinations-Server/assess/SOAP/Generic/12.2/AttemptOne?WSDL , because 1) did not find the document. (/ 2) the document could not be read. (3) the element the document root is not < wsdl:definitions >.

    [ERROR] WSDL:service is not found in the WSDL (s) provided:

    At least a WSDL with definition of at least one service must be provided.

    Unable to parse the WSDL file.

    ---------------------------------------------------------------------------------------------------

    If I store the wsdl file in a file on my local computer, and then run wsimport, it generates the classes very well.

    Can someone provide me with a way that I can generate the classes using the wsdl url and not the local file?

    Also, do I need to create a connection in the Connections tab on the hub?

    Thanks in advance.

    -Alain

    Looks like you could run in the user authentication when wsimport runs against the WSDL. Instead of the WSDL, its reception, the login page.

    The best way to work around this problem is perhaps what you do already - to obtain the wsdl and save them in a file.

    Another solution is to disable the restriction of connection to the Web Service API. You can do this in the menu on the users page (admin role can turn on and off.

    You can switch between a user and a password with the call of the WSDL file, but I don't know if its possible to do with wsimport

    See you soon

    Frank

  • Invalid number (01722) in Oracle 10 g

    Hello, everyone,

    I have an Oracle 10 g server, and it is a table where the first column is a VARCHAR 36 and contains Oracle generated uid.

    I'm trying to run a SELECT query that gets a correspondent (date 19) where UID = ' {a 36 characters long UID} ".  I get the error ORA-01722 invalid number message.

    SELECT s.ENTERED_DATE
    
    FROM dsp.status s
    
    WHERE s.UID = '4a29d12025012995c231f18eb7704009'
    

    I tried to use TO_CHAR() and CAST() nothing helps.  What Miss me?

    V/r,

    ^_^

    UID is not a word that the Oracle reserves for a pseudo-column representing a whole number?

  • Is there a way to change the models used to generate the client proxy WSDL classes

    Hello
    I'm curious to know if we will be able to customize the generation of proxy WSDL in the FB3 WSDL Import tool. The reason is that it creates quite a mess of spaghetti at the moment and it would be nicer to have a structure to create it classes. something like:

    generated. WebServices.WebService1
    generated. WebServices.WebService1.VO
    generated. WebServices.WebService1.service

    etc...

    In addition, buy using namespaces we can import several webservices in a project that COULD have your bearing the same name.

    Now, it's probably fine for users who have just a few methods for import, but once you start bringing some Web services, each with 20 methods, the directory structure is quite messy.

    Thank you
    Todd

    Hi Todd,

    No, the models used to generate the wsdl files are not editable, and for your destination will not help that much either - it is set at the location code files and not models. In addition, a proposal like this has been taken into account, but it won't really use of the function in the mxml syntax. By having more than one folder, you need to define several namespace prefixes and use - for example for service, one for the vo

    Now you can import several services, even if they have similar class names, by setting the names of different package - the generated.webservices it is just the default that provide us with when you load the wsdl of a local computer document. You must use your own package name - for example com.service_name.

    Hope that helps,
    Cristian

  • SOA gateway integrated R12.1: cannot display the thread of WSDL generated

    Hi all

    I just generated the wsdl file for the FND_PROFILE option using the integrated SOA gateway. However, I don't get the 'Generate the WSDL' button.

    Its a new facility R12.1.
    Y at - it something the DBA must have missed.

    Kindly let me know.

    Let me know if I missed something
    Kind regards
    Deepak

    Hello

    Please see (Note: 861982,1 - generate WSDL button on visible Pages in 12.1.1 repository integration integrated SOA gateway).

    Kind regards
    Hussein

Maybe you are looking for