Hello,

I have read on the list that Axis is compatible to MS Soap Toolkit 
3.0 concerning DIME attachments.

Yet I do encounter a error when deserializing on the client side 
(MSSOAP):
"Client: Loading the request into SoapReader failed."
The MSSOAP trace utility even crashes!

How do I get DIME attachments working with MSSOAP and Axis (has any 
one managed it)? Could it be that MSSOAP does not like chunked 
encoding? How do it turn it off?

Server Software: latest axis cvs, tomcat 4.1.12, jdk 1.4.1, linux
Client Software: Win2k, MS Soap Toolkit 3.0, VB 6.0 SP5

Best regards!
-- 
Matthias Brunner <[EMAIL PROTECTED]>
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc

Listen Port: 5000
Target Host: localhost
Target Port: 8080
==== Request ====
POST /axis/services/AttachTest HTTP/1.1
SOAPAction: ""
Content-Type: text/xml; charset="UTF-8"
User-Agent: SOAP Toolkit 3.0
Host: localhost
Content-Length: 545
Connection: Keep-Alive
Cache-Control: no-cache
Pragma: no-cache

<?xml version="1.0" encoding="UTF-8" standalone="no"?><SOAP-ENV:Envelope 
xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema"; 
xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Body 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";><SOAPSDK4:testcall 
xmlns:SOAPSDK4="http://brot.privnet:8080/axis/services/AttachTest";><in0>teststring</in0></SOAPSDK4:testcall></SOAP-ENV:Body></SOAP-ENV:Envelope>====
 Response ====
HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=D3630C3B4F7B4141B832B0ABAF376BB2; Path=/axis
Content-Type: application/dime
Transfer-Encoding: chunked
Date: Tue, 29 Oct 2002 17:25:57 GMT
Server: Apache Coyote/1.0

2ac
 
))uuid:714C6C40-4531-442E-A498-3AC614200295http://schemas.xmlsoap.org/soap/envelope/<?xml
 version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <soapenv:Body>
  <ns1:testcallResponse 
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="http://brot.privnet:8080/axis/services/AttachTest";>
   <testcallReturn xsi:type="xsd:string">teststring</testcallReturn>
  </ns1:testcallResponse>
 </soapenv:Body>
</soapenv:Envelope>
 

38B4C4094CED4720A2ACD3957520C98Ctext/plainteststring
0

import org.apache.axis.MessageContext;
import org.apache.axis.Message;
import org.apache.axis.attachments.AttachmentPart;

public class Server {

public String testcall(String str)

{
	Message msg = MessageContext.getCurrentContext().getResponseMessage();
	
	AttachmentPart ap= new AttachmentPart(new javax.activation.DataHandler(
				          str, "text/plain" ));
	msg.addAttachmentPart(ap);
	msg.getAttachmentsImpl().setSendType(org.apache.axis.attachments.Attachments.SEND_TYPE_DIME);

	return str;
	
}

}

Reply via email to