Forum Discussion

odifresoap's avatar
odifresoap
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 [http://134.57.200.49:1444/soap/smefsSoapServlet.jws@submitSmefsData

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.

3.
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:def="http://DefaultNamespace">
<soapenv:Header/>
<soapenv:Body>
<def:submitSmefsData soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<requestID xsi:type="xsd:string">112233</requestID>
<numAttach xsi:type="xsd:int">1</numAttach>
<spokeID xsi:type="xsd:string">NWP-HTS-04</spokeID>
</def:submitSmefsData>
</soapenv:Body>
</soapenv:Envelope>
No RepliesBe the first to reply