cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP receiver adapter

former_member188791
Participant
0 Kudos

Hi Group,

I am using soap received adapter to send request to third party system, I copied WSDL from URL and mapped my source data to WSDL , but I am getting soap response error, when I compated soapUI and Payload there are some difference I found and I suspect because of this my interface failing, can any body suggest how I can fix:

SOAPUI Request


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:urn:emp-org:xi">

   <soapenv:Header/>

   <soapenv:Body>

      <urn:emp>

               <urn:AddressLine1>?</urn:AddressLine1>

               <urn:AddressLine2>?</urn:AddressLine2>

               <urn:Town>?</urn:Town>             

         </urn:emp>

   </soapenv:Body>

</soapenv:Envelope>

PO Payload

<?xml version="1.0" encoding="UTF-8" ?>

<ns0:emp xmlns:ns0="urn:emp-org:xi"> 

  <ns0:AddressLine1> STREET1</ns0:AddressLine1>

  <ns0:AddressLine2>12</ns0:AddressLine2>

  <ns0:Town>BRMK</ns0:Town>

 

  </ns0:emp>

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186851
Active Contributor
0 Kudos

Hello Rajiv,

You mapped this source strucuture to WSDL right?in that case it should be fine.

What you have done for the response?

former_member188791
Participant
0 Kudos

Hi Raghu,

I am getting the below Error:

SOAP: Response message contains an errorApplication/UNKNOWN/APPLICATION_ERROR - application fault.



when I click on do not send soap envelop, I am not getting this error but I am getting empty payload response.



former_member186851
Active Contributor
0 Kudos

Hello Rajiv,

when you test the same data in SOAP UI ,are you getting any response?.

former_member188791
Participant
0 Kudos

In soap UI I copied by payload with using soap envelop I got the below Error:

Request



<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:urn:emp-org:xi">

   <soapenv:Header/>

   <soapenv:Body

<ns0:emp xmlns:ns0="urn:emp-org:xi">

  

  <ns0:AddressLine1> STREET1</ns0:AddressLine1>

  <ns0:AddressLine2>12</ns0:AddressLine2>

  <ns0:Town>BRMK</ns0:Town>

 

  </ns0:emp>

>

   </soapenv:Body>

</soapenv:Envelope>

Error in Response(SoapUI):

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   <SOAP-ENV:Body>

      <SOAP-ENV:Fault>

         <faultcode>SOAP-ENV:Server</faultcode>

         <faultstring>An error was detected while executing the Web Service request. (10893)</faultstring>

         <detail>

            <ns1:FaultDetail xmlns:ns1="urn:soap-fault:details">

               <errorMessage>Web Service application not found: urn:emp-org:xi (10858)</errorMessage>

               <requestID>2272324dad04b145:3969e2f4:150dc341ea9:-7fff#53</requestID>

            </ns1:FaultDetail>

         </detail>

      </SOAP-ENV:Fault>

   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

iaki_vila
Active Contributor
0 Kudos

Hi Rajiv,

An application error could a problem with the data that you are sending. Could you ask to endpoint developers for a real example?.

Regards.

former_member188791
Participant
0 Kudos

Hi Inaki,

what about XML name space and ns0 tags in my request do u mean those are correct compare to soapUI request's urn name space tag.

former_member186851
Active Contributor
0 Kudos

Hello Rajiv,

Since your mapping this Nso payload with WSDL its not a problem.

As Inaki suggested get the correct values and check.

iaki_vila
Active Contributor
0 Kudos

Hi Rajiv,

Could you tell us what exception is?

Your payload is right. It is indifferent where the namespace is defined. You only need to consider that all the tags are affected in the same way for the namespace.

You can do a little change, only for test purpose, in PI. Create a XSLT, the XSLT can be your exact example from SOAPui. Later mark don not use SOAP envelope in your receiver SOAP adapter.

In this way you can test from PI the exact example that SOAPui and to check if the error raises in PI or not.

Regards.