de/-encoding problem?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • seppl43

    #1

    de/-encoding problem?

    Hello,

    I'm writing a SOAP-client using SOAPpy for a JAVA-Application (JIRA).
    When I try to send attachments, the incoming files are not decoded
    correctly. They have about 1.5% more bytes.

    What I'm doing is this:

    file_obj = file(<path to file>,'rb')
    cont = file_obj.read()
    cont64 = base64.encodest ring(cont)
    chararray1 = array.array('c' )
    chararray1.from string(cont64)
    file_obj.close( )

    # using the method of jira's SOAP-interface
    add =
    jira_soap.addAt tachmentsToIssu e(auth,issue_id ,[<filename>],[chararray1])


    This is the WSDL-description of that method:

    <wsdl:message name="addAttach mentsToIssueReq uest">
    <wsdl:part name="in0" type="xsd:strin g"/>
    <wsdl:part name="in1" type="xsd:strin g"/>
    <wsdl:part name="in2" type="impl:Arra yOf_xsd_string"/>
    <wsdl:part name="in3" type="impl:Arra yOf_xsd_base64B inary"/>
    </wsdl:message>

    Does anybody know, why the files are not de-/encoded correctly?
    Thanks for help.

    Seppl

Working...