Just as a follow-up:

I am running Axis 1.1. I just upgraded to Axis 1.2RC_2 and when I run the
same code I get the following fault:

     [java]     {http://xml.apache.org/axis/}stackTrace:java.io.IOException:
DIME header less than 12 bytes.
     [java]     at
org.apache.axis.attachments.DimeDelimitedInputStream.readHeader(DimeDelimite
dInputStream.java:319)
     [java]     at
org.apache.axis.attachments.DimeDelimitedInputStream.<init>(DimeDelimi
tedInputStream.java:123)
     [java]     at
org.apache.axis.attachments.DimeDelimitedInputStream.getNextStream(DimeDelim
itedInputStream.java:108)
     [java]     at
org.apache.axis.attachments.MultiPartDimeInputStream.readTillFound(MultiPart
DimeInputStream.java:149)
     [java]     at
org.apache.axis.attachments.MultiPartDimeInputStream.readAll(MultiPartDimeIn
putStream.java:100)
     [java]     at
org.apache.axis.attachments.MultiPartDimeInputStream.getAttachments(MultiPar
tDimeInputStream.java:108)
     [java]     at
org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(AttachmentsIm
pl.java:156)
     [java]     at
org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsIm
pl.java:515)
     [java]     at org.apache.axis.Message.getAttachments(Message.java:672)
     [java]     at
org.apache.axis.client.Stub.extractAttachments(Stub.java:294)

Not sure if this helps at all - but I'm still completely lost :/

Any help would be appreciated.

Shawn.

> -----Original Message-----
> From: Shawn Konopinsky [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 28, 2005 4:26 PM
> To: [email protected]
> Subject: Dime Attachments
>
>
> I have what seems to be a problem with send DIME attachments in SOAP.
>
> Mime works just fine for me when I use the following to set the send type:
> reply.getAttachmentsImpl().setSendType(Attachments.SEND_TYPE_MIME).
>
> However, when I make the simple modification to the line above to use DIME
> as the send type (replace Attachments.SEND_TYPE_MIME with
> Attachments.SEND_TYPE_DIME), it doesn't work.
>
> Is there anything additional that I have to do aside from setting the
> attachment type to DIME to switch between a MIME and DIME attachment type?
>
> I am viewing the request/response through Axis' TCP Tunnel viewer. When I
> run through a request with DIME, the response from the server looks like
> this:
> ------------------------
> HTTP/1.1 200 OK
> Set-Cookie: JSESSIONID=754354ADC18D3D950CEACF80F0191805; Path=/bind
> Content-Type: application/dime;charset=utf-8
> Date: Mon, 28 Feb 2005 20:50:51 GMT
> Server: Apache-Coyote/1.1
> Connection: close
>
> >  "xsd:int">1</totalRecordsFound>
>    <records xsi:type="xsd:string">see attachment</records>
>    <query xsi:type="xsd:string">(+(+RecordType:(interaction complex
> pathway ) +(gi:(4757840 )))) -((+BINDInteraction.a.type:&quot;not
> specified&quot; +BINDInteraction.a.shortlabel:&quot;Unknown&quot;)
> (+BINDInteraction.b.type:&quot;not specified&quot;
> +BINDInteraction.b.shortlabel:&quot;Unknown&quot;))</query>
>    <returnType xsi:type="xsd:string">xml</returnType>
>   </multiRef>
>  </soapenv:Body>
> </soapenv:Envelope>
> ------------------------
>
> As you can see it seems as if the response is malformed. Not sure
> if this is
> a result of the problem, or something wrong with the proxy that I am using
> to view the response. It is stumping me because MIME works fine, and DIME
> give me the weird result above. No exceptions seem to be thrown from the
> SOAP server.
>
> Has anyone else had a problem like this or know how I might
> troubleshoot it?
>
>

Reply via email to