Forum Discussion

gllambi's avatar
12 years ago

MTOM request: bad content-type

Hi guys!

I'm using SOAPUI community version 4.6.4 trying to send an mtom request and found that may be errors in the content-type. Here's my request:

POST http://localhost:8080/AbitabWSSamples/MTOMSampleImpl HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/related; type="text/xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_6_23804924.1392392806269"
SOAPAction: ""
MIME-Version: 1.0
Content-Length: 1346987
Host: localhost:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


------=_Part_6_23804924.1392392806269
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <rootpart@soapui.org>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mtom="http://abitab.com.uy/servicios/mtom">
<soapenv:Header/>
<soapenv:Body>
<mtom:sendData>
<!--Optional:-->
<picture>
<!--Optional:-->
<data>cid:954449171163</data>
<!--Optional:-->
<name>?</name>
</picture>
<!--Optional:-->
<path>f:/peñarol.jpg</path>
</mtom:sendData>
</soapenv:Body>
</soapenv:Envelope>
------=_Part_6_23804924.1392392806269
Content-Type: image/jpeg; name="peñarol.jpg"
Content-Transfer-Encoding: binary
Content-ID: <cid:954449171163>
Content-Disposition: attachment; name="peñarol.jpg"; filename="peñarol.jpg"

ÿØÿá2ßExif

As you can see, the content-type is not application/xop+xml. Could you please aid me here?

thanks in advance
Guzmán
No RepliesBe the first to reply