Steve Curry
Call S/4 SOAP API for posting journal entries within a java application
Steve Curry · over 1 year ago · Question
Answered
Steve Curry

I need to learn how to call the S/4 SOAP API for posting journal entries within a java application that would run on SAP Cloud Platform.   I found a blog on using Apache Axis2 for S/4 SOAP APIs (Deep Dive 18 with SAP S/4HANA Cloud SDK: Convenient Consumption of SAP S/4HANA SOAP APIs), and have generated a stub from the asynchronous version's wsdl.  However, when I attempt to execute my test java servlet on an SAP Cloud Platform subaccount, I get:

2019 05 17 20:28:00#+00#ERROR#org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/postjournalentry-application].[com.cfindustries.scpjava.HelloWorldServlet]##anonymous#https-jsse-nio-8041-exec-5#na#hc8b40d36#postjournalentryapplication#web#hc8b40d36#na#na#na#na#Servlet.service() for servlet [com.cfindustries.scpjava.HelloWorldServlet] in context with path [/postjournalentry-application] threw exception org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender

From the logging statements I placed in the program, it appears this is happening when it tries to execute " _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service);"   (configurationContext is null).

Comments

Comments
Alumni