"Access is Denied" when trying to RDP to Server 2012

When attempted to RDP to a Windows Server 2k12, occasionally I will receive a "Access is Denied" error after entering credentials. Direct console access works fine. Attempted to RDP to 2k12 server with Win XP, Win7x64 Pro, Win 8.1, WinServer2k3
and WinServer2k12, however no connection was made. If we reboot the Win2k12 server, RDP works fine for an unknown amount of time. Usually this issue will happen on a Friday, we reboot, RDP works, come in Monday morning, and it does not work.
Followed steps in the following article, however issues persists.
http://social.technet.microsoft.com/Forums/windowsserver/en-US/8405bed7-57a8-4b54-b968-6b0e00f367dd/access-is-denied-remote-desktop
Also followed this article, however issue persisted:
http://blogs.technet.com/b/askperf/archive/2010/07/08/the-case-of-the-mysterious-access-denied-aka-more-on-service-hardening.aspx
I'm gathering more information such as Event Viewer logs, screenshots, and Registry entries.
Thanks in advance!

I have found the answer. This server is a Terminal Server, and it could not connect with the RD Host. After changing some local DNS settings and disabling un-used NIC's, I was able to get a good connection and RDP successfully.

Similar Messages

  • "error: \lib (access is denied)" when trying to deploy

    I have a sql server stored proc that I have successfully created the artifacts for as specified in documentation I had rec'd in a prior thread. Now, when I go to deploy, I immediately get the error:
    "error: \lib (access is denied)"
    I have verified the path to the lib folder as specified in my genterate.bat file to create the artifacts. It is shown below. I am not sure what I need to do.
    SETLOCAL
    @echo Generating BPEL artifacts for %1
    @echo off
    @echo off
    set PROPERTIES=DCSD_SIPA_FEE_UPDATE.properties
    set J2EE_HOME=C:\golden_lam\JDeveloper\JDeveloper_10.1.3.3\jdevstudio10133\integration\lib
    set OC4J_HOME=C:\golden_lam\JDeveloper\JDeveloper_10.1.3.3\jdevstudio10133
    set JDBC_HOME=C:\golden_lam\JDeveloper\JDeveloper_10.1.3.3\jdevstudio10133\lib
    set JDBC_DRIVER=%JDBC_HOME%\sqljdbc.jar
    set JAVA_HOME=C:\golden_lam\JDeveloper\JDeveloper_10.1.3.3\jdevstudio10133\jdk
    set JAVA_CLASSPATH=C:\golden_lam\JDeveloper\JDeveloper_10.1.3.3\jdevstudio10133\lib
    set ARTIFACTS_CLASSPATH=%MY_CLASSPATH%;%JAVA_CLASSPATH%;%J2EE_HOME%\DBAdapter.jar;%J2EE_HOME%\bpm-infra.jar;%J2EE_HOME%\connector15.jar;%J2EE_HOME%\orabpel.jar;%JDBC_HOME%\xmlparserv2.jar;%OC4J_HOME%\toplink\jlib\toplink.jar;%JDBC_DRIVER%
    "%JAVA_HOME%\bin\java" -cp "%ARTIFACTS_CLASSPATH%" oracle.tip.adapter.db.sp.artifacts.GenerateArtifacts %PROPERTIES%
    ----------------

    at which step do you try to navigate or generate something to this lib folder? (can you paste that code? )
    you do this by using a full path or relative ?

  • Network Connection error when Trying to Install Windows Server 2012 R2 Essentials

    Thank you to anyone who can help me out here. I have a brand new machine with known working wifi and wired ethernet adapters (works under Windows 8.1) I am attempting to install Windows Server 2012 Essentials R2. During the install process, the system connects
    to the internet to download updates to help along the install. No problem here. Further down the road after restarting several times and now during the "Configuring Windows Server Essentials" step of the install, I am told "There is no network
    connection. Please fix the connection issue and try again."
    When troubleshooting the connection, I am told that the wifi adapter drivers may not be installed. I have a wireless card in the machine and have also tried disabling the wifi adapter and have been connected successfully via the ethernet port this whole
    time.
    Help, I'm stuck and have been to this point in the install 4-5 times already.
    Thank you.

    Is this a laptop?  Can you remove the wifi? Disable it in BIOS?
    Does the wifi have an IP and internet when it throws the error?
    BTW, when the wizard ask about updates say no.  Takes way too long and does not help anything
    Change the binding order and put the wired on top.
    The Steps?
    Just open your Network and Sharing Center. (Change adapter settings)
    Press an ALTkey on your keyboard to show the menu bar.
    Click on the Advancedmenu
    choose Advanced Settings option
    Adjust your binding order for your NICs to ensure your wired ones are at the TOP
    http://regularitguy.com/2012/12/06/how-to-change-nic-binding-order-in-windows-8-and-windows-server-2012/
    Grey

  • My access is denied when trying to save a file

    I am having trouble saving a downloaded file.  I get a message "Access Denied".   I tried uninstalling and downloading again, but that did not help.

    After the download the file is on your system.

  • Photoshop cs4 access denied when trying to install from disc in Windows 7 64bit.

    Photoshop cs4 access denied when trying to install from disc in Windows 7 64bit. I tried it in
    safe mode and it starts to install but get an error there as well.
    What do I do?

    So when you put the disk in it won't run correctly? When the disk is inserted you should have a window pop up with 2 options. 1 to install and the other to see what is on the disk. Choose to explore or open the disk. Go to the CS4 folder where the photoshop .exe file is (that will run the setup), right click on the .exe file and choose run as Admin and it should start. See if it will install. If not then read below.
    I am not sure how far you got in the install before so chances are you will have to run the CS4 cleanup utility. 2 levels to run at but don't use 1 or 2 just type in the number 3.
    http://www.adobe.com/support/contact/cs4clean.html
    You may need to run the windows installer cleanup utility too
    http://support.microsoft.com/kb/290301
    Before you try to reinstall the software ensure that adobe reader is not installed. If it is remove it. It has caused issues in the past with vista and CS4 installs.
    Also turn off windows Defender and any anti-virus software. You can keep UAC on in Windows 7.
    During the CS4 install at 90 percent it will almost stop and may take 5 to 10 mins to finish. This is normal. What a pain huh......
    After install is finished, reboot
    After reboot, go to the CS4 64 bit or 32 bit icon (depends on 32 or 64 bit Windows 7) in start area, right click on CS4 64 bit (if you have windows 7 64 bit) and choose properties, compatibility tab and then check run as Admin at the bottom area. Hit apply, ok to close out.
    Now start CS4 and run the updater.

  • I receive "Database access denied" when trying to add component 4543BD

    I receive "Database access denied" when trying to add component 4543BD to my schematic. This component was added from a previous version. I'm using Multisim version 12.0.0  Student edition.
    Solved!
    Go to Solution.

    Hi Diarra,
    I checked my database and  the  4543 is not in the Student Edition. If you opened a schematic that was created in a higher version such as the Educaiton Edition and copied the part to your database, when you place this part you will get the access denied message. 
    Attached is a schematic with the part, you can open it and build you circuit around it.
    Tien P.
    National Instruments
    Attachments:
    4543.ms12 ‏62 KB

  • Communication error occurred when trying to connect to server

    I am using RAS SDK to connect to the BO server. While running the report for performing opendocument, it's giving the following error.
    Caused by: com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$CommunicationError: Communication error occurred when trying to connect to server PUNDL10492.WebIntelligenceProcessingServer
    cause:com.crystaldecisions.thirdparty.org.omg.CORBA.BAD_PARAM:   minor code: 0x0  completed: No
    detail:Communication error occurred when trying to connect to server PUNDL10492.WebIntelligenceProcessingServer
    The exception originally thrown was com.crystaldecisions.thirdparty.org.omg.CORBA.BAD_PARAM:   minor code: 0x0  completed: No
         at com.crystaldecisions.enterprise.ocaframework.e.do(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.o.try(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.p.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(Unknown Source)
         at com.businessobjects.rebean.wi.occa.OccaConnection$CDZStubHelper.getService(OccaConnection.java:270)
         at com.crystaldecisions.enterprise.ocaframework.e.do(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.o.try(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.p.a(Unknown Source)
         at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(Unknown Source)
         at com.businessobjects.rebean.wi.occa.OccaConnection.doConnect(OccaConnection.java:110)
         ... 38 more
    Caused by: com.crystaldecisions.thirdparty.org.omg.CORBA.BAD_PARAM:   minor code: 0x0  completed: No
         at com.crystaldecisions.enterprise.ocaframework.idl.OCA.OCAcdz.WICDZServer.CDZHomeHelper.narrow(CDZHomeHelper.java:109)
         at com.businessobjects.rebean.wi.occa.OccaConnection$HomeStubHelper.narrow(OccaConnection.java:338)
         ... 52 more
    Please help me to solve the issue

    Using BO SDK i am connecting to the BO Report Server, to fetch the BO Reports, But while trying to run the report, i am getting the following error.
    Caused by: com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$CommunicationError: Communication error occurred when trying to connect to server PUNDL10492.WebIntelligenceProcessingServer
    cause:com.crystaldecisions.thirdparty.org.omg.CORBA.BAD_PARAM: minor code: 0x0 completed: No
    detail:Communication error occurred when trying to connect to server PUNDL10492.WebIntelligenceProcessingServer
    The exception originally thrown was com.crystaldecisions.thirdparty.org.omg.CORBA.BAD_PARAM: minor code: 0x0 completed: No
    at com.crystaldecisions.enterprise.ocaframework.e.do(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.o.try(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.p.a(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(Unknown Source)
    at com.businessobjects.rebean.wi.occa.OccaConnection$CDZStubHelper.getService(OccaConnection.java:270)
    at com.crystaldecisions.enterprise.ocaframework.e.do(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.o.try(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.o.a(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.p.a(Unknown Source)
    at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(Unknown Source)
    at com.businessobjects.rebean.wi.occa.OccaConnection.doConnect(OccaConnection.java:110)
    ... 38 more
    Caused by: com.crystaldecisions.thirdparty.org.omg.CORBA.BAD_PARAM: minor code: 0x0 completed: No
    at com.crystaldecisions.enterprise.ocaframework.idl.OCA.OCAcdz.WICDZServer.CDZHomeHelper.narrow(CDZHomeHelper.java:109)
    at com.businessobjects.rebean.wi.occa.OccaConnection$HomeStubHelper.narrow(OccaConnection.java:338)
    ... 52 more
    Please someone help me with the following issue.

  • After downloading InCopy I click on the downloaded file to install, but the process stops when trying to connect with server and doesn't carry on.

    After downloading InCopy I click on the downloaded file to install, but the process stops when trying to connect with server and doesn't carry on. Can you please help?
    Thanks,

    Agathe.texier which copy of InCopy are you downloading and installing?  Do you receive any specific error messages?  Finally what operating system are you using?

  • Slow printing with rdp Terminal server 2012

    Hi,
    we've got some problems with slow printing on a wan link with RDP to server 2012, i tried several solutions like:
    Disable easy print service ( it shoud be to increase performance but it doesn't work)
    option: Send the print job directly to the Printer
    I'm out of my options, there are no connection problems with the remote branch office and before using server 2012 they had terminal server 2003 and printing works fine over rdp.
    Thanks for your advice

    Did you monitor the spooling size of the print jobs?
    Depending from the drivers and the software used there may flow a serious amount of data, since both hardware and software makers no longer care about efficient programming, if it comes to bandwidth and storage occupation sizes. Slow WAN connections do not
    fit in to their picture any more ...
    This was still different in the Server 2003 era.
    Best greetings from Germany
    Olaf

  • Access Denied when trying to access shared folders on the server with administrative privileges

    I have problem accessing shared folder on the server machine from Windows 7 machine even if I try to access it with administrative privileges (server Administrator account). I will try now to explain better my situation.
    In my company, we have small network infrastructure with one main server machine (HP ProLiant server) with Windows Server 2012 R2 installed and couple of desktop machines. The network is administrated by me.
    On Windows Server we have installed and setup DHCP, DNS, Remote Access and Routing, File and Storage and Active Directory services. Desktop machines are having Windows 8.1 Pro, Windows 8.1 or Windows 7 Home Premium installed on them. In Active
    Directory I have created domain, User groups and Users for employees in my company and so far, I didn't added desktop machines to the domain.
    Also, I've created one folder on the server which should contain different projects data for network users and I have set access permissions and security for this folder and shared it on the network (I've added couple of users to one user group and I
    gave Full control to this group over this folder). When I try to access this folder from network, I've been asked for login credentials (normally), where I just type in one of users username and password who has been given access permissions to (who is member
    of group with full control over the folder). From Windows 8.1 Pro and Windows 8.1 machines I can access and work on this folder without any problems.
    The problem comes with Windows 7 machines. On Windows 7 machines (I have also tried this with Windows 7 Ultimate in VMWare) I can access server, I can see its shares, but as soon I try to access folder I've created for projects, I get Access Denied message
    with request for User login credentials. Whichever user account I use (even servers main Administrator account) I keep getting this message over and over and I'm unable to access it at all.
    I have also tried to access the server through VPN (from local or outside) but I'm getting the same error again. Also I've tried to add these Windows 7 machines to the domain and login with domain user but the result is the same. Turned off both firewalls
    (on server and desktop machines, which I know is unnecessary, but lets try it), still same case. I've tried couple more things with registry editor on desktop machines which I found on different forums and websites but still no luck. And now I don't know
    what else I can do.
    Does anyone knows what's the problem here, have I set something wrong, have not set something I should?

    Hi MeipoXu,
    thanks for your response. I will first answer on your question.
    Yes, the main issue is that we can see the folder when we access the server but we cannot access its contents from Windows 7 machines. I have tried on two machines, one with Windows 7 Home Premium version and the other one with Windows 7 Ultimate version
    and the situation is the same.
    As you recommended, I've checked Network Discovery and File and Printer Sharing and the situation is next: File and Printer Sharing is turned on all layers (Private, Public and Domain) while Network Discovery is off for all layers too. I don't know if this
    is normal thing but Network Discovery cannot be turned on in Windows Server (I'm able to select Turn on Network Discovery and apply the changes, but when I get back to this settings page, I again see that it's turned off, so I assume this can't be changed
    at all).
    I also tried with icacls in command prompt and everything seems to be ok there regarding permissions. Share permissions are set to Full control to Everyone and Security permissions are set to Full control only for Administrators and the user group I've created
    for employees in my company. The confirmation for this is that on Windows 8 machines you can access this folder without any problem and without getting any message connected with access permissions with any user account within this user group. This share is
    created through File and Storage Services service in Server Manager panel.
    And then something came up on my mind. I went in Server Manager to check shared folder settings in File and Storage Services and under Settings page I saw that "Encrypt data access" has been enabled (I enabled this option because I thought
    I will get more security with this option). I asked my self what would happen if I disable it, tried it and now everything works ok on Windows 7 machines too. Now I assume that Windows 7 doesn't have this feature implemented or there are some
    settings which needs to be set on Windows 7 machines to make this encryption thing work with Windows Server. So basically, I will let this feature off for now until I find out more about it and how to implement it to work with all operating systems.
    I want to thank you once more for your kind help!

  • Access Denied When Trying To Install Printer - Windows 7

    Good Day
    I have a serious problem on a client's computer. All I need to do is connect the laptop to a network printer, but I am having a lot of difficulty in doing so.
    First the details of the laptop: Windows 7 Professional 64-bit connected to network using ETH cable. Avira Professional antivirus running, firewall disabled on pc, user is member of administrators group only.
    Details of the printer: Xerox Workcentre 3220, connect to network using ETH cable, but also shared on pc also running Windows 7 64-bit Professional.
    I am able to ping the printer and have connected all the other pcs on the network to the printer without any troubles whatsoever. Printing, scanning - everything is working fine for the other pcs. I am also able to connect to shares from the laptop to any
    other pc.
    So here is my issue with this specific laptop:
    Firstly, when using the "Add Printer" wizard, the "Add a local printer" option is greyed out.
    So I tried connecting to the printer using the"Add a network, wireless or Bluetooth printer" option, which seemed to be working, but during installation it gives an Access Denied error and undoes the installation.
    Then I tried connecting to the share of the printer on one of the other pcs, which had the exact same result.
    I then tried to modify an other printer, by firstly trying to add a new Local Port, but the I recieve the following error: "Specified port cannot be added. Access is denied."
    I tried then adding the driver using the Windows Print Server, but the buttons were unavailable.
    After reading on many forums, I accessed the Print Management console (Control Panel -> Administrative Tools -> Print Management)m and tried adding the printer and ports there, but recieved an "Access Denied" error every time.
    Basically whatever I tried, I recieved "Access Denied" errors. I created a new user, which is only a member of the Administrators group. Logged in with new user, without any success in connecting to the printer. I then tried adding security permisssions
    for "everyone" to the folder C:\Windows\System32\spool\PRINTERS, as I read on another forum. I tried modifying the group policy using gpedit.msc and also using the Local Security Policy, although I could have missed some things in these two places,
    but basically with a quick glance, everything seemed fine. I am sure there are no virusses, etc on this laptop and as I have said all the other pcs connected to the printer very easily.
    How can it be that I cant install a printer on this laptop, while I was able to do so a year or so back?
    I have gotten a few suggestions that it will in the end just save me time by formatting the pc and reloading all the data and programs, but this isn't an option I really want to take. And then I have previously had issues with the "Add a local printer"
    option greyed out and unable to add printers, etc, but then I was able to solve the problem by creating a new user and then switching to that user - which indicated a possible user profile corruption. But in this case even that did not work.

    Hi,
    please check your below configuration:
    1.Start the policy editor (Control Panel -> Administrative tools -> Local security policy)
    2.Select “Local policy” item
    3.Find the item “Devices: Prevent Users from Installing Printer Drivers” in the section Security Settings -> Security Options and change it to Enabled
    4.Go to “Security Settings -> User Rights Assignment” section and check, that “Load & Unalod Drivers” option contains the active user group. It important, that even if it has “All Staff” already, it still could miss “Administrators” group, so it’s necessary
    to add it manually.
    In addition, this thread could be referred:
    http://social.technet.microsoft.com/Forums/en-US/8c3c3d97-9d85-4ab0-9fc8-4b7aba202fb2/windows-cannot-connect-to-the-printer-access-is-denied-please-help?forum=itprovistaprinting
    Karen Hu
    TechNet Community Support

  • Access denied when trying to install itunes on windows 7

    when trying to install itunes I get a message access denied. using win 7 i have read that a certain windows update can cause this. can anyone  provide any information on how to fix this?  I've tried to remove this, but in control panel-update history, it say it was installed 08/22. when i look at the list to uninstall it, i don't see it.
    KB2918614

    Go to Control Panel > Programs and Features > View installed updates then search the list for Security Update for Microsoft Windows (KB2918614). You may need to adjust the column widths to read the full titles. Uninstall it if you have it, then reboot and try installing iTunes again.
    If you have further issues see Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Error Message access denied when trying to install on SD Card

    Hi,
    I got this errormessage whan I'm trying to install the image about CMD (run as Admin):
    C:\FFUTEST>dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDr
    ive1 /SkipPlatformCheck
    Access is denied.
    Does anybody know a solution?

    Are you able to see the SD card in file explorer?  When you performed the diskpart command sequence:
    diskpart
    list disk
    exit
    Did your SD card show up as physicaldrive1?
    Is the SD card either 8 or 16 GB in size and Class 10?
    Also, are you running this command on a Windows 10 install?
    You might check that explorer or cmd don't have a reference to the SD card still.  If a program is accessing the card that might prevent DISM from accessing it in exclusive mode.
    Jonathan Tanner | Microsoft | Windows 10 IoT Core Insider Preview Support | This posting is provided 'as is' with no warranties and confers no rights.

  • ACCESS DENIED when trying to use custom site template to create new Subsite

    I am trying to create a new site using a custom template. I am the new admin here at the company. Other also are having "access denied" errors when trying to create the site using these custom templates. 
    However I can still create a site using the out of the box templates. I have given myself site collection admin (primary) and I am a farm administrator as well. Any ideas on why I keep getting access denied to specific templates?
    The entire site collection is using the custom template. When I try to create a new site under the site collection with a custom template now, it says "access denied". Any ideas?
    Thanks!
    Note - I am able to use the Custom Site Templates in the test environment without any issues. Only in the production/live environment am I getting the access denied error.

    I am not finding anything that comes up in the ULS logs about the access denied. I tried creating the site in the test environment using the custom template and it worked. I go to the production environment and try to create the site with the same template
    and get "error:access denied - current user domain\user" I checked in the ULS logs as soon as the access denied appears (pretty quickly after pressing create) and there is nothing at that specific time. This is a huge problem, is there any way to
    work around or fix this? I'm a new admin.

  • ORA-31050:Access denied when trying enabling the database-native Web servic

    Dear all,
    I'm trying to follow the instruction of OBE about "Using Oracle XML DB Web Services for Service-Oriented Architecture " as this url http://st-curriculum.oracle.com/obe/db/11g/r1/prod/datamgmt/xmldb2_b/xmldb2_b.htm#http .
    I would like to enable the database-native Web service end point in Oracle XML DB and I already execute the script to create Web Service Endpoint.
    Anyway, I got the following error.
    ORA-31050: Access denied
    ORA-06512: at "XDB.DBMS_XDB", line 528
    ORA-06512: at "SYSTEM.ADDSERVLETMAPPING", line 91
    I found that this procedure was created on system schema but the problem occur when I tried to call ADDSERVLETMAPPING procedure.
    This is a code that I used to enable.
    set pagesize 100
    set linesize 132
    set long 20000
    set echo on
    -- conn sys/oracle as sysdba
    create or replace procedure addServletMapping (pattern varchar2,
    servletname varchar2,
    dispname varchar2,
    servletclass varchar2,
    servletschema varchar2,
    language varchar2,
    description varchar2,
    securityRole xmltype) as
    xdbconfig xmltype;
    begin
    xdbconfig := dbms_xdb.cfg_get();
    select deleteXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list/servlet[servlet-name="' || servletname || '"]'
    into xdbconfig
    from dual;
    if (language = 'C') then
    select insertChildXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list',
    'servlet',
    xmlElement
    "servlet",
    xmlAttributes('http://xmlns.oracle.com/xdb/xdbconfig.xsd' as "xmlns"),
    xmlForest
    servletname as "servlet-name",
    language as "servlet-language",
    dispname as "display-name",
    description as "description"
    securityRole
    into xdbconfig
    from dual;
    else
    select insertChildXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-list',
    'servlet',
    xmlElement
    "servlet",
    xmlAttributes('http://xmlns.oracle.com/xdb/xdbconfig.xsd' as "xmlns"),
    xmlForest
    servletname as "servlet-name",
    language as "servlet-language",
    dispname as "display-name",
    description as "description",
    servletclass as "servlet-class",
    servletschema as "servlet-schema"
    into xdbconfig
    from dual;
    end if;
    select deleteXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings/servlet-mapping[servlet-name="' || servletname || '"]'
    into xdbconfig
    from dual;
    select insertChildXML
    xdbconfig,
    '/xdbconfig/sysconfig/protocolconfig/httpconfig/webappconfig/servletconfig/servlet-mappings',
    'servlet-mapping',
    xmltype
    '<servlet-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
    <servlet-pattern>'||pattern||'</servlet-pattern>
    <servlet-name>'||servletname||'</servlet-name>
    </servlet-mapping>'
    into xdbconfig
    from dual;
    xdb.dbms_xdb.cfg_update(xdbconfig);
    end;
    call addServletMapping(
    '/orawsv/*',
    'orawsv',
    'Oracle Query Web Service',
    null,
    null,
    'C',
    'Web Services Servlet',
    xmltype(
    '<security-role-ref>
    <role-name>XDB_WEBSERVICES</role-name>
    <role-link>XDB_WEBSERVICES</role-link>
    </security-role-ref>'
    call addServletMapping(
    '/orawsdl/*',
    'orawsdl',
    'Oracle WSDLs',
    null,
    null,
    'C',
    'WSDL Servlet',
    xmltype(
    '<security-role-ref>
    <role-name>XDB_WEBSERVICES</role-name>
    <role-link>XDB_WEBSERVICES</role-link>
    </security-role-ref>'
    --grant XDB_WEBSERVICES to oe
    grant XDB_WEBSERVICES to TESTDB
    -- For 11g only
    --grant XDB_WEBSERVICES_OVER_HTTP to oe
    grant XDB_WEBSERVICES_OVER_HTTP to TESTDB
    --grant XDB_WEBSERVICES_WITH_PUBLIC to oe
    grant XDB_WEBSERVICES_WITH_PUBLIC to TESTDB
    -- Clean up afterward
    drop procedure addServletMapping
    Regards,
    Zenoni
    Edited by: zenoni on Jan 28, 2011 10:18 AM

    Test if you can access the generic WSDL using a browser
    http://server:port/orawsv?wsdlYou should get prompted for a username and password. If you provide the username and password of a database user who was been granted the Web Services Roles you should see the query service WSDL
    <definitions name="orawsv" targetNamespace="http://xmlns.oracle.com/orawsv"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        xmlns:tns="http://xmlns.oracle.com/orawsv"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/">
    <types>
      <xsd:schema
            targetNamespace="http://xmlns.oracle.com/orawsv"
       elementFormDefault="qualified">
       <xsd:element name="query">
        <xsd:complexType>
         <xsd:sequence>
          <xsd:element name="DDL_text" type="xsd:string"
           minOccurs="0" maxOccurs="unbounded" />
          <xsd:element name="query_text">
           <xsd:complexType>
            <xsd:simpleContent>
             <xsd:extension base="xsd:string">
              <xsd:attribute name="type">
               <xsd:simpleType>
                <xsd:restriction base="xsd:NMTOKEN">
                 <xsd:enumeration value="SQL" />
                 <xsd:enumeration value="XQUERY" />
                </xsd:restriction>
               </xsd:simpleType>
              </xsd:attribute>
             </xsd:extension>
            </xsd:simpleContent>
           </xsd:complexType>
          </xsd:element>
          <xsd:choice minOccurs="0" maxOccurs="unbounded">
           <xsd:element name="bind">
            <xsd:complexType>
             <xsd:simpleContent>
              <xsd:extension base="xsd:string">
               <xsd:attribute name="name" type="xsd:string" />
              </xsd:extension>
             </xsd:simpleContent>
            </xsd:complexType>
           </xsd:element>
           <xsd:element name="bindXML">
            <xsd:complexType>
             <xsd:sequence>
              <xsd:any/>
             </xsd:sequence>
            </xsd:complexType>
           </xsd:element>
          </xsd:choice>
          <xsd:element name="null_handling" minOccurs="0">
           <xsd:simpleType>
            <xsd:restriction base="xsd:NMTOKEN">
             <xsd:enumeration value="DROP_NULLS" />
             <xsd:enumeration value="NULL_ATTR" />
             <xsd:enumeration value="EMPTY_TAG" />
            </xsd:restriction>
           </xsd:simpleType>
          </xsd:element>
          <xsd:element name="max_rows" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="skip_rows" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="pretty_print" type="xsd:boolean" minOccurs="0"/>
          <xsd:element name="indentation_width" type="xsd:positiveInteger" minOccurs="0"/>
          <xsd:element name="rowset_tag" type="xsd:string" minOccurs="0"/>
          <xsd:element name="row_tag" type="xsd:string" minOccurs="0"/>
          <xsd:element name="item_tags_for_coll" type="xsd:boolean" minOccurs="0"/>
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
       <xsd:element name="queryOut">
        <xsd:complexType>
         <xsd:sequence>
          <xsd:any/>
         </xsd:sequence>
        </xsd:complexType>
       </xsd:element>
      </xsd:schema>
    </types>
      <message name="QueryInput">
       <part name="body" element="tns:query"/>
      </message>
      <message name="XMLOutput">
       <part name="body" element="tns:queryOut"/>
      </message>
      <portType name="ORAWSVPortType">
       <operation name="XMLFromQuery">
        <input message="tns:QueryInput"/>
        <output message="tns:XMLOutput"/>
       </operation>
      </portType>
      <binding name="ORAWSVBinding" type="tns:ORAWSVPortType">
       <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
       <operation name="XMLFromQuery">
        <soap:operation soapAction="http://localhost/orawsv"/>
        <input>
         <soap:body use="literal"/>
        </input>
        <output>
         <soap:body use="literal"/>
        </output>
       </operation>
      </binding>
      <service name="ORAWSVService">
       <documentation>Oracle Web Service</documentation>
       <port name="ORAWSVPort" binding="tns:ORAWSVBinding">
        <soap:address location="http://localhost/orawsv"/>
       </port>
    </service>
    </definitions>Edited by: mdrake on Jan 27, 2011 8:42 PM

Maybe you are looking for

  • Update control of movement type is incorrect

    while planning for a material with mrp type pd and strategy group as 20(make to order) i created a customer requirement against which after running mrp the tran md04 showed purchase req for a particular material which was released by me and converted

  • Menu Bar and Hard Drive Icon M.I.A.

    Hi When I woke my MacBook from "sleep" a while ago I have no menu bar or any of the icons that go on the right side of the screen. My dock is barely visible. I've tried system preferences to check on the screen size in "display". It's set to 1280 X 8

  • After installing ios7 on my iphone 4, bluetooth is not pairing with my bluetooth car speaker.  I have restored settings.  Any tips?

    Can anyone help/  After installing ios7 on the iphone 4, I cannot connect bluetooth on the phone with my bluetooth car speaker.  It worked before ios7.  I have restored my phone but it is still not working.

  • Issue with ipad screen

    I recently got the 4th generation ipad with retina display and love it. The issue that I have been having with it is that whenever I am on a screen for a while, lets say I am doing a crossword puzzle, whenever I change screens I will still see remnan

  • Quicktime wont go away

    My quicktime wont un-install. I try to install a new one so I can get my iTunes but it just says "You already have a newer Quicktime" Please Help