cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to include XML file as request in SOAP UI unlike POSTMAN

Joydeep
New Contributor

Unable to include XML file as request in SOAP UI unlike POSTMAN

In Postman i can have body as Form-data

and request can have File as an Input and nothing else. Hence XML file is the input

But In soapui free I just cannot send just the file as the request

The response says cannot detect file

 

 

1 REPLY 1
JHunt
Community Hero

Re: Unable to include XML file as request in SOAP UI unlike POSTMAN

Can you describe how the HTTP message should look?

 

I was able to make a REST POST request with an attached XML file that looks like this:

 

POST http://localhost:8080/accountcreation?username=john&password=w0j39av0d8s HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/mixed; boundary="----=_Part_0_2128274485.1564292773222"
MIME-Version: 1.0
Content-Length: 4437
Host: localhost:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


------=_Part_0_2128274485.1564292773222
Content-Type: text/xml; charset=Cp1252; name=soapui-log4j.xml
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="soapui-log4j.xml"; filename="soapui-log4j.xml"

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

(... the rest of the XML file... )

Is that the sort of thing you meant?

New Here?
Join us and watch the welcome video:
Top Kudoed Authors