InventoryLocato
14 years agoContributor
File attachments
sending a file through a web service.
I am trying to figure out how to do attachments.
I am using this post here:
viewtopic.php?t=982
First of all, this page does not exists when calling help from the attachment tab:
http://www.soapui.org/SOAP-/-WSDL/addin ... ments.html
Anyways, I have a WSDL that allows for file attachment/transport (xsd:base64...).
Problem 1:
I attached a file (cached), it works fine. When it's uncached, does not work.
Problem 2:
I have 5 different files that I need to send over (1 file per web service call). What I did was store the file location in an excel file (ie c:\file1.zip ; c:\file2.zip). Then I used a datasource and a dataloop. All failed because in the request, i would see
<Data>c:\file1.zip</Data>
Then I read the help a little bit more and found out that i need to append "file:" to beginning of it. So I did that in my excel file "file:c:\file1.zip"
This still doesn't work because it would send in the file name instead of data. Can someone please tell me how to do this? Also, I am not fluent in groovyscript so I need help on that if you decide to point me in that direction.
Thanks in advance.
I am trying to figure out how to do attachments.
I am using this post here:
viewtopic.php?t=982
First of all, this page does not exists when calling help from the attachment tab:
http://www.soapui.org/SOAP-/-WSDL/addin ... ments.html
Anyways, I have a WSDL that allows for file attachment/transport (xsd:base64...).
Problem 1:
I attached a file (cached), it works fine. When it's uncached, does not work.
Problem 2:
I have 5 different files that I need to send over (1 file per web service call). What I did was store the file location in an excel file (ie c:\file1.zip ; c:\file2.zip). Then I used a datasource and a dataloop. All failed because in the request, i would see
<Data>c:\file1.zip</Data>
Then I read the help a little bit more and found out that i need to append "file:" to beginning of it. So I did that in my excel file "file:c:\file1.zip"
This still doesn't work because it would send in the file name instead of data. Can someone please tell me how to do this? Also, I am not fluent in groovyscript so I need help on that if you decide to point me in that direction.
Thanks in advance.