Hi Marco, According to the description, this what I understood. If the provided response is a single response, then it is a multipart response as I understood correctly. If that's the case you need to enable BinaryRelayBuilder and the ExpandingMessageFormatter for that particular multipart content type. Please correct me If I'm wrong. And in order to get an idea about the full response payload can you enable wirelogs and share the log information? You can enable wirelogs by uncommenting the following entry in *<CARBON_HOME>/repository/conf/log4j.properties*
*log4j.logger.org.apache.synapse.transport.http.headers=DEBUG* *log4j.logger.org.apache.synapse.transport.http.wire=DEBUG* Cheers, *Nadeeshaan Gunasinghe* Senior Software Engineer, WSO2 Inc. http://wso2.com +94770596754 | [email protected] | 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 Mon, Jan 15, 2018 at 8:08 PM, Marcos Tarín Esteve < [email protected]> wrote: > Hello Nadeeshaan > > > > I have this simple proxy: > > > <?xml version="1.0" encoding="UTF-8"?><proxy xmlns="http://ws.apache.org/ > ns/synapse" name="xxxxWsV2_Based_Proxy" startOnLoad="true" > statistics="disable" trace="enable" transports="http,https"> > <target> > <inSequence> > <property name="FORCE_HTTP_1.0" scope="axis2" type="STRING" > value="true"/> > <property name="DISABLE_CHUNKING" scope="axis2" type="STRING" > value="true"/> > <property name="EXPECT-100" scope="axis2" type="STRING" > value="true"/> > <log level="full"/> > </inSequence> > <outSequence> > <log level="full"/> > <send/> > </outSequence> > <endpoint> > <wsdl port="xxxxWsV2Port" service="xxxxxWsV2Service" > uri="file:/var/www/html/xxxxWsV2.wsdl"/> > </endpoint> > </target> > <description/> > </proxy> > > The proxy receives this response from endpoint: > > > --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- > > > > You can see that this response that comes with a coded file: > > > > Content-Type: application/octet-stream; charset=utf-8 > Content-Transfer-Encoding: binary > > > > The problem is proxy doesn’t return any response to SOAPUI. Also ESB log > shows this error: > > > 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 just want to know which wso2 command/s should I add to the proxy > configuration for bypassing this response so that it can be read by SOAPUI > > > > Thanks > > > > Marcos > > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
