8 Replies Latest reply on Dec 13, 2011 6:26 PM by 858796

    unable to load wsdl file which is https

    858796
      hi Guys,

      I am trying to invoke a partner link with a wsdl with https://xxxxxxxxxx/xxxx/soap?ServiceName=xxxxxxx&wsdl

      it is throwing an error

      HTTP error code is 401

      I am using Jdeveloper 11.1.1.5

      Please note that my webservice is https.

      I know the username and password for the wsdl. It is working fine in SOAP. I can pass the messages and get response too.

      How do i load with webservice partner link activity in JDev, what should i give in the properties.
        • 1. Re: unable to load wsdl file which is https
          Neeraj Sehgal
          Hi Tirumala,

          There can be multiple reasons for this.

          1. What does it show in the logs? Is it Certificate Error?
          2. Are you able to open the wsdl in IE from where you have got Jdeveloper?
          3. Is the Hostname Verification set to None in WLS Console > Servers > Admin/SOA Server > Configuration > SSL > Advanced? If not try setting it.
          4. What is the value set for front-end host and port in WLS Console > Servers > Admin/SOA Server > Protocols > HTTP? Set it the correct value by which you want your service to be accessible.
          5. How does the deployed WSDL appear in the FMW Console > Test Webservice page? IS it the ame URL you are trying to invoke?

          Looking at the logs can give some directions.

          Regards,
          Neeraj Sehgal
          1 person found this helpful
          • 2. Re: unable to load wsdl file which is https
            858796
            Neeraj Sehgal,

            Thanks for the reply.

            Let me just explain you the scenario.

            1. I need to invoke a external wsdl and get the response.
            2.This worked fine in the soap UI.
            3.I have designed a bpel with web service as partner link and i could succesfully build and deploy it .
            4. When i am trying to test the service by giving basic http authentication in the test page.

            The following error is being reported

            java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://xxxxxxxxxxxxxx/enterprise/soap?ServiceName=xxxxxxxxxxxx at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:157) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1245) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://xxxxxxx/enterprise/soap?ServiceName=xxxxxx at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:985) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:716) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 68 more Caused by: javax.xml.ws.soap.SOAPFaultException: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://xxxxx/enterprise/soap?ServiceName=xxxxxx at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:882) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:715) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:226) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:97) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 71 more
                 
                 
                 

            1. What does it show in the logs? Is it Certificate Error? * You can see the log above *
            2. Are you able to open the wsdl in IE from where you have got Jdeveloper? * yes i am able to open the wsdl in IE *
            3. Is the Hostname Verification set to None in WLS Console > Servers > Admin/SOA Server > Configuration > SSL > Advanced? If not try setting it Yes it is set to none
            4. What is the value set for front-end host and port in WLS Console > Servers > Admin/SOA Server > Protocols > HTTP? Set it the correct value by which you want your service to be accessible.*Yes i have done that too*
            5. How does the deployed WSDL appear in the FMW Console > Test Webservice page? IS it the ame URL you are trying to invoke? no it is a reference WSDL

            Edited by: Tirumala Dixit on Aug 15, 2011 12:51 PM

            Edited by: Tirumala Dixit on Aug 15, 2011 12:51 PM
            • 3. Re: unable to load wsdl file which is https
              773779
              Did you install the certificate from the secured site in the weblogic server?
              • 4. Re: unable to load wsdl file which is https
                858796
                The issue was with the Certificates.

                After its installed it works fine.

                And also there is a pattern for Invoking ssl WSDLs.



                Regards,

                Tirumala Dixit.
                • 5. Re: unable to load wsdl file which is https
                  Hari Dasari
                  Hi Tirumala,

                  Could you please let me know what process you followed to install certificates .

                  And also let us know about the pattern for invoking SSL Wsdl's.

                  Thanks in Advance.

                  Regards,
                  Hari
                  • 6. Re: unable to load wsdl file which is https
                    858796
                    Hari,

                    Can you give me your mail id.

                    I can provide you the vidoe link which i have done for that

                    Edited by: TD on Dec 12, 2011 11:26 AM
                    • 7. Re: unable to load wsdl file which is https
                      Eric Elzinga
                      can't you post the link in here...others could be interested too i think :)
                      • 8. Re: unable to load wsdl file which is https
                        858796
                        Eric,

                        Otn editor is not allowing to paste any youtube links.

                        Hope this finds useful


                        Please follow these steps:

                        In Case you are working on 11g:

                        1)Right Click on the external reference service and select “Configure WS policies”

                        2)Go to the Security tab, click the add button and select from oracle/ wss_username_token_client_policy (it is usually this or select according to your wsdl documentation).

                        3)Press Ok.

                        4)Return back to the composite, just give one click on the configured partner link (step 2).

                        5)On the right you find property inspector window, click the add button under “Binding properties” tab.

                        6)Copy this text oracle.webservices.auth.username and give the value as username to access the wsdl.

                        7)In the same way add oracle.webservices.auth.password and give the value as password.
                        Please let me know of any issues.


                        Tirumala Dixit.