Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 4165 invoked from network); 2 Jan 2007 06:35:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jan 2007 06:35:02 -0000 Received: (qmail 23398 invoked by uid 500); 2 Jan 2007 06:33:28 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 23334 invoked by uid 500); 2 Jan 2007 06:33:27 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 23061 invoked by uid 99); 2 Jan 2007 06:33:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jan 2007 22:33:25 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [196.37.142.114] (HELO nss.lfi.co.za) (196.37.142.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jan 2007 22:27:53 -0800 Received: from kerberos.int.opensolutions.co.za ([192.168.169.25]) by nss.lfi.co.za (8.13.1/8.13.1) with ESMTP id l026ROQp012938 for ; Tue, 2 Jan 2007 08:27:24 +0200 Subject: Re: [Axis2]Re: MTOM and content-type From: Stefan Kok To: axis-user@ws.apache.org In-Reply-To: References: <1167391441.7298.14.camel@localhost.localdomain> Content-Type: text/plain Date: Tue, 02 Jan 2007 08:31:22 +0200 Message-Id: <1167719482.5348.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-4.fc4) Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on nss.lfi.co.za X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.4 Hi Thilina Thanks. Disabling MTOM and enabling SWA did work great. Please see the exert from EtherReal below. Note that the attachment is placed in the as base64 string. . . . /9j/4AAQSkZJRgABAgIAAAAAAAD/4QA +RXhpZgAASUkqAAgAAAABAAsAAgAcAAAAGgAAAAAAAABBQ0QgU3lzdGVtcyBEaWdpdGFsIEltYWdpbmcA//4AHkFDRCBTeXN0ZW1zIERpZ2l0YWwgSW1hZ2luZwD/wAARCABkAJYDASIAAhEBAxEB/9sAhAAHBAUGBQQHBgUGBwcHCAoRCwoJCQoVDxAMERkWGhoYFhgYHB8oIhwdJh4YGCMvIyYpKi0tLRshMTQxKzQoLC0rAQsLCw8NDx4RER5AKyQrQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQED/xACdAAACAwEBAQAAAAAAAAAAAAAEBQIDBgcBABAAAgEDAgIGBgUHCAgHAAAAAQIDAAQRBSESMQYTIkFRYQcUMnGBkSNCodHwFTNSU3KxwSQ0NWJ0gpKzFkNUc4OTsuEXJTY3VaLSAQADAQEBAAAAAAAAAAAAAAABAgMABAURAAICAQQCAgMAAAAAAAAAAAABAhFBAxIhMRNRBCIUQnH/2gAMAwEAAhEDEQA/AOn9RZ6kzSzQoW8ScGk99ZyWUpeBg0Y7uLcUC011bDCzZA7vCqpNUdhiVQfOvRjBolKSGkWrRtGY7hTVUjw+1A7ZPcaTPMrNkAirIJyrDBqm0TcN4IpJj2VLHyotbCUbPE.... . . /9k= The server I am sending to, requires that I send it as Kind regards Stefan. On Sun, 2006-12-31 at 07:35 +0600, Thilina Gunarathne wrote: > Stefan, > Please use Soap with Attachments only.. Then it'll be text/xml.. > Make sure *not* to enable MTOM at the same time, cause then MTOM will > get priority and the message will be MTOM.. > > See here [1] for more detials... > > Thilina > [1] http://wso2.org/library/264 > > On 12/29/06, Stefan Kok wrote: > > Hi All > > > > I have got axis2 to generate the following for me: > > > > POST /some HTTP/1.1 > > SOAPAction: "" > > User-Agent: Axis2 > > Content-Length: 5790 > > Content-Type: multipart/related; > > boundary=MIMEBoundaryurn_uuid_D71D1475B0136C8FED11673898742622; > > type="application/xop+xml"; > > start="<0.urn:uuid:D71D1475B0136C8FED11673898742623@apache.org>"; > > start-info="text/xml"; charset=UTF-8 > > Authorization: Digest username="username", realm="somerealm", > > nonce="RZTzxw==028733d3cb3ad64a414de383d252b679e8969982", uri="/some", > > response="427csaasaawqwqee6be586508c8e91b4", qop=auth, nc=00000001, > > cnonce="61849b59f21f00e0ac46d38f9be4f1b2", algorithm="MD5" > > Host: fqdn:8082 > > > > --MIMEBoundaryurn_uuid_D71D1475B0136C8FED11673898742622 > > content-type: application/xop+xml; charset=UTF-8; type="text/xml"; > > content-transfer-encoding: binary > > content-id: <0.urn:uuid:D71D1475B0136C8FED11673898742623@apache.org> > > > > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">MyTransaction > > --MIMEBoundaryurn_uuid_D71D1475B0136C8FED11673898742622 > > > > The server that I send this to, requires that the content-type must be: > > > > text/xml; charset="utf-8" > > > > and not > > > > content-type: application/xop+xml; charset=UTF-8; type="text/xml"; > > > > I have been searching the web for ideas but have not found much. It must > > be multipart/related so I cannot turn off MTOM. > > > > > > > > Kind regards > > Stefan. > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > -- Stefan Kok --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org