cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice action block-null pointer exception

08-09-2022 4:53 PM
neha1620 Explorer
1415 views 7 comments
0 Likes
SAP Managed Tags
Subscribe

Hi Experts,

I am calling the below service from web-service action block in SAP MII 15.4:

https://<server-port>/manufacturing-papiservices/SplitSerializeServiceWSService?wsdl

When I run transaction from the workbench, I get this error.

  • [ERROR] [Event_Logger_Error]UserEvent : Nutek Serialize papi exception java.lang.NullPointerException

The catch action block is not giving any different error.

Can you please point to area of issue?

Thanks in advance.

Regards,

Neha

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

neha1620
Explorer
0 Likes

Hi Steve,

Un-checking the Execute the Web Service action helped to get input XML. I mapped value to it and its working fine.

For the production environment, Serliaze PAPI is giving an error. After checking all possibilities I want to try the web service action block as the last option and it works. The strange part is PAPI doesn't give errors in other environments.

Thank you for your help.

Regards,

Neha

neha1620
Explorer
0 Likes

Hi Steve,

Thank you for your reply.

I tried a few options to map XML but had no luck.

Is it possible to get input XML for webservice action block as we get in PAPI?

Thanks in advance.

Regards,

Neha

steve_stubbs
Participant
0 Likes

Hi Neha,

You can get the web service request xml by creating the web service in a transaction, un-checking the Execute the Web Service action, and tracing the Web Service request xml. However you will likely run into namespace issues depending on how you do this.

Why not just execute the Serialize PAPI directly in MII?

Regards, Steve

neha1620
Explorer
0 Likes

Hi Steve and Mike,

Thanks for the quick reply.

I am using the method "serliazesfcs" from the above webservice. I checked input getting mapped to action block and all inputs are present in SAP ME.

Here is mapping in transaction.