Use Case -
I am trying to configure the SAOP service in API Gateway. Soap service returns Binary characters along with XML in response. Oracle API gateway SOAP to rest policy only expects a response in XML so we are ending up an error message “unknown response from server”. (Please see Response of soap service below).
Question -
Do anyone of us face this before, I want to know how you have handled it.
I am thinking to build a custom policy to modify response but don't know from where to start, do we have any example of custom policy development?
Response SOAP Service –
HTTP/1.1 200 OK
Date: Tue, 12 May 2020 13:34:51 GMT
Server: Apache
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: multipart/related; boundary="MIMEBoundary_9a112931282ee25b44e07655aa3659b7d79e886ff40aac3e"; type="application/xop+xml"; start="<0.8a112931282ee25b44e07655aa3659b7d79e886ff40aac3e@apache.org>"; start-info="text/xml"
--MIMEBoundary_9a112931282ee25b44e07655aa3659b7d79e886ff40aac3e
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.8a112931282ee25b44e07655aa3659b7d79e886ff40aac3e@apache.org>
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:rispostaFirma xmlns:ns1="urn:uniserv20.unimaticaspa.it:types"><esito>0</esito><descrizione>Consegna andata a buon fine</descrizione><link>https://web1.unimaticaspa.it/uniserv-test-na/spas/sign/index.jsf?token=atradius_pocQS_5797ffc8f5664559962400419f0d8d5f&installationName=uniserv-test-na.unimatica.lan</link><parametriAggiuntivi>token:atradius_pocQS_5797ffc8f5664559962400419f0d8d5f</parametriAggiuntivi><parametriAggiuntivi>docId:atradius|1263600;idDocumento:feOtp_1_PH_CORTI</parametriAggiuntivi><parametriAggiuntivi>docId:atradius|1263601;idDocumento:feOtp_1_PH_CORTI</parametriAggiuntivi><parametriAggiuntivi>customLink:uniserv://online/atradius_pocQS_5797ffc8f5664559962400419f0d8d5f//device/?url=https://web1.unimaticaspa.it/uniserv-test-na/rest/</parametriAggiuntivi></ns1:rispostaFirma></soapenv:Body></soapenv:Envelope>
--MIMEBoundary_9a112931282ee25b44e07655aa3659b7d79e886ff40aac3e--