cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Response issue

0 Kudos

Hi Experts,

My scenario is Proxy to SOAP Sync Interface. I'm facing an issue in SOAP response. The SOAP error response structure is not available in the wsdl. Hence, i'm getting an error in SOAP Response.

Please find below the payload of SOAP response

errorType=internal&errorCode=701&message=&status=500

Please find below the message log,

SOAP: Request message entering the adapter processing with user <userid>

SOAP: Target url: <target url>

SOAP: Processing completed

SOAP: Continuing to response message dsf77d572-605c-119-983e-000000418156

Transmitting the message using connection AFW failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SOAP_Response; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.

Message status set to FAIL

Kindly help me to fix this issue.

Many Thanks

MP

Accepted Solutions (0)

Answers (3)

Answers (3)

sugata_bagchi2
Active Contributor
0 Kudos

Hi Melchior,

can you check if you are using a fault mapping and your soap structure in fault mapping is matching with the one you are getting. You can run the error message in your fault mapping to check the correctness of the payload.

Thanks

Sugata

sugata_bagchi2
Active Contributor
0 Kudos

If this is a fault , then you can capture the fault using the adapter module -

XMBWS.NoSOAPIgnoreStatusCode = true

Module key will be soap.

Thanks

Sugata

0 Kudos

Thanks for your reply.

the adaper module was configured with XMBWS.NoSOAPIgnoreStatusCode = true but still i'm receving the same error.

The payload of response message is,

<ns0:errorCode xmlns:ns0='http://<namespace>'>010</ns0:errorCode>

  • 4/17/2019 12:52:58.378 PM Information SOAP: Continued from request message 946a66aa-60f6-11e9-8ea0-
  • 4/17/2019 12:52:58.378 PM Error SOAP: Response message contains
    1. errorApplication/UNKNOWN/APPLICATION_ERROR - application fault
  • 4/17/2019 12:52:58.381 PM Information SOAP: Response message leaving the adapter
  • 4/17/2019 12:52:58.388 PM Information Executing Fault Mapping "<operation mapping>"
  • 4/17/2019 12:52:58.507 PM Error Mapping "<operation mapping>" failed to execute: MappingException:
  • Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SOAP_Fault_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:MT_SOAP_FaultResponse_1. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD, ApplicationRuntimeException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_SOAP_Fault_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:MT_SOAP_FaultResponse_1. Values missing in queue context.

Kindly provide your suggestion to fix this issue

arrezende
Active Participant
0 Kudos

Hi Melchior,

Check the note "2293430 - Processing error response at sender SOAP adapter"....

0 Kudos

Thanks for your reply. i have done the configuration in module parameter XMBWS.AllowErrorResponse" with value "true. But still im getting the same error.

The payload of SOAP response is,

<ns0:errorCode xmlns:ns0='http://<namespace>'>010</ns0:errorCode>

In my Scenario, SOAP sender is Proxy which sends the request to 3rd Party System.

I'm getting the below error message in the SOAP Reponse

SOAP: Continued from request message 141905f5-606e-11e9-be9e-000000418156

SOAP: Response message contains an errorXIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error

SOAP: Response message leaving the adapter

Executing Fault Mapping ,

Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD, ApplicationRuntimeException: Runtime Exception when executing application mapping program com/sap/xi/tf/_MM_SOAP_Fault_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:MT_SOAP_FaultResponse_1. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD, IllegalInstanceException: Cannot create target element /ns0:MT_SOAP_FaultResponse_1. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD