I'm having problems with the attachments samples.  I've seen enough messages in the 
list archive to assume that the sample works when installed correctly and I've goofed 
up something.

I'm running Axis beta1 with Tomcat 4.0.3. in a W2K environment.

The EchoAttachment client sends the message fine put faults on the response.  The 
EchoAttachmentService receives the attachment just fine, I can write out the 
attachment's text from the service.

The client faults with this error
Caused by: Error reading data stream:  Error in MIME data stream, start boundary not 
found, expected
:  ------=_Part_0_12311880.1017087553739
        at org.apache.axis.attachments.MultiPartRelatedInputStream.<init>(Unknown 
Source)

I captured the request/response with the Axix tcpmon tool.  The request looks fine but 
the response has no data in it, though the Content-length appears to be about what 
should be expected.  Do these symptons point to any particular error/misconfiguration 
on my part???

TCPMonitor Request:
POST /axis/servlet/AxisServlet HTTP/1.0
Content-Length: 1406
Host: localhost
Content-Type: multipart/related; type="text/xml"; 
start="<285122060.1017087552497.AXIS@pheesen>"; 
boundary="----=_Part_0_5857105.1017087552497"
Authorization: Basic dXNlcjE6cGFzczE=
SOAPAction: ""

------=_Part_0_5857105.1017087552497
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-ID: <285122060.1017087552497.AXIS@pheesen>

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";>
 <SOAP-ENV:Body>
  <ns1:echo xmlns:ns1="urn:EchoAttachmentsService">
   <source href="cid:876270415.1017087552387.AXIS@pheesen"/>
  </ns1:echo>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
------=_Part_0_5857105.1017087552497
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: <876270415.1017087552387.AXIS@pheesen>

             Axis (Apache eXtensible Interaction System)
             -------------------------------------------
             Beta 1 Release               March 15, 2002

Welcome to Axis!  You'll find documentation in the docs/ directory.
Please read the release notes (release-notes.html) in this directory for
details on the current release.

Thanks from all of us on the Axis team for downloading the package; help
us make it better by sending comments to [EMAIL PROTECTED]

------=_Part_0_5857105.1017087552497--

TCPMonitor Response:
HTTP/1.1 200 OK
Content-Type: multipart/related; type="text/xml"; 
start="<803171130.1017087553739.AXIS@pheesen>";  
boundary="----=_Part_0_12311880.1017087553739"
Content-Length: 1370
Date: Mon, 25 Mar 2002 20:19:12 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)


Reply via email to