cancel
Showing results for 
Search instead for 
Did you mean: 

testing the webservices scenario, error

shubhnam_singh
Participant
0 Kudos

Hi experts,

We have a scenario, web<-->PI<-->RFC, i have created the interface and registered the service in SR.

When i am trying to test the scenario from the SR, i am getting the error below from the 'Web Services Navigator'

     Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Server Error"


In the monitoring, I can see the error below for the SOAP channel:

SOAP: Call failed: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Payload.getInputStream() of an object returned from com.sap.aii.adapter.xi.ms.XIMessage.getMainPayload()


I believe this error is coz the SOAP channel is not able to invoke the mapping itself or even convert the input to the source message.


I don't know hw to go around debugging the scenario. I have tested the rfc and part functionality by creating a test scenario file-->pi-->rfc and it is invoking the rfc and generating the output for the value range passed.

Please help in removing this error or at least understanding it.

--

rgds

Shubhnam

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

U can check below settings in SOAP sender channel:

a) Depending upon ur scenario pattern (sync or async) check the QOS mentioned in sender soap channel (BE or EO/EOIO respectively) - do remember to regenerate WSDL file once u do any changes in channel.

b) Make sure u have not checked " Do not use SOAP envelope"

Thanks

Amit Srivastava

shubhnam_singh
Participant
0 Kudos

HI Amit,

u r the champ

" Do not use SOAP envelope" did the trick


--

rgds

Answers (3)

Answers (3)

shubhnam_singh
Participant
0 Kudos

Hi,

i tested the url in chrome and got the following response, i was prompted for username/password:

Message Servlet is in Status OK

Status information:

Servlet com.sap.aii.adapter.soap.web.MessageServlet (Version $Id: //tc/xpi.adapters/NW731EXT_09_REL/src/_soap_application_web_module/webm/api/com/sap/aii/adapter/soap/web/MessageServlet.java#3 $) bound to /MessageServlet

Classname ModuleProcessor: null

Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean

Lookupname for remoteModuleProcessorLookupName: null

ModuleProcessorClass not instantiated

ModuleProcessorLocal is Instance of $Proxy644

ModuleProcessorRemote not instantiated


--

rgds

Harish
Active Contributor
0 Kudos

Hi Shubnam,

Your service is working fine (as you tested with browser) but there is problem with source which is calling the service.

  1. User authorization (user does not have auth. to invoke web service)
  2. WSDL ( the WSDL is not correct)
  3. URL (you are not using the correct URL) - this is rulled out as you are able to connect with browser with same url

Please check the first two points. Please also check if you get any dump in ECC while RFC call.

Regards,

Harish

iaki_vila
Active Contributor
0 Kudos

Hi Shubnam,

Check that your user has the same roles that the user PIAPPLUSER. Have you checked first the Operation Mapping?, have you checked the scenario from ID?

Regards.

shubhnam_singh
Participant
0 Kudos

Hi Inaki,

the user has SAP_XI_APPL_SERV_USER role, the other role SAP_BC_WEBSERVICE_PI_CFG_SRV cudn't b found in AEX system.

OM works fine. In ID i've checked the ICO, no errors but the testing function is not available in AEX.

still the same issue.

--

rgds

iaki_vila
Active Contributor
0 Kudos

Hi Shubhnam,

With SAP_XI_APPL_SERV_USER role had to be necessary according SAP documentation Standard Users (AEX) - SAP NetWeaver Process Integration Security Guide - SAP Library


Only for test purpose you can assign to the user the PISUPER roles, you can do it to know if there is a role problem or the problem is another.


Regards.

Dimitri
Active Contributor
0 Kudos

Hi,

Take your Sender Agreement and get the WSDL. Take that file and use e.g. soapUI to test to flow

Kind regards,

Dimitri

shubhnam_singh
Participant
0 Kudos

Hi Dimitri,

thnx for the response.

i'll get the SOAPUI installed frm the security team and use it for testing.

Ours is an AEX system, ICO's only, no sender agreements etc. So the WSDL from ICO will do , i hope.

Can u plz tell hw testing frm Web service Navigator from SR is not as gud as from SoapUI?

--

rgds

shubhnam_singh
Participant
0 Kudos

Hi Dimitri,

I tried SoapUI, the result is attached.

its the same error, doesn't give much info

Any clue?

--

rgds

Harish
Active Contributor
0 Kudos

Hi Shubnam,

are you using the web service address in the below format

http://<hostname>:<port>/XISOAPAdapter/MessageServlet?channel ........

Regards,

Harish

shubhnam_singh
Participant
0 Kudos

Hi Harish,

The url is:

http://<host>:50100/XISOAPAdapter/MessageServlet?senderParty=&senderService=BS_MYPI&receiverParty=&receiverService=&interface=SI_MyPI_WS&interfaceNamespace=http://XXXX.XXX

--

rgds