Forum Discussion

depeche's avatar
depeche
Contributor
15 years ago

Content-Transfer-Encoding: binary

Following content is been captured at TcpMon:

Request made by SoapUI Pro 3.0.2 :


POST /tf6/services/xdsrepositoryb HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/related; type="application/xop+xml"; start=""; start-info="application/soap+xml"; action=""; boundary="----=_Part_17_28349551.1260534830078"
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.1
Host: ihexds.nist.gov:9080
Content-Length: 13318


------=_Part_17_28349551.1260534830078
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml; action=\"ProvideAndRegisterDocumentSetRequest\""
Content-Transfer-Encoding: 8bit
Content-ID:


..........................
..........................
..........................

 

..........................


------=_Part_17_28349551.1260534830078
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-ID: <>

This is depeche's document.

It is great!


------=_Part_17_28349551.1260534830078--



Request made by xdstest tool :

POST /tf6/services/xdsrepositoryb HTTP/1.1
Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_613A2BD2D99F1E6B591260534073176; type="application/xop+xml"; start="<0.urn:uuid:613A2BD2D99F1E6B591260534073177@apache.org>"; start-info="application/soap+xml"; action="urn:ihe:iti:2007:ProvideAndRegisterDocumentSet-b"
User-Agent: Axis2
Host: ihexds.nist.gov:9080
Transfer-Encoding: chunked

20f1
--MIMEBoundaryurn_uuid_613A2BD2D99F1E6B591260534073176
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:613A2BD2D99F1E6B591260534073177@apache.org>


..........................
..........................
..........................

href="cid:1.urn:uuid:613A2BD2D99F1E6B591260534073366@apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include" />

..........................



--MIMEBoundaryurn_uuid_613A2BD2D99F1E6B591260534073176
Content-Type: text/plain
Content-Transfer-Encoding: binary
Content-ID: <1.urn:uuid:613A2BD2D99F1E6B591260534073366@apache.org>

This is my document.

It is great!


--MIMEBoundaryurn_uuid_613A2BD2D99F1E6B591260534073176--
0



WSDL location: http://ihexds.nist.gov:9080/tf6/service ... toryb?wsdl

From where can i set Content-Transfer-Encoding as binary?

At the nist public registry, you can view the text document which is been sent as an attachment:

http://129.6.24.109:9080/Repository/9.8 ... .txt&nbsp; (been created by SoapUI)

http://129.6.24.109:9080/Repository/9.8 ... .txt&nbsp; (been created by xdstest tool)

I have also tried making Encode Attachments as true under TestRequest Properties. But its not working either.
Thanks for the help!

Regards,

depeche

5 Replies

  • Hi!
        Can anyone tell me what could be the problem? Why the document sent as an attachment through SoapUI is received properly at public registry but not displayed properly? Is there any way to change Content-Transfer-Encoding from 8bit to binary?


    Thanks & regards
    depeche
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    soapUI uses these encodings by default when text attachments are sent, there is currently no way to override it to use binary instead.

    AFAIK both 7 and 8 bit encodings are within the standard, so your target server should support them!?

    regards!

    /Ole
    eviware.com
  • yusufk's avatar
    yusufk
    New Contributor
    Hi,

    I've just come across an application that does not support 8bit content-transfer-encoding.

    Please make it possible to override the default 8bit?

    Thanks,
    Yusuf
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Yusuf,

    hmm.. what encoding would you like instead?

    regards,

    /Ole
    eviware.com
  • yusufk's avatar
    yusufk
    New Contributor
    Binary please!

    It would be great if one could over-ride the parameter with anything though.

    Yusuf