Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 69560 invoked from network); 5 Nov 2003 11:32:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Nov 2003 11:32:55 -0000 Received: (qmail 98248 invoked by uid 500); 5 Nov 2003 11:32:52 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 98074 invoked by uid 500); 5 Nov 2003 11:32:51 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Delivered-To: moderator for axis-dev@ws.apache.org Received: (qmail 80471 invoked from network); 5 Nov 2003 06:45:14 -0000 X-Originating-IP: [192.146.101.11] X-Originating-Email: [nhazra03@hotmail.com] Reply-To: "Nilay Hazra" From: "Nilay Hazra" To: Subject: SOAP attachment: why I'm not getting faultstring? Date: Wed, 5 Nov 2003 12:18:50 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C3A396.F88455B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: X-OriginalArrivalTime: 05 Nov 2003 06:45:25.0887 (UTC) FILETIME=[64C208F0:01C3A368] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C3A396.F88455B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, Forgive me if this seems to be a very basic question. I need to send a = file called myfile.txt as an attachment to my localhost server. My = localhost server consists of Jakarta Tomcat 4.1.27 with Apache Axis = configured. My client application is written in VC++ which actually = POSTs the following SOAP request to the URL = http://localhost:8080/axis/happyaxis.jsp [The URL mentioned is just for = testing, it is NOT capable of handling attachments] POST /axis/happyaxis.jsp HTTP/1.1 Host: LOCALHOST Content-Type: Multipart/Related; boundary=3DMIME_boundary; = type=3Dtext/xml; start=3D"" Content-Length: 188 --MIME_boundary Content-Type: text/xml; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Content-ID: My questions are: 1. I'm getting a 200 OK message from server. I'm also expecting a SOAP = faultstring as a SOAP response from the server (since happyaxis.jsp is = not capable of handling attachments), instead I'm getting the the HTML = content of happyaxis.jsp. Why I'm not getting any SOAP faultstring? What = am I missing here? 2. If I need to handle attachments at the server, what else exactly I = need to do at the server side. Will it be a problem if I exchange SOAP = messages where my client code written in C++ and the server side = handling code written in JAVA. Once again, I apologize to anybody if he/she thinks that these are very = basic questions. Thank you in advance for any sort of help. Please mark a copy of your = mail to my id nhazra03@hotmail.com Nilay ------=_NextPart_000_0011_01C3A396.F88455B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All,
Forgive me if this seems to be a very = basic=20 question. I need to send a file called myfile.txt as an attachment to my = localhost server. My localhost server consists of Jakarta Tomcat 4.1.27 = with=20 Apache Axis configured. My client application is written in VC++ which = actually=20 POSTs the following SOAP request to the URL http://localhost:8080/a= xis/happyaxis.jsp [The=20 URL mentioned is just for testing, it is NOT capable of handling=20 attachments]
 
POST=20 /axis/happyaxis.jsp HTTP/1.1
Host:=20 LOCALHOST
Content-Type: Multipart/Related; = boundary=3DMIME_boundary;=20 type=3Dtext/xml; start=3D"<myfile@myurl.com>"
Content-Length: 188
--MIME_boundary
Content-Type: text/xml; charset=3DUTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <myfile@myurl.com>
<?xml=20 version=3D'1.0' ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV=3D"http://schemas.xmlsoap.org/soap/envelop= e/">
<SOAP-ENV:Body>
<samplefile href=3D"cid:myfile.txt"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
My=20 questions are:
1. I'm=20 getting a 200 OK message from server. I'm also expecting a SOAP = faultstring=20 as a SOAP response from the server (since happyaxis.jsp is not capable = of=20 handling attachments), instead I'm getting the the HTML content of=20 happyaxis.jsp. Why I'm not getting any SOAP faultstring? What am I = missing=20 here?
 
2. If I=20 need to handle attachments at the server, what else exactly I need to do = at the=20 server side. Will it be a problem if I exchange SOAP messages where my = client=20 code written in C++ and the server side handling code written in=20 JAVA.
 
Once=20 again, I apologize to anybody if he/she thinks that these are very basic = questions.
 
Thank you=20 in advance for any sort of help. Please mark a copy of your mail to my = id nhazra03@hotmail.com
 
Nilay
------=_NextPart_000_0011_01C3A396.F88455B0--