Forum Discussion

odifresoap's avatar
New Contributor
13 years ago

sending attachment

1. i am getting aquainted with soapUI
2. created a project
The returned submit request is below (3):
i filled in the values.
I did not see in the generated request how to add an attachment of the xml file that is to be processed.
The documentation did not seem to match my request.
I tried adding the anonymous attachment, Part <anonymous>, contentID (the xml filename), tried cached and not cached,
and content type text/xml and content type (empty)

error message:
Mon Nov 07 10:38:27 PST 2011:WARN:Failed to process inline/MTOM attachments; java.lang.Exception: Missing message wrapper element [

from what I can tell, the receiving SOAP application does not recognize the attachment and handles the package accordingly.

Should the content of the xml file be placed within the soapenv:body?

or other advice on sending attachments.

<soapenv:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soapenv="" xmlns:def="http://DefaultNamespace">
<def:submitSmefsData soapenv:encodingStyle="">
<requestID xsi:type="xsd:string">112233</requestID>
<numAttach xsi:type="xsd:int">1</numAttach>
<spokeID xsi:type="xsd:string">NWP-HTS-04</spokeID>
No RepliesBe the first to reply