Permalink
Browse files

* SimpleMimeReader.java

  + Added a simple mime reader that reads the incoming multipart mime soap message and split
    out the Preamble and the actual attachment data.

* SoapSerializationEnvelope.java
  + (writeProperty): For Collabnet Teamforge instances, supplying a 'null' for certain values
    caused an exception (Probably somethig with the version of axis used). Setting it to a
    'nil' instead makes it work. So irrespective of the SOAP version, pass in 'nil' when a
    null value needs to be sent

* SoapSerializationEnvelopeTest.java
  + Fix the test so that when a nil value is required expect 'nil' instead of 'null'

* HttpTransportSE.java
  + (call): Check if the incoming response is a multipart message and call Transport's
    processMultipartResponse

* Transport.java
  + (processMultipartResponse): Send the incoming message to SimpleMimeReader. It then reads
    the preamble and sends to processResponse for getting the SOAP Message. Finally, it fetches
    the first attachment data. All of these are set as PropertyInfo's on the SOAPObject, which is
    then fed to envelope.bodyIn.

Note: Following cases may not work
 + SOAP messages with multiple attachments
 + Trying to get some context out of the preamble in the SOAP message. In the cases I tested,
   there was nothing in preamble, so couldnt test much

TODO:
 + Add a testcase for multipart messages
  • Loading branch information...
1 parent 4c4fc9b commit 5fbd9c0b7bcf7e40f5671df29fb8557f5d9203f3 @rajasaur committed Feb 6, 2012
Oops, something went wrong.

0 comments on commit 5fbd9c0

Please sign in to comment.