Using UTL_DBWS to contact IIS hosted Web Service

Hello-
A generous No-Prize to anyone with insight on this issue...
I am using UTL_DBWS to contact an IIS hosted web service, relevant code here:
FUNCTION call_gnr ( p_name IN varchar2 ) return varchar2 IS
l_wsdl_url varchar2 ( 1024 ) := 'http://localhost/GNRD/GNRD.dll?Handler=GenGNRDWSDL';
l_service_name varchar2 ( 200 ) := 'GNRDService';
l_port varchar2 ( 200 );-- := 'GNRDServiceSoap';
l_operation_name varchar2 ( 200 ) := 'Search';
l_service utl_dbws.service;
l_call utl_dbws.call;
l_xml xmltype;
l_xml_result xmltype;
BEGIN
l_service := utl_dbws.create_service (
wsdl_document_location => urifactory.getURI(l_wsdl_url),
service_name => l_service_name );
l_call := utl_dbws.create_call (
service_handle => l_service,
port_name => l_port,
operation_name => l_operation_name );
l_xml := xmltype.createXML(
'<urn:Search xmlns:urn="urn:GNRDService">' ||
'<id>1</id>' ||
'<name>' || p_name || '</name>' ||
'<maxReply>1000</maxReply>' ||
'<minPercent>1</minPercent>' ||
'</urn:Search>' );
l_xml_result := utl_dbws.invoke (
call_handle => l_call, request => l_xml );
utl_dbws.release_call ( call_handle => l_call );
utl_dbws.release_service ( service_handle => l_service );
return l_xml_result.getstringval;
END call_gnr;
This works like a charm a few times in a row, but once I get a few simultaneous sessions going, I get the following error:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.IllegalAccessException: error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from http://localhost/GNRD/GNRD.dll?Handler=GenGNRDWSDL: HTTP connection error code is 403
ORA-06512: at "SYS.UTL_DBWS", line 193
ORA-06512: at "SYS.UTL_DBWS", line 190
Checking the stack trace in my Oracle dump file yields the following:
ServiceProxy.get(-1261915448) = oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy@73f04687
ServiceFacotory: oracle.j2ee.ws.client.ServiceFactoryImpl@3c74ef49
WSDL: http://localhost/GNRD/GNRD.dll?Handler=GenGNRDWSDL
ERROR: error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from http://localhost/GNRD/GNRD.dll?Handler=GenGNRDWSDL: HTTP connection error code is 403
error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from http://localhost/GNRD/GNRD.dll?Handler=GenGNRDWSDL: HTTP connection error code is 403
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:180)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:178)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:160)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.buildServiceInfo(ServiceInfoBuilder.java:99)
     at oracle.j2ee.ws.client.dii.ConfiguredService.<init>(ConfiguredService.java:54)
     at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:43)
     at oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy.<init>(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy.<init>(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy.createService(Unknown Source)
CAUSE:
oracle.j2ee.ws.common.tools.api.WsdlValidationException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from http://localhost/GNRD/GNRD.dll?Handler=GenGNRDWSDL: HTTP connection error code is 403
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:180)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:178)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:160)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.buildServiceInfo(ServiceInfoBuilder.java:99)
     at oracle.j2ee.ws.client.dii.ConfiguredService.<init>(ConfiguredService.java:54)
     at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:43)
     at oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy.<init>(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy$ServiceProxy.<init>(Unknown Source)
     at oracle.jpub.runtime.dbws.DbwsProxy.createService(Unknown Source)
Caused by: oracle.j2ee.ws.common.tools.api.WsdlValidationException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from http://localhost/GNRD/GNRD.dll?Handler=GenGNRDWSDL: HTTP connection error code is 403
     at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:166)
     at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel(ModelInfo.java:171)
     at oracle.j2ee.ws.client.dii.ServiceInfoBuilder.getModel(ServiceInfoBuilder.java:175)
     ... 8 more
java.lang.IllegalAccessException: error.build.wsdl.model: oracle.j2ee.ws.common.tools.api.WsdlValidationException: WSDLException: faultCode=OTHER_ERROR: Failed to read WSDL from http://localhost/GNRD/GNRD.dll?Handler=GenGNRDWSDL: HTTP connection error code is 403
     at oracle.jpub.runtime.dbws.DbwsProxy.createService(Unknown Source)
I'm totally stumped. Why do I suddenly get an HTTP connection error code 403 after a dozen valid calls? Any help appreciated.
Dave

Hello
I think that something has changed in your environment between the moment the system was working and now that you get the HTTP-403 error.
As you probably know the DB call is doing a simple HTTP call, so I believe the issue is coming from the URL that you are using that is probably now invalid.
Could you take the furl URLs (WSDL and endpoint) and see from the server what will be the HTTP call result ? (directly from a browser or telnet session)
Regards
Tugdual Grall

Similar Messages

  • Are there are no weblogic hosted web services on the internet?

    I want to find a weblogic hosted web service for a demo. But I can't find a single internet based example that is explicitly hosted on weblogic.
    Does anyone have an example web service I can use ?
    Surely BEA would benefit from publishing a few examples...

    ONLY the carrier to which it is locked can legally unlock it.
    No one else at all can do this.
    As far as I know the Verizon iphone will only work with Verizon or foreign carriers if unlocked by Verizon.

  • Book Module Error "Could not contact the Blurb Web Service"???

    I have successfully used Lightroom in the past to upload a book with no problems. I'm currently running the most updated version of Lightroom v 5.6. I've just finished a new book and am getting the error message "Could not contact the Blurb Web Service. Check your internet connection." My internet connection is fine, my firewalls and anti-virus are turned off, I've restarted both Lightroom and my computer. Same problem.
    My research has shown this is a very common problem, but all the forums I've found do not have answers on how to solve the problem. All the posts I've found about this problem are either unanswered or suggest things like turning off and turning back on "unchecking apply background globally" and other tips related to the background and text, or change the cover style back and forth, etc. None of these has worked for me.
    I am ordering this book as a wedding album for a client and it is URGENT that I get the order uploaded within the next few days or I'm going to have to refund the clients' payment and lose the job, which would be extremely professionally embarrassing. I'm VERY frustrated and have very eager customers waiting. PLEASE HELP ASAP!!!
    Janine Fugere
    As Seen by Janine
    www.asseenbyjanine.com

    I solved the Lightroom Book Module problem of "Could not contact Blurb Web Service. Please check your internet connection."
    With the help of Adobe Lightroom's telephone tech support, a very patient man named Himanshu helped me discover what was causing this issue, after researching the issue and calling me back. Nice touch Adobe! It was pleasant to be able to do other things while Himashu researched and consulted with other techs to find my solution.
    As very many other people have reported in user forums, the problem was not that I didn't have an Internet connection.
    The problem was caused by my PC's Windows 8 User Account Settings, which somehow had Internet Settings that conflict with the upload to Blurb from Lightroom. The Adobe Lightroom tech support person helped me create a new user account, and I am able to successfully upload to Blurb from Lightroom under the new account. We created a quick test book to try and it worked just fine under the new user account.
    Not sure how this solution would translate for a MAC user (I've read of people with Mac computers getting the same upload error) but I advise checking your User Account's Internet Settings, whatever type of computer you are using.
    The only minor glitch I still have is that my new Windows user account can't access any of my photo files (or any other files) from my old user account, even when I gave the new user account administrator access. I have a very large internal hard drive, so my photos & catalog are stored internally. The Lightroom tech support advised me to contact Lenovo (my computer manufacturer) for help to transfer all my files from my original user account to the new one I just created. I will do that very soon.
    Meanwhile, my temporary workaround was to export my Lightroom Catalog and the photos I needed for this book onto an external hard drive, so I could access them from the new user account. My wedding clients' book has been successfully uploaded to Blurb!
    I'm sharing so others with this problem uploading from Lightroom to Blurb may also find this solution works for them, too.

  • How to use a cascading LOV as a Web Services Consumer?

    How to use a cascading LOV as a Web Services Consumer?
    We are trying to populate a prompt programmatically.
    Our program is a Web Services Consumer.
    As an example we use Island Resorts Marketing
    The cascading LOV for City is
    Country -> Region -> City
    The City object is key-aware to the customer table
    The query is
    Customer | Revenue
    (where) City = [prompt]
    In order to make the key-awareness work, we must select the value (rowIndex) from the LOV
    When we run our program below, the LOV for City is not populated, as expected since we must first select the Country, then the Region.
    The code snippet below shows that the LOV for Country is populated. We have no idea how to go from there.
    Any hint will be immensely appreciated.
    Let us know if anything is unclear in the code.
    Source       
    RetrieveMustFillInfo retrieveMustFillInfo = RetrieveMustFillInfo.Factory.newInstance();
            RetrievePromptsInfo retrievePromptInfo = RetrievePromptsInfo.Factory.newInstance();
            retrievePromptInfo.setPromptLOVRetrievalMode(PromptLOVRetrievalMode.ALL);
            retrievePromptInfo.setRefreshReturnedLOVs(true);
            retrievePromptInfo.setReturnLOVOnMustFillPrompts(true);
            retrieveMustFillInfo.setRetrievePromptsInfo(retrievePromptInfo);
            // *-- need the "Refresh" action to get the .promptToBeFilled
            Action[] boActions = new Action[1];
            boActions[0] = Refresh.Factory.newInstance();
            try {
                documentInformation = reportEngine.getDocumentInformation(Integer.toString(infoObject.getID()), retrieveMustFillInfo, boActions, null, null);
                m_Token = documentInformation.getDocumentReference();
            } catch (Exception ex) {
                System.out.println(GetWSError(ex));
                return;
            if (documentInformation.getMustFillPrompts()) {
                PromptInfo[] promptInfoS = documentInformation.getPromptInfoArray();
                for (PromptInfo promptInfo : promptInfoS) {
                    System.out.println(String.format("Prompt '%1$s', hasLOV=%2$s", promptInfo.getName(), (promptInfo.getHasLOV() ? "Yes" : "No")));
                    if (promptInfo.getHasLOV()) {
                        LOV boLOV = promptInfo.getLOV();
                        for (Value boLOVValue : boLOV.getValuesArray()) {
                            System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
                    System.out.println("--End LOV");
                    PromptInfo[] promptInfoS2 = promptInfo.getPromptToBeFilledArray();
                    if (promptInfoS2.length > 0) {
                        PromptInfo promptInfo2 = promptInfoS2[0];
                        System.out.println(String.format(" linked to %1$s", promptInfo2.getName()));
                        if (promptInfo2.getHasLOV()) {
                            LOV boLOV2 = promptInfo2.getLOV();
                            for (Value boLOVValue : boLOV2.getValuesArray()) {
                                System.out.println(String.format(" LOV item '%1$s' RowIndex=%2$s", boLOVValue.getColumnsArray(0), (boLOV2.getRowIndexed() ? boLOVValue.getRowIndex() : "")));
                            System.out.println("--End LOV");
    Result
    Prompt 'Enter value(s) for City:', hasLOV=Yes
    --End LOV
    linked to Enter value for Country of origin
    LOV item 'Australia' RowIndex=6
    LOV item 'France' RowIndex=2
    LOV item 'Germany' RowIndex=4
    LOV item 'Holland' RowIndex=7
    LOV item 'Japan' RowIndex=5
    LOV item 'UK' RowIndex=3
    LOV item 'US' RowIndex=1
    --End LOV

    Hi,
    Refer SAP Note 1278947. You would require a Service Market Place logon to access this article.
    Let me know if this helps.
    Regards,
    Shreyans Surana

  • Using JAX-RPC handlers to proxy web service traffic

    Hi,
    I want to use JAX-RPC handlers to proxy web service traffic. In some instances the handler should modifiy / verify the message before forwarding the request to the remote web service end-point. Hence, the handler should forward the call by invoking the remote web service. In some cases the result from invoking the remove service should be post-processed by another proxy handler. To ensure that the result from invoking the remote service is available for post-processing I assume that the handler invoking the remote service must add the response message to the message context ( e g setProperty method) in the handler. Is this correctly understood?
    I would like to understand that this is a technically feasible and reasonable approach of using JAX-RPC. I'd really appreciate some feedback here.
    Many thanks,
    Tom

    Hi Eric,
    Thanks for your response. we are trying to access WSRR( manages end point urls for 7 different environments) and generate the end point dynamically at the design time. As we figured out WSRR is not compatible with OSB we are trying to implement these client side (OSB Proxy service) handlers which would get the dynamic endpoint depending on the environment used. I was able to create the handlers for this and set the jar in the classpath but the client service which should be using these handlers have to have these handlers defined in the deployment descriptor(web.xml) which am unable to see with a OSB project.
    Will there be a deployment descriptor(web.xml/webservices.xml) associated with Proxy services on OSB? Or Is there any other way to add custom JAX-RPC Handlers to a proxy service? Or is there any way to connect to WSRR directly?
    Thanks,
    Swetha

  • How to use an ABAP exception as a web service fault

    Hi experts,
    I have created a web service out of an ABAP function module, using the SAP standard wizard for web services. The ABAP function has some exceptions defined. Now the question is: How can I "translate" these ABAP function exceptions to web service faults?
    In the WSDL file I can see that the web service defines the faults, but they are not part of the web service operation (in the WSDL file). So when I load the definition into JDeveloper, the faults are not recognized.
    Any ideas what I am missing here?
    Thanks in advance!
    Kind regards, Matthias

    Exceptions from SAP function module are not translated as web service fault message, this is a standard behaviour due among other to the fact that exceptions are not "in line" with the definition a web service fault message.
    Usually when you want to use a standard SAP function module and expose it as web service, you need to "wrap-it" into a new Z function module.
    In that new function module you must capture the exceptions and convert them into a web service fault message structure (usually containing error type, text and number)
    Karim

  • We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means

    We are using the Azure server for our web services. Server is generating an error "Unable to connect to the remote server". What is this error means  

    Hello,
    Did you means that you use the Windows Azure Virtual Machine DNS name as the server name in the Reporting Server Web Services URL?
    For example:
    Report server:http://uebi.cloudapp.net/reportserver
    Report manager:http://uebi.cloudapp.net/reports
    If you want to connect to Report Manager on the virtual machine from a remote computer, you should create a  virtual machine TCP Endpoint and open the port in the virtual machine’s firewall. By default, the report server listens for HTTP requests
    on port 80.
    Reference:http://msdn.microsoft.com/en-us/library/jj992719.aspx#bkmk_ssrs_connect_2_remote_RM
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Problems using the Java API inside a Web Service

    Hi,
    after I've built a standalone Java RMI client, using the API, I wanted to use the same code in a Web Service I've built and deployed in tomcat (jwsdp-1.3). But i ran into a few problems..
    - although I have the exact same code in both programs, the one in the web service simply blocks when I initiate the Locator class (see above...);
    - all the .jar's that I use in the client are deployed in the WEB-IF/lib of the web service directory on tomcat;
    - no exceptions are thrown in tomcat, so i don't know what's going on;
    Is there any specific configuration for the API to run on tomcat?
    Could it be that the .jar's needed by the Locator class may have some kind of conflict with the ones in tomcat?
    Thanks...
    Note: The code on the client is totaly stable and fully operational.
    The web service uses java.rmi.Remote (extends Remote).
    Here's part of the code:
    Properties env = new Properties();
    env.setProperty("orabpel.platform", "oc4j_10g");
    env.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
    env.setProperty("java.naming.provider.url","ormi://dellpc05/orabpel");
    env.setProperty("java.naming.security.principal","admin");
    env.setProperty("java.naming.security.credentials","welcome");
    Locator locator = new Locator("default", "bpel", env);
    IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
    (...)

    I've put a
    try{Locator...}
    }catch(Throwable t) {
    System.out.println(t.getMessage());
    t.printStackTrace();
    around the Locator..
    I still don't know why it's throwing this...
    Here's what it gets:
    before Locator
    javax/jms/JMSException
    java.lang.NoClassDefFoundError: javax/jms/JMSException
         at com.evermind.server.ThreadState.getCurrentState(ThreadState.java:206)
         at com.evermind.server.rmi.RMIConnection.checkServletCaller(RMIConnection.java:3448)
         at com.evermind.server.rmi.RMIConnection.<init>(RMIConnection.java:181)
         at com.evermind.server.rmi.RMIServer.addNode(RMIServer.java:856)
         at com.evermind.server.rmi.RMIServer.getConnection(RMIServer.java:953)
         at com.evermind.server.rmi.RMIInitialContextFactory.getInitialContext(RMIInitialContextFactory.java:309)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.init(InitialContext.java:219)
         at javax.naming.InitialContext.<init>(InitialContext.java:195)
         at com.collaxa.cube.util.CXBeanRegistry.lookupDomainManagerBean(CXBeanRegistry.java:205)
         at com.oracle.bpel.client.auth.DomainAuthFactory.authenticate(DomainAuthFactory.java:84)
         at com.oracle.bpel.client.Locator.<init>(Locator.java:120)
         at com.oracle.bpel.client.Locator.<init>(Locator.java:91)
         at dmc.tm.resultprovider.ResultProviderImpl$ResultProviderThread.taskTimeoutExceeded(ResultProviderImpl.java:231)
         at dmc.tm.resultprovider.ResultProviderImpl$ResultProviderThread.run(ResultProviderImpl.java:160)

  • Invoking multiple host web services from JCAPS web service (RemoteException

    I am trying to invoke 2 web services sequentially ( not JCAPS service , some host service exposed as web service ), from my jcd which is also exposed
    as a web service.Both the host service have incorporated basic http authentication scheme,and i am setting the security credentials in the enviornment.
    (ie SOAP/HTTP external systems - client).
    However when I deploy my web service and try to invoke the host services,the first host service being called is invoked successfully and i get the response back.But the second service throws a RemoteException and the SOAP response carries "Client not authorized" message in faultstring detail tag.
    I do have separate external SOAP/HTTP systems for both the services,also the external systems have been configured with
    the HTTP basic authentication credentials.
    Infact I tried creating 2 separate JCAPS service for calling the host services individually.I am able to get the expected output
    from the services.
    The issue only arises when the host services are invoked in a sequential manner from a single JCAPS service.
    Please do let me know if i can fill in some more gaps in the information i have provided.
    Could this possibly be an issue in JCAPS?

    I have couple of doubts in this context.
    a) Is this issue only restricted when web services not developed using JCAPS are invoked or it arises also when 2 JCAPS external services are invoked
    sequentially.(I tried a PoC where in i created 2 deployments for calling the host services and invoked the deployment using another JCAPS web service and it worked fine)
    b) Also if this issue only arises when the external web services being invoked have security credentials or just invoking any web services in sequence create
    this problem.
    PS : Any link to contact the sun support team?

  • Using SAML policy while invoking a web service

    I have to invoke a webservice which is secured using the policy wss10_saml_token_client_policy.
    In order to achieve the above i have creates a stub using JAX-WS and while invoking the web service I pass the policy as a SecurityFeature.Code snippet given below:
    SecurityPolicyFeature[] securityFeatures = new SecurityPolicyFeature[] { new SecurityPolicyFeature(
                        getValueFromPropertyFile("oracle/wss10_saml_token_client_policy"))};
    SomeStub stub =(UserManagementPortTypev1_0)SomeService.getPort("...","....",securityFeatures );
    Once deployed in weblogic and when i invoke the service, the soap request formed is correct. It creates for me the soap header with the correct security nodes. The header formed is like below:
    <S:Header>
    <work:WorkContext xmlns:work="http://oracle.com/weblogic/soap/workarea/">rO0ABXoAAAJDADBvcmFjbGUuZG1zLmNvbnRleHQuaW50ZXJuYWwud2xzLldMU0NvbnRleHRGYW1pbHkAAAFPAAAAKXdlYmxvZ2ljLndvcmthcmVhLlNlcmlhbGl6YWJsZVdvcmtDb250ZXh0AAABSaztAAVzcgAxd2VibG9naWMud29ya2FyZWEuU2VyaWFsaXphYmxlV29ya0NvbnRleHQkQ2Fycmllcv1CAh9z5wpPAwACWgAHbXV0YWJsZUwADHNlcmlhbGl6YWJsZXQAFkxqYXZhL2lvL1NlcmlhbGl6YWJsZTt4cHcEAAAAAXNyAEFvcmFjbGUuZG1zLmNvbnRleHQuaW50ZXJuYWwud2xzLldMU0NvbnRleHRGYW1pbHkkU2VyaWFsaXphYmxlSW1wbAAAAAAAAAAAAwABTAARbVdMU0NvbnRleHRGYW1pbHl0ADJMb3JhY2xlL2Rtcy9jb250ZXh0L2ludGVybmFsL3dscy9XTFNDb250ZXh0RmFtaWx5O3hwdykAJzEuMDAwMEl6T0lYQ0swam9PTE1pcDJpZTFEbUNMdjAwMDAwMjt2MHh3AQF4ACZ3ZWJsb2dpYy5kaWFnbm9zdGljcy5EaWFnbm9zdGljQ29udGV4dAAAAX8AAAAyd2VibG9naWMuZGlhZ25vc3RpY3MuY29udGV4dC5EaWFnbm9zdGljQ29udGV4dEltcGwAAAAiMDAwMEl6T0lYQ0swam9PTE1pcDJpZTFEbUNMdjAwMDAwMgAAAAAAAAAAAAAA</work:WorkContext>
    <wsse:Security S:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <saml:Assertion AssertionID="SAML-L0r20MS5CV0y7B6zHnGX5w22" IssueInstant="2011-05-10T05:03:49Z" Issuer="www.oracle.com" MajorVersion="1" MinorVersion="1" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion">
    <saml:Conditions NotBefore="2011-05-10T05:03:49Z" NotOnOrAfter="2011-05-10T05:08:49Z"/>
    <saml:AuthenticationStatement AuthenticationInstant="2011-05-10T05:03:49Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password">
    <saml:Subject>
    *<saml:NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">anonymous</saml:NameIdentifier>* <saml:SubjectConfirmation>
    <saml:ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:sender-vouches</saml:ConfirmationMethod>
    </saml:SubjectConfirmation>
    </saml:Subject>
    </saml:AuthenticationStatement>
    </saml:Assertion>
    </wsse:Security>
    </S:Header>
    The node NameIdentifier is supposed to be populated with the logged in user id, which will be picked up from JAAS principal.
    Now I am invoking the service hosted in weblogic from outside using JSON protocol, I do not have a portal ready to invoke the service.
    My question is, is there any way in which i can replicate/ simulate the JAAS principal such that the nameidentifier is populated even when invoked from outside. THis is a requirement from testing perspective.

    Hi,
    Thanx it is working now.
    BTW can you give me some urls with info of this kind of setting which i need to do for other kind of integarions in J2EE platform.Sorry if i am asking too much as i am a starter in this technology.

  • UTL_DBWS - Multiple calls to a web-service

    I am new to using UTL_DBWS and am wondering how to call a web-serivce multiple times with the same connection.
    I have this sample code and am wondering if there are any experts to tell me if this is right?
    DECLARE
       l_city   VARCHAR2 (500);
       PROCEDURE get_city_from_zipcode
       AS
          l_service           UTL_DBWS.service;
          l_call              UTL_DBWS.CALL;
          l_result            ANYDATA;
          l_wsdl_url          VARCHAR2 (32767);
          l_namespace         VARCHAR2 (32767);
          l_service_qname     UTL_DBWS.qname;
          l_port_qname        UTL_DBWS.qname;
          l_operation_qname   UTL_DBWS.qname;
          l_input_params      UTL_DBWS.anydata_list;
       BEGIN
          l_wsdl_url := 'http://webservices.imacination.com/distance/Distance.jws?wsdl';
          l_namespace := 'http://webservices.imacination.com/distance/Distance.jws';
          l_service_qname := UTL_DBWS.to_qname (l_namespace, 'DistanceService');
          l_port_qname := UTL_DBWS.to_qname (l_namespace, 'Distance');
          l_operation_qname := UTL_DBWS.to_qname (l_namespace, 'getCity');
          l_service := UTL_DBWS.create_service (wsdl_document_location      => urifactory.geturi (l_wsdl_url), service_name => l_service_qname);
          l_call := UTL_DBWS.create_call (service_handle      => l_service
                                        , port_name           => l_port_qname
                                        , operation_name      => l_operation_qname
          FOR cur IN (SELECT '94065' zip
                        FROM DUAL
                      UNION ALL
                      SELECT '94066' zip
                        FROM DUAL)
          LOOP
             l_input_params (0) := ANYDATA.convertvarchar2 (cur.zip);
             l_result := UTL_DBWS.invoke (call_handle       => l_call, input_params => l_input_params);
             DBMS_OUTPUT.put_line (ANYDATA.accessvarchar2 (l_result));
          END LOOP;
          UTL_DBWS.release_call (call_handle      => l_call);
          UTL_DBWS.release_service (service_handle      => l_service);
       END;
    BEGIN
       get_city_from_zipcode;
    END;Thanks

    Well, I don't have APEX installed. I'm trying to use in a standalone way, just to make RESTful requests from PL/SQL (i don't need APEX). Is it possible to share all the objects referenced in the package flex_ws_api?
    thanks

  • Using JARX API to register a Web service in IBM UDDI Business Registry

    HI.
    I have a code, which uses the JAXR API to register a web service to the IBM UDDI Business Registry Version 2.0. I compiled the code using the ant tool.
    When running the code, i get a java.security.PrivilegedActionException exception. i am using a proxy host to connect to the registry. I had registered with the registry and got a username and password. I am using the same username and password in the code.
    Can u help me?
    Thanks
    Arthi.

    Hi,
    I am getting the same error . Since this message was posted some time back, I suppose u might have found the solution to it.. Can u please provide the same to me,if u'v got it ??

  • Use only one port to answer web service

    I make web services to many companies.
    In a company they have a firewall and said me they need use only one port to put a web service.
    The web service is instanced in a one port, but the answer is made in different port (negociation between client and web server), when they use in a test server (with out firewall) the web service functioin OK, but when it is updated in Production (with firewall and the 7779 port open) don't function.
    I use OAS 10.2.
    Somebody know wath can I do.
    Thanks a lot.
    MIGUEL ANGEL CARO
    [email protected]

    Hi,
    Are you sure the proxy is configured (using IE) for the user running the host instance? (Especially on non development machines) this is not by default the same user as the currently logged in user.
    HTH,
    Randal van Splunteren 2 x MVP BizTalk Server, MCTS BizTalk Server
    my blog
    Check out the PowerShell provider for BizTalk
    Please mark as answered if this answers your question.

  • Host Web services on a second server

    Hello everyone, maybe it's a silly question.. but I don't know how to do that.
    I've 2 server on a single network, one Xserve (with leopard server) and one Mac Mini (with Snow Leopard server). The xserve is connected to the router and offers DNS, NAT and dhcp services; Mac Mini is connected to the internal network created by Xserve, and I'd like to host the web services (like site, wiki and blog) on the mac mini. How can I do that?
    I've a public IP but I think that points directly to the Xserve. How do I ensure that web services are accessible from outside using a browser?
    thanks in advance for your advice, any help is welcome!
    -a.

    External domains are a prerequisite here, and a minimum of one public static IP address.
    You can set that up with a reverse proxy (Apache reverse proxy) through the Xserve box, allowing connections from outside to reach the Xserve and the Xserve communicating with the Mac Mini box. This is basically a web pass-through, were Apache running on your Xserve can hand off to your Mac Mini. This involves reading the [web manual|http://www.apple.com/server/macosx/resources/documentation.html] and using Server Admin to establish the reverse proxy.
    You can also set up a mid-level server-grade external firewall (using an external firewall and not a Mac is locally preferred for various reasons) to have it port-forward connections based on IP address, for instance. This is a more traditional set-up for a web server, and is covered in various IP network configuration discussions around the Internet. This involves setting up your network with a reasonable mid-range commercial or open-source firewall, and establishing port-forwarding on the firewall.
    You must expect your servers to be attacked, and you will be attacked. The servers I administer are attacked many times a day, with XSS and SQL injection attempts and probes for various other known vulnerabilities, dictionary attacks against passwords, and attempts to post spam on the web sites are also very common. This involves monitoring your logs, watching for attacks, and staying current on all your software and keeping your archives current; your (trusted) backups are the path back from a server breach.
    You may want to consider a DMZ for your public-facing services, which is another feature of a typical server-grade firewall, as a web breach can get hairy for the rest of your LAN. Using a properly-configured DMZ usually isolates a breach.
    Here's an old [write-up on the various network pieces|http://labs.hoffmanlabs.com/node/275] that can be involved in a small server-oriented network configuration.

  • How to use the same element in different Web-Services?

    I have defined a web-services in two WSDL files.
    I want to use the same type in this two services. Because if one service call the other one, it could pass the class it just got. Otherwise, the classes can't be casted.
    Web-Service1:
    public com.package1.State inputValue (com.package1.State state) {
    return state;
    Web-Service2:
    public com.package2.State inputValue (com.package2.State state) {
    return state;
    }And now, If I call from the Service2, the Service1 and put
    Service1.inputValue(com.package2.State state) ;
    I can't do this, can't cast and so on. But I want my tool WSDL2Java, will create the same State.class for two Web-Services, like:
    Web-Service1:
    public com.package3.State inputValue (com.package3.State state) {
    return state;
    Web-Service2:
    public com.package3.State inputValue (com.package3.State state) {
    return state;
    }Is it possible? How to define it in wsdl?
    Thanks in advance.

    You can certainly do this in WSDL, simply put your
    common element in a schema file and "include" it into
    each of your WSDL files. Obviously your element will
    have to use the same namespace in all places.
    I'm not sure whether wsdl2java can cope with
    "include" statements in WSDL. I know plenty of other
    similar tools, e.g. Axis and .Net tools, didn't
    support this however they may have moved on since I
    used them.
    To get around this you have to "manually" include the
    schema in each wsdl for code generation purposes.Thanks for the answer. I did as you said and it works fine.

Maybe you are looking for

  • Trying to install Visio 2010 add-in for rack server virtualization - fails

    I am running Visio 2010 Professional 32-bit.  I am running it on a Windows 7 Enterprise machine, 64 bit.  I am trying to install the Visio 2010 Add-In for Rack Server Virtualization.  When running the installer I get the following message: "Setup can

  • License requires 24 characters, mine is much longer

    I downloaded "SAP NetWeaver 7.0 SR2 TestDrive - VMware Edition" and ran it. It gives me the SUSE Linux Enterprise Server running Java. Everything goes very smooth until I have to enter my license key. I tried to import the file that was emailed to me

  • Restricting members in Planning Webform depending on the member selection

    Hi Guru's Is there a way in the planning webform, to restrict members showing in the form, for example, I have Entity, Employee, Position. Depending on the entity selection I need to display on the form related to that entity. Any help will be greatl

  • Debug problem

    I installed the sneak preview Enterprise portal on my machine. Yesterday i was able to debug my portal application. But today i wasn't. This problem was after the moment I deleted the old portal application. Can someone tell my how i can fix this pro

  • Workflow attachment table

    Dear expert, Anyone of you know what is the name of the table that store workflow attachment? Thanks. Regards, Bryan