0

I am exposing a webservice which is a questionnaire. So there are 10 questions and one attachment. One of the question is also of type attachment. So WSDL looks like

<wsdl>
:
  <xs:complexType name="createUpdateAnswersheetRequestType">
    <xs:sequence>
      <xs:element name="answersheet" type="answersheet:answersheetType"/>
      <xs:element name="imageData" type="xsd:base64Binary"/>
    </xs:sequence>
  </xs:complexType>
:
:
<xs:complexType name="answersheetType">
:
<xs:element name="imageData" type="xsd:base64Binary"/>
:
</xs:complexType>

I am trying to call this webservice from SoapUI. I attach two attachments through "form" view of SoapUI request. I am receiving only 1 file correctly on server side.

SOAP UI looks like enter image description here

If I send outer attachment then another attachment (answer of question) is received garbage. If I do not send outer attachment then I see another attachment (answer of question) correctly.

What is the way out ?

Rao
  • 20,781
  • 11
  • 57
  • 77
Kaushik Lele
  • 6,439
  • 13
  • 50
  • 76
  • What does it show for `Part`, have you tried clicking there? Do you see any drop down? Are you using the request in a test case, which is necessary to show the `Part` value. – Rao May 27 '16 at 05:56
  • What I meant was shown in the [screen shot](http://s000.tinyupload.com/?file_id=41696619626015331919). So, the id should be matching for the respective file, then it will your service will be able to receive the correct file. – Rao May 27 '16 at 06:02
  • @Rao for second row when I click on "part" it shows a dropdown "v10-2.jpg" and "Anonymous". The other options "Type" and "ContentId" are not editable. – Kaushik Lele May 27 '16 at 06:10
  • Are you using the request in a test case? which is necessary to show the Part value. – Rao May 27 '16 at 08:41
  • @rao could not understand you – Kaushik Lele May 27 '16 at 09:01
  • In your project, Have you created a test suite > test case > and test step of soap? Otherwise, you will not be able to see the `Part` value dropdown – Rao May 27 '16 at 11:01

0 Answers0