Hi Marcos, This is what I see, you get the content type as text/xml and when you try to build this particular payload it is invalid xml content. If you take a look at the wirelogs, you will be able to find that the content type is set to text/xml before the below payload.
--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/" xmlns:ns1="https://xxxx.es/xxxx/ws/xxxxws_v2/1.0/infoEnvioV2"> <SOAP-ENV:Body> ....... ....... As I think, if you are trying to extract the soap envelope specifically from this payload, you will need to write a custom message formatter/builder. Thanks, *Nadeeshaan Gunasinghe* Senior Software Engineer, WSO2 Inc. http://wso2.com +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#> <http://www.facebook.com/nadeeshaan.gunasinghe> <http://lk.linkedin.com/in/nadeeshaan> <http://twitter.com/Nadeeshaan> <http://nadeeshaan.blogspot.com/> Get your own email signature <https://wisestamp.com/email-install?utm_source=promotion&utm_medium=signature&utm_campaign=get_your_own> On Tue, Jan 16, 2018 at 3:18 PM, Marcos Tarín Esteve < mta...@alfatecsistemas.es> wrote: > 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.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/" xmlns:ns1="https://xxxx.es/xxxx/ws/xxxxws_v2/1.0/infoEnvioV2"> > <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/" xmlns:ns1="https://xxxx.es/xxxx/ws/xxxxws_v2/1.0/infoEnvioV2"> > <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 Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev