Question
Pegasystems Inc.
IN
Last activity: 23 Jun 2018 15:55 EDT
Why Connect SOAP Throws Error With Status Code 405 During Test Connection
Hi
I have created a Service SOAP rule who's purpose is CreateNewWork and i unit tested it. It worked correctly. From it's service package rule i got a WSDL URL:
http://localhost:8080/prweb/PRSOAPServlet/SOAP/TGBHRAppsWorkOnboarding/pyStartCase?WSDL
Hi
I have created a Service SOAP rule who's purpose is CreateNewWork and i unit tested it. It worked correctly. From it's service package rule i got a WSDL URL:
http://localhost:8080/prweb/PRSOAPServlet/SOAP/TGBHRAppsWorkOnboarding/pyStartCase?WSDL
So using this WSDL URL i created a Connect SOAP rule.with style and use as "Document/literal" , Method name "CreateNewWork", SOAP action header "urn:PegaRULES:SOAP:TGBHRAppsWorkOnboarding:pyStartCase#CreateNewWork", and connection as "http://localhost:8080/prweb/PRSOAPServlet/SOAP/TGBHRAppsWorkOnboarding/pyStartCase".
But when i am testing connectivity then i am getting status code as 405.
Screenshot of Service and Connect SOAP rule is attached.
And i am not able to find the correct reason of this error.
Please help to resolve this error.
Thanks in advance.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
Apologies for the delay in response
Below article have clear explanation, let me know if you have any further questions
http://pegadevelopment.blogspot.com/2016/07/failed-to-retrieve-rule-service-soap.html
Thanks,
Arun
Pegasystems Inc.
US
Are you trying to access a service from the same instance where its hosted? Why not just call the service activity directly? If this is what you want, I'd get rid of localhost and use the hostname.
Updated: 16 Jun 2018 8:10 EDT
Pegasystems Inc.
IN
Hi Paul
Yes, i am accessing service from the same instance where its hosted. And i am not calling the service activity directly because i want to get the flavour of interaction between Service SOAP and Connect SOAP.
I tried to replace the localhost with actual IP. And it didn't worked.Screenshot is attached.Please suggest some way.
Pegasystems Inc.
IN
405 error means method not allowed .
Do you see any exception in the logs .
enable debug on below loggers to get more information in the logs
- Rule_Obj_Activity.InvokeAxis2.Rule_Connect_SOAP.Action
- com.pega.pegarules.integration.internal.util.SOAPUtils
Thanks,
Arun
Pegasystems Inc.
IN
Hi Arun
I enabled debugging for above mentioned loggers.After that i tried to test connection but got the same 405 error and nothing was in log. And then i tried to call this SOAP rule from activity and then also i got the error along with some log. Below is the log content:
Hi Arun
I enabled debugging for above mentioned loggers.After that i tried to test connection but got the same 405 error and nothing was in log. And then i tried to call this SOAP rule from activity and then also i got the error along with some log. Below is the log content:
2018-06-17 15:30:57,866 [http-nio-8080-exec-9] [ STANDARD] [ ] [ HRApps:01.01.01] (ngineinterface.service.HttpAPI) ERROR localhost| Proprietary information hidden harinder - Proprietary information hidden: com.pega.pegarules.pub.PRRuntimeError com.pega.pegarules.pub.PRRuntimeError: PRRuntimeError at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:712) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:481) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.runActivities(HttpAPI.java:3414) ~[prprivate.jar:?] at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequestInner(EngineAPI.java:399) ~[prenginext.jar:?] at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_121] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121] at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1338) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1075) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:930) ~[prprivate.jar:?] at com.pega.pegarules.session.external.engineinterface.service.EngineAPI.processRequest(EngineAPI.java:336) ~[prenginext.jar:?] at com.pega.pegarules.session.internal.engineinterface.service.HttpAPI.invoke(HttpAPI.java:854) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl._invokeEngine_privact(EngineImpl.java:331) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:274) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.engineinterface.etier.impl.EngineImpl.invokeEngine(EngineImpl.java:251) ~[prprivate.jar:?] at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngineInner(JNDIEnvironment.java:278) ~[prpublic.jar:?] at com.pega.pegarules.priv.context.JNDIEnvironment.invokeEngine(JNDIEnvironment.java:223) ~[prpublic.jar:?] at com.pega.pegarules.web.impl.WebStandardImpl.makeEtierRequest(WebStandardImpl.java:678) ~[prwebj2ee.jar:?] at com.pega.pegarules.web.impl.WebStandardImpl.doPost(WebStandardImpl.java:394) ~[prwebj2ee.jar:?] at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_121] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121] at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethod(PRBootstrap.java:370) ~[prbootstrap-7.3.1-218.jar:7.3.1-218] at com.pega.pegarules.internal.bootstrap.PRBootstrap.invokeMethodPropagatingThrowable(PRBootstrap.java:411) ~[prbootstrap-7.3.1-218.jar:7.3.1-218] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethodPropagatingThrowable(AppServerBridgeToPega.java:224) ~[prbootstrap-api-7.3.1-218.jar:7.3.1-218] at com.pega.pegarules.boot.internal.extbridge.AppServerBridgeToPega.invokeMethod(AppServerBridgeToPega.java:273) ~[prbootstrap-api-7.3.1-218.jar:7.3.1-218] at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doPost(WebStandardBoot.java:129) ~[prbootstrap-api-7.3.1-218.jar:7.3.1-218] at com.pega.pegarules.internal.web.servlet.WebStandardBoot.doGet(WebStandardBoot.java:100) ~[prbootstrap-api-7.3.1-218.jar:7.3.1-218] at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) ~[servlet-api.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) ~[servlet-api.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) ~[catalina.jar:8.5.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:8.5.14] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) ~[tomcat-websocket.jar:8.5.14] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) ~[catalina.jar:8.5.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) ~[catalina.jar:8.5.14] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) ~[catalina.jar:8.5.14] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) ~[catalina.jar:8.5.14] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) ~[catalina.jar:8.5.14] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) ~[catalina.jar:8.5.14] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) ~[catalina.jar:8.5.14] at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624) ~[catalina.jar:8.5.14] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) ~[catalina.jar:8.5.14] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) ~[catalina.jar:8.5.14] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) ~[tomcat-coyote.jar:8.5.14] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) ~[tomcat-coyote.jar:8.5.14] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861) ~[tomcat-coyote.jar:8.5.14] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455) ~[tomcat-coyote.jar:8.5.14] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-coyote.jar:8.5.14] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_121] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_121] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-util.jar:8.5.14] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121] Caused by: com.pega.pegarules.pub.services.RemoteApplicationException: SOAP service failed at com.pegarules.generated.activity.ra_action_invokeaxis2_01a7d3a76a8b1feb244477f720f23a1e.step15_circum0(ra_action_invokeaxis2_01a7d3a76a8b1feb244477f720f23a1e.java:3801) ~[?:?] at com.pegarules.generated.activity.ra_action_invokeaxis2_01a7d3a76a8b1feb244477f720f23a1e.perform(ra_action_invokeaxis2_01a7d3a76a8b1feb244477f720f23a1e.java:309) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pegarules.generated.activity.ra_action_invoke_0cfba5258feb98ffba5cfba243966b7a.step8_circum0(ra_action_invoke_0cfba5258feb98ffba5cfba243966b7a.java:1025) ~[?:?] at com.pegarules.generated.activity.ra_action_invoke_0cfba5258feb98ffba5cfba243966b7a.perform(ra_action_invoke_0cfba5258feb98ffba5cfba243966b7a.java:190) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pegarules.generated.activity.sh_action_createnewcase_7a68f497627a04889b4f05110a945fe0.step2_circum0(sh_action_createnewcase_7a68f497627a04889b4f05110a945fe0.java:296) ~[?:?] at com.pegarules.generated.activity.sh_action_createnewcase_7a68f497627a04889b4f05110a945fe0.perform(sh_action_createnewcase_7a68f497627a04889b4f05110a945fe0.java:89) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3330) ~[prprivate.jar:?] at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.step2_circum0(ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.java:249) ~[?:?] at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.perform(ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.java:88) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10845) ~[prprivate.jar:?] at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.step11_circum0(ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.java:1027) ~[?:?] at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.perform(ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.java:246) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646) ~[prprivate.jar:?] ... 51 more Caused by: com.pega.apache.axis2.AxisFault: Failed to retrieve Rule-Service-SOAP instance TGBHRAppsWorkOnboarding.pyStartCase/CreateNewWork.CreateNewWorkRequest using service package access group HRApps:Administrators at com.pega.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) ~[praxis2-1.6.2-1.jar:?] at com.pega.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375) ~[praxis2-1.6.2-1.jar:?] at com.pega.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:454) ~[praxis2-1.6.2-1.jar:?] at com.pega.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) ~[praxis2-1.6.2-1.jar:?] at com.pega.apache.axis2.client.OperationClient.execute(OperationClient.java:165) ~[praxis2-1.6.2-1.jar:?] at com.pegarules.generated.activity.ra_action_invokeaxis2_01a7d3a76a8b1feb244477f720f23a1e.step14_circum0(ra_action_invokeaxis2_01a7d3a76a8b1feb244477f720f23a1e.java:3692) ~[?:?] at com.pegarules.generated.activity.ra_action_invokeaxis2_01a7d3a76a8b1feb244477f720f23a1e.perform(ra_action_invokeaxis2_01a7d3a76a8b1feb244477f720f23a1e.java:292) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pegarules.generated.activity.ra_action_invoke_0cfba5258feb98ffba5cfba243966b7a.step8_circum0(ra_action_invoke_0cfba5258feb98ffba5cfba243966b7a.java:1025) ~[?:?] at com.pegarules.generated.activity.ra_action_invoke_0cfba5258feb98ffba5cfba243966b7a.perform(ra_action_invoke_0cfba5258feb98ffba5cfba243966b7a.java:190) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pegarules.generated.activity.sh_action_createnewcase_7a68f497627a04889b4f05110a945fe0.step2_circum0(sh_action_createnewcase_7a68f497627a04889b4f05110a945fe0.java:296) ~[?:?] at com.pegarules.generated.activity.sh_action_createnewcase_7a68f497627a04889b4f05110a945fe0.perform(sh_action_createnewcase_7a68f497627a04889b4f05110a945fe0.java:89) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.mgmt.Executable.doAction(Executable.java:3330) ~[prprivate.jar:?] at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.step2_circum0(ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.java:249) ~[?:?] at com.pegarules.generated.activity.ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.perform(ra_action_pyrunrecordexecute_f7d1e1c1513eef165c7ecbe136f3addd.java:88) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10845) ~[prprivate.jar:?] at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.step11_circum0(ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.java:1027) ~[?:?] at com.pegarules.generated.activity.ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.perform(ra_action_pzrunrecordexecute_c38281e0bb63f7c4aab88814460c8435.java:246) ~[?:?] at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3597) ~[prprivate.jar:?] at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646) ~[prprivate.jar:?] ... 51 more
I am not able to understand how access group is not finding the required rules.
Pegasystems Inc.
IN
Please check below article hope it helps
https://community.pega.com/support/support-articles/soap-call-fails-due-operation-name
Thanks,
Arun
Pegasystems Inc.
IN
Hi Arun
i am not able to understand the information provided in the above link. Could you please help to elaborate that info and apply it in my scenario.
Accepted Solution
Pegasystems Inc.
IN
Apologies for the delay in response
Below article have clear explanation, let me know if you have any further questions
http://pegadevelopment.blogspot.com/2016/07/failed-to-retrieve-rule-service-soap.html
Thanks,
Arun
Pegasystems Inc.
IN
Hi Arun
I tried 2nd solution:
Change the SOAP Service rule name to be the same as the SOAP Service Request Parse XML rule name.
It worked correctly.
Thanks a lot.
Pegasystems Inc.
IN
Glad it’s worked for you thanks for notifying .
Regards,
Arun