Contributions
How to use a jar file in soapui
Hi guys, I have just a jar file which needs two params: (1) a token and (2) a file name. The program invokes a REST service. The program works well with command line (see attached image). How can I launch the same jar in soapui and pass the two input parameters into two variables in SOAPUI ? How can I show the service response in SOAPUI ? I'm sorry but this referred suggestion doesn't work--> https://community.smartbear.com/t5/SoapUI-Open-Source-Questions/how-to-invoke-java-class-from-soap-UI/td-p/18714 Thanks a lot!!!859Views0likes1CommentRe: UPLOAD A ZIP FILE USING SOAPUI
hi dear the first attached request header works well (POSTMAN) POST https://www.sinfi.it/sinfi-validator1/rest/upload?iPlanetDirectoryPro=AQIC5wM2LY4SfcyoFeCBJX5PAhXGBQxVkfnVuk3SBbtkH9s.*AAJTSQACMDEAAlNLABMyNzUzOTc4NTk5MTc1ODAwMzIyAAJTMQACMDc.* HTTP/1.1 X-OpenAM-Username: DMNRFI20T01H501M X-OpenAM-Password: SQ6f5&$M User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1) Accept: */* Postman-Token: b0c09aab-db10-45bf-9306-9b5da5c6a97c Host: www.sinfi.it Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Type: multipart/form-data; boundary=--------------------------610712940258152505076183 Cookie: amlbcookie=07; SERVERID=2 Content-Length: 31455983 ----------------------------610712940258152505076183 Content-Disposition: form-data; name="loadType" STRICT ----------------------------610712940258152505076183 Content-Disposition: form-data; name="file-value"; filename="TEST_INFR_RT.zip" Content-Type: application/zip ============================================================== this following request sended via SOAPUI doesn't work. POST https://www.sinfi.it/sinfi-validator1/rest/upload?iPlanetDirectoryPro=AQIC5wM2LY4SfcyPgdttoQh3vhKa9s8tCrs4sZWWIkVJ1PU.*AAJTSQACMDEAAlNLABQtMzUxNjQ4ODE2OTA5NjIzODYzOQACUzEAAjA3*&loadType=STRICT&name=%22loadType%22&Accept-Encoding=gzip%2C%20deflate%2C%20br%20&file-value=TEST_INFR_RT.zip&file=TEST_INFR_RT.zip&Accept=*%2F*&filename=TEST_INFR_RT.zip HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/form-data; boundary="----=_Part_3_237119384.1635864631157" MIME-Version: 1.0 X-OpenAM-Username: DMNRFI20T01H501M X-OpenAM-Password: SQ6f5&$M Content-Length: 15728004 Host: www.sinfi.it Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1) ------=_Part_3_237119384.1635864631157 Content-Type: application/zip; name=TEST_INFR_RT.zip Content-Transfer-Encoding: binary Content-Disposition: form-data; name="TEST_INFR_RT.zip"; filename="TEST_INFR_RT.zip" I don't know how to set SOAPUI parameters to obtain identical Header Request. Thanks a lot if you can help me 😐1.1KViews0likes1Comment