You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by John Smith <js...@googlemail.com.INVALID> on 2018/10/13 14:25:47 UTC

nett4-http endpoint - sending multipart request

Hello,

I have a netty4-http endpoint that I can send XML to with
Content-Type=application/xml from a SoapUI REST project.

I'd also like to send XML with attachments as a multipart/form or
multipart/mixed content type.

However when I switch the Content-Type to multipart/form or multipart/mixed
in SOAPUI and run the POST to the netty4 Endpoint the request does not
reach the camel route - I just get an SSL Exception in SOAPUI:

Software caused connection abort: socket write error


Does anyone know if netty4-http supports multipart messages?

Thank you.

Re: nett4-http endpoint - sending multipart request

Posted by Zoran Regvart <zo...@regvart.com>.
Hi John,
the `netty4-http` component doesn't have any SOAP functionality (I'm
guessing you're doing SOAP), I guess you'd need to look into a binding
implementation that does that.

I would suggest that you look into CXF[1] or Spring WS[2] components
that has support for SOAP and SOAP attachments.

Since in the end you're getting an error from lower levels than
HTTP/SOAP message parsing (in SSL or sockets) be sure that the issue
you're facing has to do with attachments and not with something else
like network connectivity, SSL protocol versions/algorithms...

zoran

[1] https://github.com/apache/camel/blob/master/components/camel-cxf/src/main/docs/cxf-component.adoc#attachment-support
[2] https://github.com/apache/camel/blob/master/components/camel-spring-ws/src/main/docs/spring-ws-component.adoc#the-header-and-attachment-propagation

On Sat, Oct 13, 2018 at 4:25 PM, John Smith
<js...@googlemail.com.invalid> wrote:
> Hello,
>
> I have a netty4-http endpoint that I can send XML to with
> Content-Type=application/xml from a SoapUI REST project.
>
> I'd also like to send XML with attachments as a multipart/form or
> multipart/mixed content type.
>
> However when I switch the Content-Type to multipart/form or multipart/mixed
> in SOAPUI and run the POST to the netty4 Endpoint the request does not
> reach the camel route - I just get an SSL Exception in SOAPUI:
>
> Software caused connection abort: socket write error
>
>
> Does anyone know if netty4-http supports multipart messages?
>
> Thank you.



-- 
Zoran Regvart