Hi Nadeeshaan

Very grateful for your help

The error I reported was obtained from the log file. It is the only one found.

TID: [-1234] [] [2017-12-21 17:15:38,305] ERROR 
{org.apache.synapse.transport.passthru.util.RelayUtils} -  Error while building 
Passthrough stream {org.apache.synapse.transport.passthru.util.RelayUtils}
org.apache.axiom.om<http://org.apache.axiom.om>.OMException: 
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '-' (code 
45) in prolog; expected '<'

I only show a single line belonging to the log for privacy issues.

It is clear that the problem is that WSO-ESB receives a response from the 
endpoint in which its first character is a symbol symbol '-' and that is why 
ESB gives error.


--urn:uuid:ax7xx36-98xx9-4ex1-bxxc-ax1xxxxx8bxc
Content-Type: text/xml; charset=utf-8
Content-Transfer-Encoding: 8bit
Content-ID: <urn:uuid:3xcxxx4b-x9ea-xxf6-81c3-8a8xxxxe6bx7>

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";<http://schemas.xmlsoap.org/soap/envelope/%22>
 
xmlns:ns1="https://xxxx.es/xxxx/ws/xxxxws_v2/1.0/infoEnvioV2";><https://xxxx.es/xxxx/ws/xxxxws_v2/1.0/infoEnvioV2%22%3E>
<SOAP-ENV:Body>
<resultadoInfoEnvioV2>
<ns1:identificador>xa3x2xxxxx8xx7</ns1:identificador>
</resultadoInfoEnvioV2>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

--urn:uuid:a07xxx6-9xxx9-4xxa1-xx9c-a91dxxbcc
Content-Type: application/octet-stream; charset=utf-8
Content-Transfer-Encoding: binary
Content-ID: <urn:uuid:69xxx17b-x96c-xx3e-9x78-721dxxxxxxa23>
http://xx.x.x.xxx/Texto_de_prueba.txt
--urn:uuid:a07xxx6-9xxx9-4ea1-bxxc-a9xxx0c8bcc-

I also tried configurations with "BinaryRelayBuilder and the 
ExpandingMessageFormatter" included within the proxy. But they had no effect.

"the provided response is a single response, then it is a multipart response as 
I understood correctly." ==> Sorry I did not understand your sentence. I try to 
explain better. The answer coming from the endpoint is simple, with the 
particularity that besides SOAP labels, it adds extra information related a 
file. It seems is the file, or access information to it, which seems to be 
encoded in octet format within the response.

if I could erase all the information in the answer except the SOAP information:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";<http://schemas.xmlsoap.org/soap/envelope/%22>
 
xmlns:ns1="https://xxxx.es/xxxx/ws/xxxxws_v2/1.0/infoEnvioV2";><https://xxxx.es/xxxx/ws/xxxxws_v2/1.0/infoEnvioV2%22%3E>
<SOAP-ENV:Body>
<resultadoInfoEnvioV2>
<ns1:identificador>xa3x2xxxxx8xx7</ns1:identificador>
</resultadoInfoEnvioV2>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I am sure that I found that WSO2-ESB would work.

We’ll be in contact … Thanks

Marcos

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to